-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDashboard.html
2199 lines (2010 loc) · 119 KB
/
Dashboard.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
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--
* Dashboard.html
*
* by Justin Ratra
*/
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Northeastern University - NAS Dashboard</title>
<!--
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
-->
<meta name="viewport" content="width=device-width" />
<link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
<link href="./css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="./css/bootstrap-theme.css" rel="stylesheet" type="text/css" />
<link href="./css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
<link href="./css/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href="./css/charts.css" rel="stylesheet" type="text/css" />
<link href="./css/plot.css" rel="stylesheet" type="text/css" />
<link href="./css/navmenu.css" rel="stylesheet" type="text/css" />
<link href="./css/print.css" rel="stylesheet" type="text/css" />
<script src="./js/jquery-1.11.2.min.js" type="text/javascript"></script>
<script src="./js/jquery-ui.min.js" type="text/javascript"></script>
<script src="./js/bootstrap.js" type="text/javascript"></script>
<script src="./js/randomColor.min.js" type="text/javascript"></script>
<script src="./js/underscore.js" type="text/javascript"></script>
<script src="./js/underscore.math.js" type="text/javascript"></script>
<script src="./js/Chart.js" type="text/javascript"></script>
<script src="./js/d3.v3.js" type="text/javascript"></script>
<script src="./js/box.js" type="text/javascript"></script>
<script src='./js/persist-min.js' type='text/javascript'></script>
<script src="./js/dashboard.js" type="text/javascript"></script>
<script src="./js/drawCharts.js" type="text/javascript"></script>
<script src="./js/jquery.PrintArea.js" type="text/javascript"></script>
<script src="./js/jquery.cookie.js" type="text/javascript"></script>
<script src="./js/numeric-1.2.6.min.js" type="text/javascript"></script>
<style type="text/css">
html { height: 100%; }
body { height: 100%; }
.tab { height: 100%; }
.hidden { display: none; }
.chart-container { margin-left: auto; margin-right: auto; }
svg:not(:root) { overflow: visible; }
/*
svg:not(:root) { overflow: visible; }
*/
</style>
</head>
<body>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61853517-1', 'auto');
ga('send', 'pageview');
</script>
<div id="#main">
<span id="hidden-span" style="display:none;"></span>
<div id="print-area"></div>
<!-- Nav Bar Start -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div id="navbar-container" class="container">
<div class="collapse navbar-collapse">
<!--
<a class="navbar-brand" href="#">
<img id="navbar-brand-image" src="./img/NeoQIC_icon_126_59.gif" height="59" width="126" />
</a>
-->
<div class="navbar-header">
<a id="brand-text" href="#" class="navbar-brand">NNRT</a>
</div>
<ul id="navbar-items" class="nav navbar-nav">
<li><a href="#">Home</a></li>
<li><a href="#">My Hospital Report</a></li>
<li><a href="#">State Report</a></li>
<li><a href="#">Customizable Charts</a></li>
<li class="selected"><a href="#">Help</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<div class="btn-group">
<button id="print-page" type="button" class="print-btn btn btn-primary" href="#">Print Page</button>
<button id="print-report" type="button" class="print-btn btn btn-primary" href="#">Print Report</button>
</div>
</ul>
</div>
</div>
</nav>
<!-- Nav Bar End -->
<!-- Help Tab Start -->
<div id="help-tab" class="container tab" style="margin-bottom: 10px;">
<div class="row">
<div class="col-md-12">
<br />
<ul id="help-nav" class="nav nav-tabs nav-justified">
<li class="active"><a href="#">Getting Started</a></li>
<li><a href="#">Charts and Graphs</a></li>
<li><a href="#">Customize Page</a></li>
<li><a href="#">FAQs / Troubleshooting</a></li>
</ul>
</div>
</div>
<div id="help-nav-tabs" class="print-container">
<div id="help-gstart-tab">
<div class="row">
<br />
<div class="col-md-12">
<div class="well well-sm">
<a onclick="$(document).scrollTop($('#h4-gstart').offset().top - 75); return false;" href="#">Getting Started</a> <br />
<a onclick="$(document).scrollTop($('#h4-data').offset().top - 75); return false;" href="#">Selecting a Data File</a> <br />
<a onclick="$(document).scrollTop($('#h4-hid').offset().top - 75); return false;" href="#">Choosing a Hospital ID</a> <br />
<a onclick="$(document).scrollTop($('#h4-date').offset().top -75); return false;" href="#">Selecting a Date Range</a> <br />
<a onclick="$(document).scrollTop($('#h4-reports').offset().top -75); return false;" href="#">Creating the Reports</a>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-gstart">Getting Started</h4>
<p>This web application is optimized to work with Google Chrome.</p>
<p>This will not work in Internet Explorer!</p>
<p>Before you can use the reporting tool of this dashboard, ensure you have a .CSV file that has been exported from RedCAP (with labels)</p>
</div>
<div class="col-md-6">
<div class="row" style="display: inline">
<div class="ib">
<div class="col-md-4">
<h3>Chrome</h3>
</div>
<div class="col-md-4">
<img width="50" height="50" class="logos" src="./img/chrome_logo.png" />
</div>
<div class="col-md-4">
<h3>✓</h3>
</div>
</div>
<div class="ib">
<div class="col-md-4">
<h3>IE</h3>
</div>
<div class="col-md-4">
<img width="50" height="50" class="logos" src="./img/ie_logo.png" />
</div>
<div class="col-md-4">
<h3>✗</h3>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-data">Selecting a Data File</h4>
<p>Click on 'Choose File' and select a <strong>.CSV</strong> file from your computer.</p>
<br />
<br />
<p><a href="./data/dummy_data.csv">Here's a link to a dummy data file you can download.</a></p>
</div>
<div class="col-md-6">
<img src="./img/help_csv.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-hid">Choosing a Hospital ID</h4>
<p>Select your hospital from the Drop-Down menu.</p>
</div>
<div class="col-md-6">
<img src="./img/help_hid.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-date">Selecting a Date Range</h4>
<p>Choose a Start Date and End Date for the reports to be created.</p>
</div>
<div class="col-md-6">
<img src="./img/help_date.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-reports">Creating the Reports</h4>
<p>After you have selected a hospital and date range, click 'Submit' button to generate the Hospital Report and State Report.</p>
</div>
<div class="col-md-6">
<img src="./img/help_submit.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<h2 style="text-align: center;">
<a href="#" onclick="$('#help-nav li:nth-child(2) a').click(); window.scrollTo(0,0); return false;">Click here to go to the 'Charts and Graphs' section</a>
</h2>
</div>
</div>
</div>
<div id="help-charts-tab">
<div class="row">
<br />
<div class="col-md-12">
<div class="well well-sm">
<a onclick="$(document).scrollTop($('#h4-control-chart').offset().top - 75); return false;" href="#">Control Charts</a> <br />
<a onclick="$(document).scrollTop($('#h4-funnel-plot').offset().top - 75); return false;" href="#">Funnel Plots</a> <br />
<a onclick="$(document).scrollTop($('#h4-tooltip').offset().top -75); return false;" href="#">Tool Tips</a> <br />
<a onclick="$(document).scrollTop($('#h4-toggle-date').offset().top -75); return false;" href="#">Toggle Date Range</a>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-control-chart">Control Charts</h4>
<p>The <strong>mean</strong> is the green center line.</p>
<p>The <strong>control limits</strong> (dashed lines) are 3σ away from the mean.</p>
<p>Data points that fall outside the control limits are colored red.</p>
<br />
<p>Placing your cursor over any data point or center line will reveal a <a onclick="$(document).scrollTop($('#h4-tooltip').offset().top - 75); return false;" class="a-tooltip" href="#">tooltip</a></p>
</div>
<div class="col-md-6">
<img src="./img/help_run.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-funnel-plot">Funnel Plots</h4>
<p>The <strong>mean</strong> is the green center line.</p>
<p>The <strong>inner control limits</strong> (with long dashed lines) are 2σ away from the mean.</p>
<p>The <strong>outer control limits</strong> (with short dashed lines) are 3σ away from the mean.</p>
<br />
<p>The orange data point represents your hospital.</p>
<br />
<p>Placing your cursor over any data point or center line will reveal a <a onclick="$(document).scrollTop($('#h4-tooltip').offset().top - 75); return false;" class="a-tooltip" href="#">tooltip</a></p>
</div>
<div class="col-md-6">
<img src="./img/help_funnel.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-box-plot">Box and Whisker Plots</h4>
<p>The <strong>median</strong> is the thin black line towards the middle of each box.</p>
<p>The <strong>quartile ranges</strong> (or whiskers) are represented by the dashed lines above and below each box.</p>
<p>The <strong>total range</strong> (1st and 4th quartiles) are represented by the whiskers (or dashed lines) above and below each box.</p>
<p>Any <strong>outliers</strong> are shown as empty circles in the same column as each box.</p>
<br />
<p>Hovering your mouse over any box will reveal the values of the quartile ranges.</p>
<p>Checking the 'Show Box and Whiskers Label' will make the values always visible.</p>
</div>
<div class="col-md-6">
<img src="./img/help_box.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-tooltip">Tool Tips</h4>
<p>Placing your cursor over any data point or center line will reveal additional data for that point.</p>
</div>
<div class="col-md-6">
<img src="./img/help_charts_tooltip.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-toggle-date">Toggle Date Range</h4>
<p>Change the 'Start Date' and 'End Date' fields then click 'Refresh' to draw the chart with a new date range</p>
</div>
<div class="col-md-6">
<img src="./img/help_charts_date.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<h2 style="text-align: center;">
<a href="#" onclick="$('#help-nav li:nth-child(3) a').click(); window.scrollTo(0,0); return false;">Click here to go to the 'Customize Page' section</a>
</h2>
</div>
</div>
</div>
<div id="help-customize-tab">
<div class="row">
<br />
<div class="col-md-12">
<div class="well well-sm">
<a onclick="$(document).scrollTop($('#h4-chart-types').offset().top - 75); return false;" href="#">Chart Types</a> <br />
<a onclick="$(document).scrollTop($('#h4-axes').offset().top - 75); return false;" href="#">X- and Y-Axis Variables</a> <br />
<a onclick="$(document).scrollTop($('#h4-chart-labels').offset().top -75); return false;" href="#">Chart Labels</a> <br />
<a onclick="$(document).scrollTop($('#h4-chart-labels').offset().top -75); return false;" href="#">Create Charts</a>
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-chart-types">Chart Types</h4>
<p>Selecting a chart type from the first drop down will populate the X and Y variable drop downs.</p>
<p>There are three types of charts:</p>
<ul>
<li><p>Control Charts</p></li>
<li><p>Box and Whisker Plots</p></li>
<li><p>Funnel Plots</p></li>
</ul>
</div>
<div class="col-md-6">
<img src="./img/help_chart_types.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-axes">X- and Y-Axis Variables</h4>
<p>The center drop down selects your Y-Axis variable.</p>
<p>The right-most drop down selects your X-Axis variable.</p>
</div>
<div class="col-md-6">
<img src="./img/help_axes.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-chart-labels">Chart Labels</h4>
<p>Fill in the leftmost text box to set the <strong>Chart Title</strong></p>
<p>Fill in the center text box to set the <strong>Y-Axis Label</strong></p>
<p>Fill in the rightmost text box to set the <strong>X-Axis Label</strong></p>
</div>
<div class="col-md-6">
<img src="./img/help_titles.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-cust-create">Create Charts</h4>
<p>
After selecting a
<strong>Chart Type</strong>,
<strong>Hospital ID</strong>,
<strong>Y Axis Variable</strong>,
<strong>X Axis Variable</strong>, and
<strong>Date Range</strong>,
click 'Submit' to create the chart.
</p>
</div>
<div class="col-md-6">
<img src="./img/help_cust_create.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<h2 style="text-align: center;">
<a href="#" onclick="$('#help-nav li:nth-child(4) a').click(); window.scrollTo(0,0); return false;">Click here to go to the 'FAQs / Troubleshooting' section</a>
</h2>
</div>
</div>
</div>
<div id="help-faq-tab">
<div class="row">
<br />
<div class="col-md-12">
<div class="well well-sm">
<a onclick="$(document).scrollTop($('#h4-export-csv').offset().top - 75); return false;" href="#">Where do I get a CSV File to upload to the dashboard?</a> <br />
<a onclick="$(document).scrollTop($('#h4-csv-errors').offset().top - 75); return false;" href="#">What do the error messages mean that pop up when I upload my CSV file?</a> <br />
<a onclick="$(document).scrollTop($('#h4-print-pdf').offset().top - 75); return false;" href="#">How do I print a chart to a PDF?</a> <br />
<a onclick="$(document).scrollTop($('#h4-complete-check').offset().top - 75); return false;" href="#">What does the 'Only Use Data Rows That Are Complete' checkbox do?</a> <br />
<a onclick="$(document).scrollTop($('#h4-no-data-error').offset().top - 75); return false;" href="#">Why does it say 'No Data Available' instead of displaying a chart?</a> <br />
<a onclick="$(document).scrollTop($('#h4-contact-us').offset().top - 75); return false;" href="#">Who can I contact if I have questions about this dashboard?</a> <br />
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 class="help-header" id="h4-export-csv">Where do I get a CSV File to upload to the dashboard?</h4>
<p>To use the dashboard, you must download an exported CSV file from RedCAP.</p>
<p>Log into RedCAP.</p>
<p>Click '<strong>My Projects</strong>' from the top menu.</p>
<p>Select the '<strong>Statewide Neonatal Abstinence Syndrome Improvement Project</strong>' project.'</p>
<p>Click '<strong>Data Exports, Reports, and Stats</strong>' (listed under Applications) on the left menu.</p>
<p>Click '<strong>Export Data</strong>' (next to the All Data report).</p>
<p>Choose the '<strong>CSV / Microsoft Excel (labels)</strong>' Export Format.</p>
<p>Click '<strong>Export Data</strong>' on the bottom right.</p>
</div>
<div class="col-md-6">
<img src="./img/help_export_csv.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 class="help-header" id="h4-csv-errors">What do the error messages mean that pop up when I upload my CSV file?</h4>
<p>These error messages occur when the application cannot find one or more columns of data in the CSV file to generate the reports.</p>
<p>If the error box is red, this means you cannot generate any reports until this is resolved.</p>
<p>If the error box is yellow, this means certain charts may not generate.</p>
<br />
<p>You can resolve the issue by selecting the item(s) from the drop down menu that represents the missing data.</p>
</div>
<div class="col-md-6">
<img src="./img/help_csv_errors.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 class="help-header" id="h4-print-pdf">How do I print a chart to a PDF?</h4>
<p>Click one of the print buttons on the top right.</p>
<p>In Google Chrome, change your Printer Destination to '<strong>Save as PDF</strong>'</p>
<p>In Mozilla FireFox, click the PDF drop down on the bottom left, and then select '<strong>Save as PDF...</strong>'</p>
</div>
<div class="col-md-6">
<div class="col-md-6">
<img src="./img/help_chrome_pdf.png" />
</div>
<div class="col-md-6">
<img src="./img/help_firefox_pdf.png" />
</div>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 class="help-header" id="h4-complete-check">What does the 'Only Use Data Rows That Are Complete' checkbox do?</h4>
<p>These error messages occur when the application cannot find one or more columns of data in the CSV file to generate the reports.</p>
</div>
<div class="col-md-6">
<img src="./img/help_complete_check.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-no-data-error">Why does it say 'No Data Available' instead of displaying a chart?</h4> <br />
<p>If there is not enough data to populate a chart, this error message is displayed.</p>
<p>However, this message may also appear if you do not resolve any <a onclick="$(document).scrollTop($('#h4-csv-errors').offset().top - 75); return false;" href="#">CSV Errors</a>.</p>
</div>
<div class="col-md-6">
<img src="./img/help_no_data_error.png" />
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6">
<h4 id="h4-contact-us">Who can I contact if I have questions about this dashboard?</h4> <br />
</div>
<div class="col-md-6">
<p>E-mail <a href="mailto:[email protected]">[email protected]</a> if you encounter any issues or have any questions.</p>
<br />
</div>
</div>
</div>
</div>
</div>
<!-- Help Tab End -->
<!-- Home Tab Start -->
<div id="home-tab" class="print-container container tab">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h2>Welcome to the Northeastern NAS Reporting Tool <small>(NNRT)</small></h2>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h3>Upload a CSV file to begin:</h3>
</div>
</div>
<div class="row">
<div class="col-md-4">
   
