forked from SOCR/Resampling-Randomization-Webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
638 lines (579 loc) · 36.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta data For SEO -->
<meta charset="utf-8">
<title>SOCR Randomization and Resampling Web-App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Simulation App,Randomization and Resampling App">
<meta name="author" content="selvam,ashwini,ivo">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;" />
<!-- head.js ... its a javascript loader tool -->
<script src="js/lib/head.min.js"></script>
<!-- Le styles -->
<!--<link rel="stylesheet" href='http://fonts.googleapis.com/css?family=Lato:400,900' type='text/css'>-->
<link rel="stylesheet" href="dist/app.css" >
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<!-- The Welcome Splash Screen -->
<div id='welcome'>
<div class="welcome-container">
<div>
<span><h2 class="font welcome-title">SOCR</h2></span>
</div>
<div>
<span class="font" >Statistical Online Computational Resource - Resampling WebApp </span>
<div><button id="startApp" class="btn btn-primary btn-large" disabled> Initialising ... </button></div>
<div>
<span class="font">Help (recommended for first timer!) :</span>
<span class="switch switch-mini" data-on="danger" data-off="primary">
<input class="help" type="checkbox" >
</span>
</div>
</div>
</div>
</div>
<div id='header'>
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class=" brand" >SOCR - Resampling App</a>
<div class="nav-collapse">
<ul class="nav">
<li><a data-toggle="modal" href="#aboutDesc">ABOUT</a></li>
<li><a data-toggle="modal" href="#simulationDesc">SIMULATIONS</a></li>
<!--<a data-toggle="modal" href="#help"><button class='btn btn-danger' >Need Help!</button></a>-->
<li class="help"><a href="#">HELP!</a></li>
<li><a data-toggle="modal" href="#faq">FAQ</a></li>
<li class="dropdown">
<a id="more" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">MORE<b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="more">
<li><a tabindex="-1" href="http://goo.gl/MNEi7" target="_blank">Screencasts</a></li>
<li><a tabindex="-1" href="https://github.com/SOCRedu/Resampling-Randomization-WebApp" target="_blank">Source Code</a></li>
<!--<li><a tabindex="-1" href="#share" data-toggle="modal">Buzz</a></li>
<li><a tabindex="-1" href="#generate-url" data-toggle="modal" id='share-instance-button'>Share Instance</a></li> -->
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
<button class="btn btn-medium right" id="reset-button"><i class="icon-refresh"></i> Reset App</button>
</div>
</div>
</div>
</div><!--/.header -->
<div id='main'>
<div class="container-fluid main-wrap">
<div class="row-fluid">
<div class='span8'>
<div id='accordion'>
<h3><a href="#">Data Driven</a></h3>
<div>
<section id = "datadriven-splash">
<div class="page-header">
<h3>Getting Started <small> Select dataset</small></h3>
</div>
<div class = "menu-datadriven">
<ul class="nav nav-pills nav-stacked">
<li class="nav-header"> Start by DataDriven : </li>
<li> <a data-rel="spreadsheet">Use a Excel Sheet</a> </li>
<li> <a data-rel="fetch">Fetch table from URL</a> </li>
<li> <a data-rel="worldbank">Use WorldBank API</a></li>
</ul>
</div>
<div class = "menu-simulationdriven">
<li class="nav-header">Simulation Driven : Current Experiments</li>
<ul class="nav nav-pills nav-stacked">
<li> <a data-rel="exp_binomialCoin">Binomial Coin Toss</a> </li>
<li> <a data-rel="exp_ballAndUrn">Ball and Urn</a> </li>
<li> <a data-rel="exp_cardExp">Card Experiment</a> </li>
<li> <a data-rel="exp_betaBinomial">Beta Binomial Experiment</a> </li>
<li> <a data-rel="exp_betaDistribution">The Beta Distribution Experiment</a> </li>
</ul>
</div>
</section>
<!-- Abandoning the old tab based switch mode for drag and drop -->
<section class = "datadriven-wrap copy" id="datadriven-import">
<section class = "controls">
<a class="btn splash-datadriven" href="#"><i class =" icon-circle-arrow-left"></i></a>
<div class="btn-group">
<a class ="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-wrench"></i>
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a class="edittitles" data-toggle="modal" href="#input-modal"> Edit titles </a></li>
<li><a class="firstrowtitles"> Use first row as titles </a></li>
<li><a class="removecol" data-toggle="modal" href="#input-modal"> Remove a Column </a></li>
</ul>
</div>
<!--<input class="btn" type='button' value='Use Entire Dataset'>-->
<a class="btn" id="submatrix_spreadsheet">Use Selected <i class="icon-question-sign popups" rel="popover" data-content="Select One Group at a time" data-original-title="Selected Groups"></i></a>
<!--<input class="btn btn-danger" type='button' value='Reset'>-->
<a class="btn" id="spreadsheet_sort">Sort</a>
<a class = "reset-spreadsheet btn btn-danger" ><i class="icon-refresh"></i></a>
<span class="response"></span>
<!--
Range : <input type="text" name="start" class="input-mini" placeholder="start"> - <input type="text" name="end" class="input-mini" placeholder="end">
-->
<a class = "dragdrop btn btn-info" > Fetch from URL </a>
<input class="btn btn-inverse" type='button' value='Proceed'>
</section>
<div class = "spreadsheet">
<section id="fetchURL">
<form class="form-inline">
<input type="url" name="urlbox" class="input-xlarge" placeholder="Enter URL">
<input type="submit" value="Submit" name="submit">
<!--<div class="btn-group" style="float:left;">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#" >Method<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" id='fetchinstant'>Instantaneous</a></li>
<li><a href="#" id='fetchasync'>Asynchronous</a></li>
</ul>
</div>-->
</form>
</section>
<section id="drop"> Drag and Drop your URL here </section>
<div id="status"></div>
<div class="handsontable spreadsheet_copy" id="input"></div>
</div>
</section>
<section id="datadriven-fetch">
<a class="btn splash-datadriven" href="#"><i class =" icon-circle-arrow-left"></i></a>
<div class ="page-header">
<h3> Fetch From URL </h3>
</div>
<section id="fetchURL">
<form class="form-inline">
<input type="url" name="urlbox" class="input-xlarge" placeholder="Enter URL">
<input type="submit" value="Submit" name="submit">
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#" >Choose <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" id='fetchinstant'>Instantaneous</a></li>
<li><a href="#" id='fetchasync'>Asynchronous</a></li>
</ul>
</div>
</form>
</section>
</section>
<section id="worldbank">
<a class="btn splash-datadriven" href="#"><i class =" icon-circle-arrow-left"></i></a>
<div class ="page-header">
<h3> WorldBank Datasets </h3>
</div>
<form class="form-horizontal" id="worldbank-form">
<div class="control-group">
<label for="dataset" class="control-label"> Dataset </label>
<div class="controls">
<select id="indicator">
<option value="SP.DYN.CBRT.IN">Birth Rate</option>
<option value="SP.DYN.CDRT.IN">Death Rate</option>
<option value="SH.XPD.TOTL.ZS">Health Expenditures</option>
<option value="SP.DYN.LE00.IN">Life Expectancy</option>
<option value="SP.POP.TOTL">Total Population</option>
<option value="SL.TLF.TOTL.IN">Total Labor Force</option>
<option value="EN.ATM.CO2E.PCNY.GDP.MKTP.CD">CO2 emissions per capita</option>
<option value="NY.GDP.MKTP.CD">GDP</option>
<option value="SP.URB.TOTL">Urban Population</option>
<option value="FR.INR.DPST">Deposit Interest Rates</option>
<option value="1.1_ACCESS.ELECTRICITY.TOT">Access to electricity (% of total population)</option><option value="15.1_OTHER.SECT.ENER.INTENS">Energy intensity of other sectors (MJ/$2005)</option><option value="2.1.3_SHARE.HYDRO">Hydro energy consumption (% in TFEC)</option><option value="2.2_ACCESS.NONSOLIDFUEL.RURAL">Access to Non-Solid Fuel (% of rural population)</option><option value="3.1.10_MARINE.CONSUM">Marine energy consumption (TJ)</option><option value="3.1_PRI.NEW.ENTRANTS">Primary education, new entrants, national source</option><option value="3.5_PRI.CLASSROOMS">Primary education, classrooms, national source</option><option value="4.3_TOTAL.EDU.RECURRENT">Public recurrent spending on total education (% of total public recurrent spending)</option><option value="5.1.1_GEO.TOTA.AID.EC">International aid disbursed to total education, European Commission to Georgia (USD million)</option><option value="5.1.1_MOZ.TOTA.AID.CAN"> International aid disbursed to total education, Canada to Mozambique (USD million) </option><option value="5.1.10_AFG.TOTA.AID.SIDA">International aid disbursed to total education, Sida to Afghanistan (USD million)</option><option value="5.1.11_ETH.TOTA.AID.JICA">International aid disbursed to total education, JICA to Ethiopia (USD million) </option><option value="5.1.13_MOZ.TOTA.AID.ESP"> International aid disbursed to total education, Spain to Mozambique (USD million) </option><option value="5.1.2_ALB.TOTA.AID.BEI">International aid disbursed to total education, BEI to Albania (USD million)</option><option value="5.1.2_KGZ.TOTA.AID.ADPP.GIZ"> International aid disbursed to total education, GIZ to Kyrgyzstan (USD million) </option><option value="5.1.2_RE.CAPACITY">Renewable energy installed capacity (GW)</option><option value="5.1.3_CIV.TOTA.AID.WB"> International aid disbursed to total education, World Bank to Côte d'Ivoire (USD million) </option><option value="5.1.3_LAO.TOTA.AID.EC"> International aid disbursed to total education, European Commission to Laos (USD million) </option><option value="5.1.3_TJK.TOTA.AID.OPENS"> International aid disbursed to total education, Open Society Foundations to Tajikistan (USD million) </option><option value="5.1.4_GHA.TOTA.AID.UNICEF">International aid disbursed to total education, UNICEF to Djibouti (USD million) </option><option value="5.1.4_NER.TOTA.AID.JAPAN">International aid disbursed to total education, Japan to Niger (USD million) </option><option value="5.1.5_CMR.TOTA.AID.UNESCO">International aid disbursed to total education, UNESCO to Cameroun (USD million)</option><option value="5.1.5_MRT.TOTA.AID.UNICEF">International aid disbursed to total education, UNICEF to Mauritania (USD million) </option><option value="5.1.6_BFA.TOTA.AID.NLD"> International aid disbursed to total education, Netherlands to Burkina Faso (USD million) </option><option value="5.1.6_MDG.TOTA.AID.WFP"> International aid to total education executed by WFP in Madagascar (USD million) </option><option value="5.1.7_BFA.TOTA.AID.UNICEF"> International aid disbursed to total education, UNICEF to Burkina Faso (USD million) </option><option value="5.1.7_MWI.TOTA.AID.KFW">International aid disbursed to total education, KfW to Malawi (USD million) </option><option value="5.1.8_GNB.TOTA.AID.JAP">International aid disbursed to total education, Japan (via UNICEF) to Guinea Bissau (USD million) </option><option value="5.1.9_AFG.TOTA.AID.NZL">International aid disbursed to total education, New Zealand to Afghanistan (USD million)</option><option value="5.1_TOTAL.EDU.AID">International aid for total education, disbursed (up to present year) and scheduled (next years), aggregation of reporting donors (USD million)</option><option value="5.2.1_GHA.BAS.AID.DFID">International aid disbursed to basic education, DFID to Djibouti (USD million) </option><option value="5.2.1_MWI.BAS.AID.AFDB">International aid disbursed to basic education, AfDB to Malawi (USD million) </option><option value="5.2.10_ETH.BAS.AID.JPN">International aid disbursed to basic education, Japan Government to Ethiopia (USD million) </option><option value="5.2.11_LAO.BAS.AID.INGOS"> International aid disbursed to basic education, International NGOs to Laos (USD million) </option><option value="5.2.16_ETH.BAS.AID.USAID">International aid disbursed to basic education, USAID to Ethiopia (USD million) </option><option value="5.2.2_GEO.BAS.AID.UNICEF">International aid disbursed to basic education, UNICEF to Georgia (USD million)</option><option value="5.2.2_MRT.BAS.AID.AFD">International aid disbursed to basic education, AFD to Mauritania (USD million) </option><option value="5.2.3_AFG.BAS.AID.FRA">International aid disbursed to basic education, France to Afghanistan (USD million)</option><option value="5.2.3_GNB.BAS.AID.ADPP.OTH">International aid disbursed to basic education, ADPP (other donors) to Guinea Bissau (USD million) </option><option value="5.2.3_SEN.BAS.AID.GPE"> International aid disbursed to basic education, Global Partnership for Education to Senegal (USD million) </option><option value="5.2.4_DJI.BAS.AID.AFDB">International aid disbursed to basic education, AfDB to Djibouti (USD million) </option><option value="5.2.4_MRT.BAS.AID.SP">International aid disbursed to basic education, Spanish Cooperation to Mauritania (USD million)</option><option value="5.2.5_AFG.BAS.AID.IND">International aid disbursed to basic education, India to Afghanistan (USD million)</option><option value="5.2.5_LAO.BAS.AID.GPE"> International aid disbursed to basic education, Global Partnership for Education to Laos (USD million) </option><option value="5.2.5_VNM.BAS.AID.UNICEF">International aid disbursed to basic education, UNICEF to Vietnam (USD million) </option><option value="5.2.6_GNB.BAS.AID.PORT">International aid disbursed to basic education, Portuguese Cooperation to Guinea Bissau (USD million)</option><option value="5.2.6_TLS.TOT.AID.KOR"> International aid disbursed to total education, South Korea to Timor-Leste (USD million) </option><option value="5.2.7_KHM.BAS.AID.UNESCO"> International aid disbursed to basic education, UNESCO to Cambodia (USD million) </option><option value="5.2.7_ZMB.BAS.AID.USAID">International aid disbursed to basic education, USAID to Zambia (USD million) </option><option value="5.2.8_NER.BAS.AID.CHE">International aid disbursed to basic education, Switzerland to Niger (USD million) </option><option value="5.2.9_NER.BAS.AID.LUX">International aid disbursed to basic education, Luxembourg to Niger (USD million) </option><option value="6.5_NEXT.JSR">Date of next Joint Education Sector Review (year=full date in notes)</option><option value="7.4_PREV.ALLOCATION.AMOUNT">Previous allocation - Amount disbursed (USD million)</option><option value="8.1_SCH.LEAVING.EXAMS">Administration of school leaving exams (yes=1, no=0, see notes if available)</option><option value="8.3.1_GIN.PASEC.CP2.FR.MEAN">PASEC in Guinea, CP2, French (mean score)</option><option value="8.3.1_SEN.LEAR.TEST.CE2.MATH.MIN">National assessment for learning outcomes (SNERS) in Senegal, CE2, Mathematics, minimal competency (%)</option><option value="8.3.11_GEO.LEAR.TEST.9.MAT.LOWEST">National assessment for learning outcomes in Georgia, grade 9, Mathematics, students in lowest level (%)</option><option value="8.3.13_GHA.TIMSS.8.MAT.MEAN">TIMSS in Ghana, grade 8, Mathematics (mean score)</option><option value="8.3.15_NER.LEAR.TEST.CM2.MATH.MEAN">National assessment for learning outcomes in Niger, CM2, Mathematics (mean score)</option><option value="8.3.18_GHA.LITERACY.P5.WORDS">Making the Grade Scores in Ghana, P5, Literacy in English, Words per minute (mean)</option><option value="8.3.2_CIV.LEAR.TEST.SEC.ALL.MEAN">National assessment for learning outcomes in Côte d'Ivoire, lower secondary (BEPC), mean score of all subjects </option><option value="8.3.2_MDG.PASEC.CM2.MAT">PASEC in Madagascar, CM2, Mathematics (mean score)</option><option value="8.3.20_GIN.LEAR.TEST.CEPE.MAX">National assessment at the end of primary (CEPE) in Guinea, CM2 (6 grade), maximal competency </option><option value="8.3.23_NER.LEAR.TEST.CE2.MATH.UNDERMIN">National assessment for learning outcomes in Niger, CE2, Mathematics, under minimal competency (%)</option><option value="8.3.3_CIV.LEAR.TEST.PRIM.ALL.MIN.COMP">National assessment for learning outcomes in Côte d'Ivoire, primary (CEPE), minimal competency (%)</option><option value="8.3.3_SEN.LEAR.TEST.CE2.MATH.OPT">National assessment for learning outcomes (SNERS) in Senegal, CE2, Mathematics, optimal competency (%)</option><option value="8.3.4_GIN.PASEC.CM1.FR.MEAN">PASEC in Guinea, CM1, French (mean score)</option><option value="8.3.5_ALB.PISA.910.SCIENCE">PISA in Albania, grade 9 and 10, Science (mean score)</option><option value="8.3.5_NER.LEAR.TEST.CE2.FR.OPTIM">National assessment for learning outcomes in Niger, CE2, French, optimal competency (%)</option><option value="8.3.6_KHM.LEAR.TEST.9.MAT.MEAN">National assessment for learning outcomes in Cambodia, grade 9, Mathematics (mean score)</option><option value="8.3.7_GHA.LEAR.TEST.P3.MAT.ABOV.MIN">National assessment for learning outcomes in Ghana, P3, Mathematics, students above minimal competency (%)</option><option value="8.3.8_GIN.PASEC.CM1.FR.MATH.MEAN.END">PASEC in Guinea, CM1, French and Mathematics, mean score at the end of year (%)</option><option value="8.3.9_LAO.LEAR.TEST.5.WORLD.PROF">National assessment for learning outcomes in Laos, grade 5, world around us (proficiency)</option><option value="9.5_PIU">Number of parallel implementation units, education sector</option><option value="A11iii">33.Growth of Incumbents: StDev</option><option value="A4">04.Number of Survivors</option><option value="A7iv">14.Export Value per Entrant: First Quartile</option><option value="A9iv">24.Export Value per Survivor: First Quartile</option><option value="AG.CRP.FNO.CD">Producer Price for Fonio (per tonne, current US$)</option><option value="AG.CRP.WHT.CD">Producer Price for Wheat (per tonne, current US$)</option>
</select>
</div>
</div>
<div class="control-group">
<label for="year2" class="control-label">Year Range </label>
<div class="controls">
<input type = "number" value = "2008" id="year1"> - <input type="number" value = "2011" id="year2">
<span class="help-block">Data Request size increases proportionally to the year range</span>
</div>
</div>
<div class="control-group">
<div class="controls">
<input type="submit" value="Submit" class="btn">
</div>
</div>
</form>
<div class="worldbank-response"></div>
</section>
<section id="simulationdriven-details">
<a class="btn splash-datadriven" href="#"><i class =" icon-circle-arrow-left"></i></a>
<div class ="page-header">
<h3> Experiment Title </h3>
</div>
<div class="exp-dscp">
Experiment Description
</div>
</section>
<section id="datadriven-stage">
<a class="btn splash-datadriven" href="#"><i class =" icon-circle-arrow-left"></i></a>
<input class="btn btn-inverse" value="Spreadsheet" type="Button">
<a class="btn btn-danger reset-stage"><i class =" icon-refresh"></i></a>
<input class="btn btn-success staging-complete" value="Done" type="Button">
<div class ="page-header">
<h3> Staging<small> Selected dataset</small> </h3>
</div>
<div>
<table class="table table-bordered stage-list">
<thead>
<tr>
<th> Title </th>
<th> No. of Elements </th>
<th> K - Index </th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</section>
</div>
<h3 class="dataset-header">
<a href="#">DataSet <i class="icon-question-sign popups" rel="popover" data-content="It is graphical view of the dataset from where the random samples are generated.Goto input tab to get started!" data-original-title="Dataset"></i></a>
</h3>
<div class='q'>
<div id="dataset"></div>
<!--<h6>Generated Resample: <i class="icon-question-sign popups" rel="popover" data-content="This section contains all the datapoints in 1 random sample generated from the dataset. Switch to datadriven mode after the simulation. Then goto controller -> step button" data-original-title="Generated Sample"></i></h6>
<div id="generatedSamples"></div>-->
</div>
<h3>
<a href="#">Inference Plot <i class="icon-question-sign popups" rel="popover" data-content="It is graphical view of the dataset from where the random samples are generated.Goto input tab to get started!" data-original-title="Inference Plot"></i></a>
</h3>
<div id='dotplot'> First go to the controller tile and run the experiment to generate some random samples(example. 1000 samples).Then press "infer" to see the histogram!</div>
<h3>
<a href="#">Simulation Info <i class="icon-question-sign popups" rel="popover" data-content="It is graphical view of the dataset from where the random samples are generated.Goto input tab to get started!" data-original-title="Simulation Info"></i></a>
</h3>
<div id='details'></div><div id="contribution-details"></div>
</div>
<a class="controller-handle" href="#"><button class='btn-primary btn-large '>Controller</button></a>
<div id="slide-out-controller" >
<div class="row-fluid">
<div class="span4 heading">Controller</div>
<div class="span8" id="ctrlMessage"></div>
<div class="span8" id="progressBar" style="display:none"></div>
</div>
<div id='controller-content' style="font-size:12px">
<div class="alert alert-error">Choose a experiment from "simulation drive" or enter data in the "data drive" first!</div>
</div>
</div><!--/slide-out-controller-->
</div><!--span8-->
<div class="span4">
<h3>Sample List
<span>
<i class="icon-question-sign popups" rel="popover" data-content="It shows the list of generated samples when the show button is pressed." data-original-title="Sample List"></i>
</span>
</h3>
<div style='padding-bottom:20px;'>
<span class="badge badge-warning">Samples Generated: <span id='displayCount'>0</span></span>
<span class="badge badge-success">Showing <span id='showCount'>0</span> samples</span>
</div>
<div id='showListSlider'>
<div id="range"></div>
<div>
<input type='text' class='show-list-start' placeholder='start' style='width:60px'> - <input type='text' class='show-list-end' placeholder='end' style='width:60px'>
</div>
<div><button class='btn' type="button" id="showButton" data-loading-text="creating..." tabindex="2" title="Show!" >Show!</button></div>
</div>
<br>
<div id='sampleList'>
<!--sampleList-->
<div id='pagination'>
</div>
</div>
<div class='pagination'>
<!--Page Numbers-->
</div>
</div><!--span4-->
</div><!--row-->
<hr>
<!--
Following divs are for the modal windows.
-->
<div id="help" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>Something bothering You?</h3>
</div>
<div class="modal-body">
<div>Please feel free to drop a mail at [email protected]</div>
</div>
</div>
<div id="input-modal" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>Input Content</h3>
</div>
<div class="modal-body">
< Content >
</div>
</div>
<div id="share" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>What are People Saying!</h3>
</div>
<div class="modal-body">
<h4>Tweet (use #socrWebapp hashtags)</h4>
<div id='tweetbox'>
<a href="https://twitter.com/intent/tweet?button_hashtag=socrWebapp&text=I%20started%20using%20socr%20webApps.%20You%20should%20try%20too.%20 http://www.socr.ucla.edu/htmls/HTML5/SOCR_Resampling_Webapp/" class="twitter-hashtag-button" data-lang="en" data-related="jasoncosta">Tweet #socrWebApp</a>
<!--<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>-->
</div>
<div id='tweetFeed'></div>
</div>
</div>
<div id="generate-url" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>Choose the variables and hit generate!</h3>
</div>
<div class="modal-body">
<div id='settings'></div>
<div class = "generate-response"></div>
</div>
<div class="modal-footer">
<input type="text" id="url" class="input-large" value="url..." style="float:left"><a id='generate-url-button' class="btn btn-primary">Generate</a>
</div>
</div>
<div id="inputTile" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>Data Input </h3>
</div>
<div class="modal-body">
<div id="input-table" class="handsontable"></div>
<div id='status'></div>
</div>
</div>
<div id="plot" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>Sample Plot</h3>
</div>
<div class="modal-body">
<div class='chart'></div>
</div>
</div>
<div id="aboutDesc" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>ABOUT</h3>
</div>
<div class="modal-body">
<p>The goal of this project is to design a modern and portable SOCR web-app that demonstrates the concepts of statistical analysis such as resampling, randomization and probabilistic simulation and runs seamlessly across varied devices.</p>
<p> Current Version: <strong>1.0</strong> </p>
<p > Created by SOCR @ UMich . Code available under MIT Licence at <a href='https://github.com/SOCRedu/Resampling-Randomization-WebApp' target='_blank'>Github</a></p>
<br/>
<p class='fine-print'> Please send an email to [email protected] to report bugs.</p>
</div>
<div class="modal-footer">
<a href="http://socr.ucla.edu" class="btn btn-primary"><i class='icon-home'></i> SOCR Home</a>
</div>
</div>
<div id='simulationDesc' class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>Simulations</h3>
</div>
<div class="modal-body">
<p>There are a list of simulation experiments you can choose from to create the dataset for further analysis. Currently we have 5 experiments installed into the App. More are soon to come!</p>
<ul>
<li>Binomial Coin Toss </li>
<li>Ball and Urn</li>
<li>Card</li>
<li>Beta Binomial</li>
<li>Beta Distribution</li>
</ul>
</div>
</div>
<div id='faq' class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">X</a>
<h3>FAQ</h3>
</div>
<div class="modal-body">
<h4>Visiting for the first time?</h4>
<p>So, This is basically a simulation app for drawing important inferences from either user provided data OR simulation generated data. It uses the bootstrap algorithm to draw random samples from a dataset to calculate the relevant parameters.</p>
<h4>How to generate data using the inbuilt simulations?</h4>
<p>
<ol>
<li>First choose a pre-loaded experiment from the list in the input tile {which opens up when you click on the blue <b>input</b> vertical button }.</li>
<li>Set the parameters in the controller tile.</li>
<li>Generate a dataset to draw random samples from.</li>
<li>Generate a lot random samples by pressing the green <b>run</b> button.</li>
<li>Set the range of samples you want to see in the SampleList (on the right side of the page) and click <b>show</b> button.</li>
<li>Choose the variable from the drop down in the controller tile and click on the red <b>infer</b> button to see the visualization.</li>
</ol>
</p>
<h4>What is this share instance button?</h4>
<p>Incase you want to share your app with the data loaded {not the generated random samples} and the predefined settings. You can just generate the url are {click the share instance}and share it with anyone you like !</p>
<h4>What inference can I deduce from this application?</h4>
<p>Currently we support 4 variables. <b>Mean , Count ,Standard Deviation , Percentile</b> .</p>
<h4>Where can I find the documentation for the SOCR webapp?</h4>
<p>We will be shortly uploading the API along with a documentation.</p>
<h4>How to install my own experiment into SOCR webapp?</h4>
<p>We will be shortly uploading the API along with a documentation.</p>
</div>
</div>
<div id='footer'>
<!-- Start SOCR footer -->
<!--
<a href="http://www.socr.ucla.edu/">SOCR Resource</a>
Visitor number <img src="http://counter.digits.com/wc/-d/4/SOCR"
align="middle" border="0" height="20" hspace="4" vspace="2" width="60">,
since Jan. 01, 2002 <script type="text/javascript"> var d=new Date(); document.write(" | "+d.getFullYear()+" | "); </script> <a
href="http://socr.ucla.edu/SOCR_Email.png"><img alt="SOCR Email"
title="SOCR Email" src="http://www.socr.ucla.edu/SOCR_Email.png"
style="border: 0px solid ;"></a>
-->
</div>
</div><!--/.fluid-container-->
</div> <!-- main -->
</body>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!--<script type='text/javascript' src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>-->
<script type='text/javascript'>
//Fix for browsers that don't support console logging
if(!window.console) console = {};
console.log = console.log || function(){};
console.warn = console.warn || function(){};
console.error = console.error || function(){};
console.info = console.info || function(){};
head.js("js/init.js",
"js/lib/jquery.min.js",
"js/lib/async.js",
"js/bootstrap/bootstrap.min.js",
{coreFunctions:"js/exp/core.js"},
{binomialCoin:"js/exp/binomialCoin.js"},
{ballAndUrn:"js/exp/ballAndUrn.js"},
{cardExp:"js/exp/cardExp.js"},
{betaBinomial:"js/exp/betaBinomial.js"},
{inputTile:"js/input/inputtable.js"},
{Model:"js/appModel.js"},
{View:"js/appView.js"},
{Controller:"js/appController.js"},
"js/lib/jquery-ui.min.js",
{D3:"js/vis/d3.v2.min.js"},
"js/vis/vis.js",
"js/jquery.paginate.js",
"js/update.js",
"js/lib/jtweet/jquery.jtweetsanywhere-1.3.1.min.js",
"js/lib/jquery.transit.min.js",
"js/lib/jquery.easing.1.3.js",
"js/lib/jquery.pubsub.js",
"js/lib/jquery.handsontable.full.js",
"js/input/data.js",
"js/input/worldbank.js",
"js/vis/tooltip.js",
"js/tools/FCal.js",
"js/tools/ZCal.js",
"js/lib/mustache/mustache.js",
"js/lib/chardinjs/chardinjs.min.js",
"js/tutorial/tutorial.js",
"js/utils.js",
"js/appData.js",
"js/bootstrap/bootstrapSwitch.js",
"js/config.js",
"js/bootstrap/bootstrap.min.js"
);
head.ready(function () {
var url = window.location.href;
var baseUrl = url.substring(0, url.indexOf('index.html'));
if(baseUrl =='')
baseUrl=url;
/*
GLOBAL VARIABLES...TO BE ACCESSED FROM {experiment}.js files.
** BAD practice.litering global namespace
@Latest Revision: Segregrating all global variables to the necessary SOCR sub-object
*/
socr.exp.controllerSliderState = "hide";
/*
*Loading MVC
*/
socr.model = new socr.model();
socr.view = new socr.view(socr.model);
socr.controller = new socr.controller(socr.model,socr.view);
/*
* CoverPage rendering
*/
socr.view.CoverPage();
document.onreadystatechange = function(){
if (document.readyState == 'complete'){
/* All resources are loaded */
$('#startApp').removeAttr('disabled')
.html('Launch')
};
}
/*
* Resize event adjusts the cover page accordingly
*/
$(window).resize(function(){
console.log('Coverpage function')
socr.view.CoverPage();
});
$(document).ready(function(){
/*
* Initialize the controller
*/
socr.controller.initialize();
socr.view.initialize();
var urlParams = {};
(function () {
var match,
pl = /\+/g, // Regex for replacing addition symbol with a space
search = /([^&=]+)=?([^&]*)/g,
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
query = window.location.search.substring(1);
while (match = search.exec(query))
urlParams[decode(match[1])] = decode(match[2]);
})();
if(urlParams.type!==undefined){
//type=urlParams.type;
console.log("dataset:"+urlParams.dataset);
console.log("nSize:"+urlParams.nSize);//datapoints
console.log("countSize:"+urlParams.countSize);
//urlParams.variable;
$("#dataDriven-tab").trigger('click');
$("#nSize").val(urlParams.nSize);
$("#countSize").val(urlParams.countSize);
socr.model.setDataset({
data:urlParams.dataset,
processed:false,
type:'url'
});
//load the dataset grid with the url values
socr.view.loadInputSheet(urlParams.dataset.split(","));
//view.updateSimulationInfo()
$('section .response').html('Data loaded successfully! Just go to controller tile and start generating random samples!<i class="icon-ok"></i>').show();
//$("#countSize").val(urlParams.variable);
}
}); //document ready function
}); //head.js ready function
</script>
<!-- Start of StatCounter Code -->
<!--
<script type="text/javascript">
var sc_project=5714596;
var sc_invisible=1;
var sc_partition=71;
var sc_click_stat=1;
var sc_security="038e9ac4";
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script>
<!-- End of StatCounter Code -->
<!-- GoogleAnalytics -->
<!--
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script>
<script type="text/javascript"> _uacct = "UA-676559-1"; urchinTracker(); </script>
<!-- End of GoogleAnalytics Code -->
<img src="img/cards.png" style="display:none" />
</html>