<input type="file" id="csvfile" />
<br />
<br />
<div id="complete-check-div">
<input class="complete-check" type="checkbox" /> Only Use Data Rows That Are Complete
</div>
</div>
<div class="col-md-6">
<div id="csvfile-error" class="alert alert-danger">
<strong>Error reading CSV File!</strong>
<br />Please Refresh the Page.
</div>
<div id="global-var-error-wrapper">
<div id="global-single-var-error-template" class="alert alert-warning global-var-error">
<input class="global-prop-hidden" type="hidden" />
<input class="global-col-hidden" type="hidden" />
<strong>Error finding '<span class="colName"></span>' column</strong>
<br />Please select the correct column from the drop-down menu:
<select class="dataDrop csvfile-error-select form-control"></select>
<br />
<input class="csvfile-single-error-btn btn btn-default" type="submit" value="Update" />
</div>
<div id="global-mult-var-error-template" class="alert alert-warning global-var-error">
<input class="global-prop-hidden" type="hidden" />
<input class="global-col-hidden" type="hidden" />
<strong>Error finding '<span class="colName"></span>' columns</strong>
<br />Please select the correct columns from the following menu:
<select class="dataDrop csvfile-mult-error-select form-control" multiple></select>
<input class="csvfile-mult-error-btn btn btn-default" type="submit" value="Update" />
</div>
</div>
</div>
</div>
<div class="row">
<br />
<br /><br />
</div>
<div id="select-hid-row" class="row" style="display:none;">
<div class="col-md-3">
<h4>Select Your Hospital ID:</h4>
<br /> <br />
<select id="hidSelect" class="hid-select"></select>
</div>
<div class="col-md-4">
<div class="row">
<div class="col-md-12">
<h4>Select A Date Range:</h4>
</div>
</div>
<div class="row date-toggle">
<div class="col-md-6">
<br />
Start: <input class="date-toggle-start" type="text" />
<br /><br />
End:  <input class="date-toggle-end" type="text" />
</div>
<div class="col-md-6">
<br><input class="interval-radio" id="month-toggle" type="radio" value="month" name="interval" checked="checked"> Monthly
<br><input class="interval-radio" id="quarter-toggle" type="radio" value="quarter" name="interval"> Quarterly
</div>
</div>
</div>
<div class="col-md-3">
<h4>Create Reports:</h4>
<br /> <br />
<input id="create-submit" class="btn btn-default" type="submit" value="Submit" />
</div>
<div class="col-md-4">
</div>
</div>
<!--
After uploading a file,
if creating Local and Regional Dashboards fails (check if values are of right type)
ask the user to clarify certain columns.
-->
<div class="bottom-div"></div>
</div>
<!-- Home Tab End -->
<!-- Local Tab Start -->
<div id="local-tab" class="container print-container tab print-report">
<div class="upload-file-message no-print row">
<div class="col-md-12">
<div class="alert alert-info" role="alert">
<h4>
<strong>Not so fast!</strong> You must upload a CSV file and generate reports before you can view this page.
<br /><a href="#" class="alert-link" onclick="$('#navbar-items li:nth-child(1) a').click();">Click Here to go to the upload file page.</a>
</h4>
</div>
</div>
</div>
<div class="only-print">
<h5 style="text-align: center">My Hospital Report</h5>
</div>
<table class="print-area">
<tr>
<td>
<div class="chart-container">
<input class="chart-options-index" type="hidden" value="0" />
<div id="localChartDiv1" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print">
<div class="date-toggle-range">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
</div>
<div class="date-toggle-interval">
<input value="month" class="interval-radio" name="refresh-interval-1" type="radio" /> Monthly
<br />
<input value="quarter" class="interval-radio" name="refresh-interval-1" type="radio" /> Quarterly
</div>
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
</div>
</td>
<td>
<div class="chart-container">
<input class="chart-options-index" type="hidden" value="1" />
<div id="localChartDiv2" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print">
<div class="date-toggle-range">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
</div>
<div class="date-toggle-interval">
<input value="month" class="interval-radio" name="refresh-interval-2" type="radio" /> Monthly
<br />
<input value="quarter" class="interval-radio" name="refresh-interval-2" type="radio" /> Quarterly
</div>
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="chart-container">
<input class="chart-options-index" type="hidden" value="2" />
<div id="localChartDiv3" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print">
<div class="date-toggle-range">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
</div>
<div class="date-toggle-interval">
<input value="month" class="interval-radio" name="refresh-interval-3" type="radio" /> Monthly
<br />
<input value="quarter" class="interval-radio" name="refresh-interval-3" type="radio" /> Quarterly
</div>
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
</div>
</td>
<td>
<div class="chart-container">
<input class="chart-options-index" type="hidden" value="3" />
<div id="localChartDiv4" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print">
<div class="date-toggle-range">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
</div>
<div class="date-toggle-interval">
<input value="month" class="interval-radio" name="refresh-interval-4" type="radio" /> Monthly
<br />
<input value="quarter" class="interval-radio" name="refresh-interval-4" type="radio" /> Quarterly
</div>
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
</div>
</td>
</tr>
</table>
<div class="bottom-div"></div>
</div>
<!-- Local Tab End -->
<!-- Regional Tab Start -->
<div id="regional-tab" class="container print-container tab print-report">
<div class="upload-file-message no-print row">
<div class="col-md-12">
<div class="alert alert-info" role="alert">
<h4>
<strong>Not so fast!</strong> You must upload a CSV file and generate reports before you can view this page.
<br /><a href="#" class="alert-link">Click Here to go to the upload file page.</a>
</h4>
</div>
</div>
</div>
<div class="only-print">
<h5 style="text-align: center">State Report</h5>
</div>
<table class="print-area">
<tr>
<td>
<div class="chart-container" style="margin-left: 20px;">
<input class="chart-options-index" type="hidden" value="4" />
<div id="regionChartDiv1" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print" style="margin-left: -30px;">
<div class="date-toggle-range">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
</div>
<div class="date-toggle-interval">
<input value="month" class="interval-radio" name="refresh-interval-5" type="radio" /> Monthly
<br />
<input value="quarter" class="interval-radio" name="refresh-interval-5" type="radio" /> Quarterly
</div>
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
<!--
<div class="date-toggle no-print" style="margin-left: -24px">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
-->
</div>
</td>
<td>
<div class="chart-container">
<input class="chart-options-index" type="hidden" value="5" />
<div id="regionChartDiv2" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="chart-container">
<input class="chart-options-index" type="hidden" value="6" />
<div id="regionChartDiv3" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
</div>
</td>
<td>
<div class="chart-container">
<input class="chart-options-index" type="hidden" value="7" />
<div id="regionChartDiv4" class="chartDiv"></div>
<br /><br />
<div class="date-toggle no-print">
Start: <input class="date-toggle-start" type="text" />
 
End: <input class="date-toggle-end" type="text" />
 
<input value="Refresh" class="refresh-data-btn btn btn-default" type="submit" />
</div>
</div>
</td>
</tr>
</table>
<div class="bottom-div"></div>
</div>
<!-- Regional Tab End -->
<!-- Customize Tab Start -->
<div id="customize-tab" class="container tab" style="margin-bottom: 10px;">
<div class="row">
<div class="col-md-12">
<br />
<input id="simpleRadio" type="radio" name="menu-radio" value="simple" checked="checked" /> Simple
<input id="advancedRadio" type="radio" name="menu-radio" value="advanced" /> Advanced
<br />
<br />
</div>
</div>
<div class="row">
<div class="col-md-3">
Select Chart Type:
</div>
<div class="col-md-3">
Select Variable 1 (Y-Axis)
</div>
<div class="col-md-3">
Select Variable 2 (X-Axis)
</div>
<div class="col-md-3">
</div>
</div>
<!-- Simple Menu -->
<div id="simpleRow">
<div class="row">
<div class="col-md-3">
<select id="simpleChartTypeDrop" class="form-control">
<option value="0">Select One</option>
<option value="1">Control Chart</option>
<option value="2">Box and Whisker Plot</option>
<option value="3">Funnel Plot</option>
<!-- <option value="4">Bar Chart</option> -->
</select>
<br />
<br />
<div id="simpleHidSelect">
<h4>Select a Hospital ID:</h4>
<select class="hid-select form-control">
</select>
</div>
</div>
<div class="col-md-3">
<select id="simpleYDataDrop" class="form-control">
<option value="0">Select One</option>
</select>
</div>
<div class="col-md-3">
<select id="simpleXDataDrop" class="form-control">
<option value="0">Select One</option>
</select>
<div id="simpleDateXData">
<br />
<div class="date-toggle">
<div style="display: inline-block;">
Start: <input id="simpleStartDateText" class="date-toggle-start" type="text" /><br />
End:  <input id="simpleEndDateText" class="date-toggle-end" type="text" /><br />
</div>
<div style="display: inline-block; float: right;">
<input value="month" class="interval-radio" name="refresh-interval-cust" type="radio" checked="checked" /> Monthly
<br />
<input value="quarter" class="interval-radio" name="refresh-interval-cust" type="radio" /> Quarterly
</div>
</div>
</div>
</div>
<div class="col-md-3">
<input type="submit" id="simpleSubmitBtn" />
</div>
</div>
</div>
<!-- Advanced Menu -->
<div id="advancedRow">
<!-- Select Chart Attributes Row -->
<div class="row">
<div class="col-md-3">
<select id="chartTypeDrop" class="form-control">
<option value="0">Select One</option>
<option value="1">Control Chart</option>
<option value="2">Box and Whisker Plot</option>
<option value="3">Funnel Plot</option>
<!-- <option value="4">Bar Chart</option> -->
</select>
<div id="hidChecks">
</div>
<br />
<div id="advHidSelect">
<h4>Select a Hospital ID:</h4>
<select class="hid-select form-control">
</select>
</div>
</div>
<div class="col-md-3">
<select id="yDataDrop" class="form-control dataDrop">
<option value="0">Select One</option>
</select>
<div id="indicatorDiv">
<br />
<h5>Indicator Value:</h5>
<input id="indicatorText" class="form-control" type="text" />
</div>
</div>
<div class="col-md-3">
<select id="xDataDrop" class="form-control dataDrop">
<option value="0">Select One</option>
</select>
<div id="multipleXData">
<select id="xDataDrop2" class="form-control dataDrop" multiple>
</select>
</div>
<div id="dateXData">
<br />
<div class="date-toggle">
<div style="display: inline-block;">
Start: <input id="startDateText" class="date-toggle-start" type="text" /><br />
End:  <input id="endDateText" class="date-toggle-end" type="text" /><br />
</div>
<div style="display: inline-block; float: right;">
<input value="month" class="interval-radio" name="refresh-interval-cust-adv" type="radio" checked="checked" /> Monthly
<br />
<input value="quarter" class="interval-radio" name="refresh-interval-cust-adv" type="radio" /> Quarterly
</div>
</div>
<!--
Start: <input id="startDateText" type="text" class="date-text" /><br />
End:  <input id="endDateText" type="text" class="date-text" /><br />
   
<input id="monthRadio" type="radio" name="date-radio" value="month" /> Month
 
<input id="yearRadio" type="radio" name="date-radio" value="year" /> Year
-->
</div>
</div>
<div class="col-md-3">
<input type="submit" id="advSubmitBtn" />
</div>
</div>
</div>
<div class="row">
<br /><br />
<br /><br />
</div>
<!-- Enter Chart Labels Row -->
<div class="row">
<div class="col-md-3">
<input id="chartTitleText" placeholder="Chart Title" class="form-control" />
</div>
<div class="col-md-3">
<input id="yAxisTitleText" placeholder="Y-Axis Title" class="form-control" />
</div>
<div class="col-md-3">
<input id="xAxisTitleText" placeholder="X-Axis Title" class="form-control" />
</div>
<div class="col-md-3">
<div id="box-label-div" style="display: none;">
<input id="box-labels-check" type="checkbox" /> Show Box and Whisker Labels
</div>
</div>
</div>
<div class="row">
<br /><br />
<br /><br />
</div>
<!-- Chart Row -->
<div class="row print-container">
<div class="col-md-12">
<div id="custChartDiv"></div>
</div>
</div>
<div class="row">
<br /><br />
<br /><br />
</div>
<div class="bottom-div"></div>
</div>
<!-- Customize Tab End -->
<!-- Footer Start -->
<footer class="footer">
<div class="footer-container container">
<a href="#">
<img id="footer-brand-image" src="./img/HSyE_icon_full.png" height="60" width="417" />
</a>
<h5 id="footer-brand-text">in partnership with</h5>
<a href="#">
<img id="footer-sponsor-image" src="./img/NeoQIC_icon_126_59.gif" height="59" width="126" />
</a>
</div>
</footer>
<!-- Footer End -->
</div>
<script type="text/javascript">
$(document).ready(function () {
var $homeTab = $("#home-tab");
var $localTab = $("#local-tab");
var $regionalTab = $("#regional-tab");
var $customizeTab = $("#customize-tab");
var $helpTab = $("#help-tab");
var $tabs = [$homeTab, $localTab, $regionalTab, $customizeTab, $helpTab];
$homeTab.hide();
$localTab.hide();
$regionalTab.hide();
$customizeTab.hide();
$helpTab.show();
$(".global-var-error").hide();
//$("#select-hid-row").hide();
//var docHeight = $tabs[0].find(".bottom-div").position().top;
//$('footer').css('top', 10+docHeight + 'px');
// Handle Switching Tabs
function switchTab(i) {
for (var j = 0; j < 5; j++) {
if (j == i) {