forked from ABI-Web-Apps/MedTechHeart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1684 lines (1593 loc) · 89.8 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
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
<!DOCTYPE html>
<html lang="en" style="height:100%">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107203086-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'UA-107203086-1');
</script>
<title>MedTechHeart</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
font-family: Helvetica;
font-size: 100%;
background-color: #000;
color: #fff;
margin: 0px;
overflow: hidden;
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
-moz-user-select: none; /* mozilla browsers */
-khtml-user-select: none; /* webkit (konqueror) browsers */
-ms-user-select: none; /* IE */
}
</style>
<link rel="stylesheet" href="styles/new_style.css">
<script src="js/three.min.js"></script>
<script src="js/zinc_threejs_control.js"></script>
<script src="js/zinc_3js_renderer.js"></script>
<script src="js/show_hide_answer.js" ></script>
<script src="js/Add3DLabel.js" ></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/dojo/1.11.2/dojo/dojo.js" data-dojo-config="async: 1, parseOnLoad: true" ></script>
<!-- <script src="../../dojo-release-1.11.2/dojo/dojo.js" data-dojo-config="async: 1, parseOnLoad: true" ></script>-->
<script>
var dojoConfig = {
async: true,
// This code registers the correct location of the "demo" package
// so we can load Dojo from the CDN whilst still being able to
// load local modules
packages: [{
name: "js",
location: location.pathname.replace(/\/[^/]+$/, "") + "/js"
}]
};
</script>
<script>require(["dijit/Dialog"]);</script>
<script src="js/LVPandECG.js" ></script>
</head>
<body onload="setTimer()" style="height:100%;font-family='Helvetica'" oncontextmenu="return false" unselectable="on" onselectstart="return false;">
<div id="main_page" class="heartpage">
<div id="heart_video" class="video_player closed">
<video id="heart" controls controlsList="nodownload" style = "position:absolute;height:90%;width:100%" class="closed" onended="ExitFullScreen('heart')">
<source src="videos/1_healthy_heart.mp4">
Your browser does not support the video tag.
</video>
<div class="close_video" onclick="closeVideo('heart')" style="display:inline-block">
<img src="images/heart_v7/Annie_Jones.png" style="height:90%;top:5%;left:5%;position:absolute" alt="annie_jones">
<img src="images/heart_v7/close_video_icon.png" style="height:90%;top:5%;width:55%;left:22.5%;position:absolute"alt="click_to_close">
<img src="images/heart_v7/Liz_Broadbent.png" style="height:90%;top:5%;right:5%;position:absolute" alt="liz_broadbent">
</div>
</div>
<div id="blockage_video" class="video_player closed">
<video id="blockage" controls controlsList="nodownload" style = "position:absolute;height:90%;width:100%" class="closed" onended="ExitFullScreen('blockage')">
<source src="videos/2_blocked_arteries.mp4">
Your browser does not support the video tag.
</video>
<div class="close_video" onclick="closeVideo('blockage')" style="display:inline-block">
<img src="images/heart_v7/Annie_Jones.png" style="height:90%;top:5%;left:5%;position:absolute" alt="annie_jones">
<img src="images/heart_v7/close_video_icon.png" style="height:90%;top:5%;width:55%;left:22.5%;position:absolute"alt="click_to_close">
<img src="images/heart_v7/Liz_Broadbent.png" style="height:90%;top:5%;right:5%;position:absolute" alt="liz_broadbent">
</div>
</div>
<div id="exercise_video" class="video_player closed">
<video id="exercise" controls controlsList="nodownload" style = "position:absolute;height:90%;width:100%" class="closed" onended="ExitFullScreen('exercise')">
<source src="videos/5_exercise_v2.mp4">
Your browser does not support the video tag.
</video>
<div class="close_video" onclick="closeVideo('exercise')" style="display:inline-block">
<img src="images/heart_v7/Annie_Jones.png" style="height:90%;top:5%;left:5%;position:absolute" alt="annie_jones">
<img src="images/heart_v7/close_video_icon.png" style="height:90%;top:5%;width:55%;left:22.5%;position:absolute"alt="click_to_close">
<img src="images/heart_v7/Liz_Broadbent.png" style="height:90%;top:5%;right:5%;position:absolute" alt="liz_broadbent">
</div>
</div>
<div id="diet_video" class="video_player closed">
<video id="diet" controls controlsList="nodownload" style = "position:absolute;height:90%;width:100%" class="closed" onended="ExitFullScreen('diet')">
<source src="videos/6_diet_v2.mp4">
Your browser does not support the video tag.
</video>
<div class="close_video" onclick="closeVideo('diet')" >
<img src="images/heart_v7/Annie_Jones.png" style="height:90%;top:5%;left:5%;position:absolute" alt="annie_jones">
<img src="images/heart_v7/close_video_icon.png" style="height:90%;top:5%;width:55%;left:22.5%;position:absolute"alt="click_to_close">
<img src="images/heart_v7/Liz_Broadbent.png" style="height:90%;top:5%;right:5%;position:absolute" alt="liz_broadbent">
</div>
</div>
<div id="smoking_video" class="video_player closed">
<video id="smoking" controls controlsList="nodownload" style = "position:absolute;height:90%;width:100%" class="closed" onended="ExitFullScreen('smoking')">
<source src="videos/7_smoking_v2.mp4">
Your browser does not support the video tag.
</video>
<div class="close_video" onclick="closeVideo('smoking')" >
<img src="images/heart_v7/Annie_Jones.png" style="height:90%;top:5%;left:5%;position:absolute" alt="annie_jones">
<img src="images/heart_v7/close_video_icon.png" style="height:90%;top:5%;width:55%;left:22.5%;position:absolute"alt="click_to_close">
<img src="images/heart_v7/Liz_Broadbent.png" style="height:90%;top:5%;right:5%;position:absolute" alt="liz_broadbent">
</div>
</div>
<div id="aspirin_video" class="video_player closed">
<video id="aspirin" controls controlsList="nodownload" style = "position:absolute;height:90%;width:100%" class="closed" onended="ExitFullScreen('aspirin')">
<source src="videos/4_aspirin.mp4">
Your browser does not support the video tag.
</video>
<div class="close_video" onclick="closeVideo('aspirin')" >
<img src="images/heart_v7/Annie_Jones.png" style="height:90%;top:5%;left:5%;position:absolute" alt="annie_jones">
<img src="images/heart_v7/close_video_icon.png" style="height:90%;top:5%;width:55%;left:22.5%;position:absolute"alt="click_to_close">
<img src="images/heart_v7/Liz_Broadbent.png" style="height:90%;top:5%;right:5%;position:absolute" alt="liz_broadbent">
</div>
</div>
<div id="statin_video" class="video_player closed">
<video id="statin" controls controlsList="nodownload" style = "position:absolute;height:90%;width:100%" class="closed" onended="ExitFullScreen('statin')">
<source src="videos/3_Statins.mp4">
Your browser does not support the video tag.
</video>
<div class="close_video" onclick="closeVideo('statin')" >
<img src="images/heart_v7/Annie_Jones.png" style="height:90%;top:5%;left:5%;position:absolute" alt="annie_jones">
<img src="images/heart_v7/close_video_icon.png" style="height:90%;top:5%;width:55%;left:22.5%;position:absolute"alt="click_to_close">
<img src="images/heart_v7/Liz_Broadbent.png" style="height:90%;top:5%;right:5%;position:absolute" alt="liz_broadbent">
</div>
</div>
<div id="rightInformation" class="closed">
<div class="rightChartTitle" style = "width:75%;float:right;padding:10px;">
<b>ECG</b>
</div>
<div id="rightECG" class="rightChart" style="width:100%;float:right;">
</div>
<div id="ECGDescription" class="rightChartDescription" style="width:75%;clear:right;float:right;padding:10px;color:rgb(175, 175, 175)">
electrical waves make the heart muscle contract
</div>
<div class="rightChartTitle" style="top:6%;width:75%;float:right;padding:10px;">
<b>Pressure (mmHg)</b>
</div>
<div id="rightLVP" class="rightChart" style="top:6%;width:100%;float:right;">
</div>
<div id="LVPDescription" class="rightChartDescription" style="top:6%;clear:right;width:75%;float:right;padding:10px;color:rgb(175, 175, 175)">
muscle contraction generates pump pressure
</div>
<div class="rightChartTitle" style = "top:10%;width:75%;float:right;padding:10px;clear:right">
<b>Heart Rate</b>
</div>
<div id="rightRate" style = "top:10%;width:75%;clear:right;float:right;padding:10px">
<input id="speed_slider" type="range" min="0" max="5000" value ="1000" step="1" oninput="updateSlider(this.value)" style="width:80%;"/>
</div>
<div class="rightChartDescription" style="top:10%;width:75%;clear:right;float:right;padding:10px;color:rgb(175, 175, 175)">
beats per minute
</div>
<div class="rightChartDescription" style="top:14%;width:75%;clear:right;float:right;padding:10px;color:rgb(175, 175, 175)">
<img src="images/heart_v7/medtechcore_abi_logo.png" alt="medtech_logo" style="width:100%;">
</div>
</div>
<!-- <div id="bottom_logo" class="closed" style="background-color:rgba(255,0,0,0)">
<img src="images/heart_v7/medtechcore_abi_logo.png" alt="medtech_logo" style="width:100%;">
</div> -->
<div id="leftPanelGreen" class="closed">
<div id="bottom_control" class="closed">
<div id="home_icon" class="bottomButton closed" style="left:0%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/new_image/home.png" alt="home" onclick="realHomeClicked()" style="height:100%;width:100%">
</div>
<div id="home_selected_icon" class="open" style="left:0%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/new_image/home_selected.png" alt="home" onclick="realHomeClicked()" style="height:100%;width:100%">
</div>
<div id="attack_icon" class="bottomButton open" style="left:20%;;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_icon.png" alt="information" style="height:100%;width:100%" onclick="heartAttackClicked()">
</div>
<div id="attack_healthy_selected_icon" class="closed" style="left:20%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_healthy_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
<div id="electricity_icon" class="bottomButton open" style="left:40%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/electricity_icon.png" alt="information" style="height:100%;width:100%" onclick="heartElectricityClicked()">
</div>
<div id="electricity_healthy_selected_icon" class="closed" style="left:40%;position:absolute;;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/electricity_healthy_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
<div id="failure_icon" class="bottomButton open" style="left:60%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_icon.png" alt="information" style="height:100%;width:100%" onclick="heartFailureClicked()">
</div>
<div id="failure_healthy_selected_icon" class="closed" style="left:60%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_healthy_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
<div id="about_us_icon" class="bottomButton open" style="left:80%;position:absolute;bottom:0%;z-index:10;height:100%;width:19.9%">
<img src="images/heart_v7/about_us_icon.png" alt="information" style="height:100%;width:100%" onclick="aboutUsClicked()">
</div>
<div id="about_us_selected_icon" class="closed" style="left:80%;position:absolute;bottom:0%;z-index:10;height:100%;width:19.9%">
<img src="images/heart_v7/about_us_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
</div>
<div id="bottom_control_green_sub" class="closed">
<div id="attack_sub_healthy_icon" class="bottomButton closed" style="left:0%position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/attack_sub_healthy_icon.png" alt="vessel" style="height:100%;width:100%">
</div>
<div id="attack_sub_healthy_selected_icon" class="closed" style="left:0%;position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/attack_sub_healthy_icon.png" alt="vessel" style="height:100%;width:100%">
</div>
<div id="attack_sub_moderate_icon" class="bottomButton closed" style="left:20%;position:absolute;z-index:11;height:100%;width:20%" >
<img src="images/heart_v7/attack_sub_moderate_icon.png" alt="moderate_attack" style="height:100%;width:100%"
onclick="heartAttackStagePressed('SmallInfarct', 'MildHeartAttack', 'leftModerateAttack')">
</div>
<div id="attack_sub_severe_icon" class="bottomButton closed" style="left:40%;position:absolute;z-index:11;height:100%;width:19.9%" >
<img src="images/heart_v7/attack_sub_severe_icon.png" alt="severe_attack" style="height:100%;width:100%"
onclick="heartAttackStagePressed('LargeInfarct', 'SevereHeartAttack', 'leftSevereAttack')">
</div>
<div id="attack_line" class="bottom_control_green_graphics closed" style="bottom:0%;left:0%;height:10%;width:60%;z-index:12">
</div>
<div id="attack_box" class="bottom_control_green_graphics closed" style="bottom:10%;left:0%;height:90%;width:20%;">
</div>
<div id="electricity_sub_healthy_icon" class="bottomButton closed" style="left:30%;position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/electricity_sub_healthy_icon.png" alt="electricity" style="height:100%;width:100%">
</div>
<div id="electricity_sub_healthy_selected_icon" class="closed" style="left:30%;position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/electricity_sub_healthy_icon.png" alt="electricity" style="height:100%;width:100%">
</div>
<div id="electricity_line" class="bottom_control_green_graphics closed" style="bottom:0%;left:30%;height:10%;width:40%;z-index:12">
</div>
<div id="electricity_box" class="bottom_control_green_graphics closed" style="bottom:10%;left:30%;height:90%;width:20%;">
</div>
<div id="electricity_sub_fibrillation_icon" class="bottomButton closed" style="left:50%;position:absolute;z-index:10;height:100%;width:19.9%">
<img src="images/heart_v7/electricity_sub_fibrillation_icon.png" alt="fibrillation" style="height:100%;width:100%"
onclick="arrhythmiaClicked()">
</div>
<div id="failure_sub_healthy_icon" class="bottomButton closed" style="left:40%;;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_healthy_icon.png" alt="vessel" style="height:100%;width:100%">
</div>
<div id="failure_sub_healthy_selected_icon" class="closed" style="left:40%;;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_healthy_icon.png" alt="vessel" style="height:100%;width:100%">
</div>
<div id="failure_sub_compensated_icon" class="bottomButton closed" style="left:60%;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_compensated_icon.png" alt="vessel" style="height:100%;width:100%"
onclick="heartFailureStagePressed('CompensatedFailure', 'CompensatedFailure', 'leftCompensatedFailure')">
</div>
<div id="failure_sub_decompensated_icon" class="bottomButton closed" style="left:80%;;position:absolute;z-index:10;height:100%;width:19.9%">
<img src="images/heart_v7/failure_sub_decompensated_icon.png" alt="vessel" style="height:100%;width:100%"
onclick="heartFailureStagePressed('DecompensatedFailure','DecompensatedFailure', 'leftDecompensatedFailure')">
</div>
<div id="failure_line" class="bottom_control_green_graphics closed" style="bottom:0%;left:40%;height:10%;width:60%;z-index:12">
</div>
<div id="failure_box" class="bottom_control_green_graphics closed" style="bottom:10%;left:40%;height:90%;width:20%;">
</div>
</div>
<div id="initialNormal" class="closed">
<div class="leftTitle" >
<b>Te Manawa</b>
</div>
<div class="leftDescription">
<span style="color:rgba(50,255,50,0.6)"><b>The Heart</b></span>
</div>
<div class="leftAnswer open">
<p class="big">This is an interactive model of the heart's two main pumping chambers: the ventricles. Spin, zoom, drag, and open the heart using the gestures shown at the bottom. Vary the heart rate using the slider on the right. </p>
<img src="images/heart_v7/schematic.png" alt="schematic" style="position:relative;left:5%;width:90%;">
<hr class="style">
<p class="big" style="width:80%;display:inline-block">The heart pumps blood around the body to provide all the organ systems with oxygen and nutrients. </p>
<div id="heart_selected_icon" class = "medicationLifestyle" style="width:20%;left:70;position:absolute;display:none">
<img src="images/heart_v7/heart_video_selected.png" alt="home" onclick="closeVideo('heart')"
style="width:100%;">
</div>
<div id="heart_icon" class = "medicationLifestyle" style="width:20%;left:70;position:absolute;display:inline-block">
<img src="images/heart_v7/heart_video.png" alt="home" onclick="showVideo('heart')"
style="width:100%;">
</div>
<p class="big">The ECG trace (top right) represents the electrical waves in the heart that stimulate contraction and generate pressure (middle right) to pump blood. </p>
<hr class="style">
<p class="big">Click through the tabs below to learn about various heart diseases.</p>
</div>
</div>
<div id="leftHeartAttack" class="closed">
<div class="leftTitle">
<b>Heart Attack</b>
</div>
<div class="leftDescription">
<span style="color:rgba(50,205,50,0.6)"><b>Coronary Arteries</b></span>
</div>
<div class="leftAnswer open">
<p class="big">The heart pumps blood to itself through blood vessels called the coronary arteries (not shown in the 3D model). A heart attack occurs when blood flow is obstructed by a narrowing of these arteries.</p>
<img src="images/heart_v7/coronary_heart.png" alt="moderate" style="position:relative;left:0%;width:60%;display:inline-block">
<div id="blockage_icon" class = "medicationLifestyle" style="top:10%;width:20%;left:10%;position:relative;display:inline-block">
<img src="images/heart_v7/blockage_icon.png" alt="home" onclick="showVideo('blockage')"
style="width:100%">
</div>
<div id="blockage_selected_icon" class = "medicationLifestyle" style="top:10%;width:20%;left:10%;position:relative;display:none;">
<img src="images/heart_v7/blockage_selected_icon.png" alt="home" onclick="closeVideo('blockage')"
style="width:100%">
</div>
<p class="big">Good lifestyle choices help to keep the coronary arteries healthy and prevent heart attacks. Learn more about how lifestyle factors can affect the heart in the following movie clips.</p>
<div id="exercise_icon" class = "medicationLifestyle" style="top:0%;width:20%;position:relative;display:inline-block">
<img src="images/heart_v7/exercise.png" alt="home" onclick="showVideo('exercise')" style="width:100%;">
</div>
<div id="exercise_selected_icon" class = "medicationLifestyle" style="top:0%;width:20%;position:relative;display:none">
<img src="images/heart_v7/exercise_selected.png" alt="home" onclick="closeVideo('exercise')" style="width:100%;">
</div>
<div id="diet_icon" class = "medicationLifestyle" style="top:0%;width:20%;position:relative;display:inline-block">
<img src="images/heart_v7/diet.png" alt="home" onclick="showVideo('diet')" style="width:100%;">
</div>
<div id="diet_selected_icon" class = "medicationLifestyle" style="top:0%;width:20%;position:relative;display:none">
<img src="images/heart_v7/diet_selected.png" alt="home" onclick="closeVideo('diet')" style="width:100%;">
</div>
<div id="smoking_icon" class = "medicationLifestyle" style="top:0%;width:20%;position:relative;display:inline-block">
<img src="images/heart_v7/smoking.png" alt="home" onclick="showVideo('smoking')" style="width:100%;">
</div>
<div id="smoking_selected_icon" class = "medicationLifestyle" style="top:0%;width:20%;position:relative;display:none">
<img src="images/heart_v7/smoking_selected.png" alt="home" onclick="closeVideo('smoking')" style="width:100%;">
</div>
<hr class="style">
<p class="big">Click on the tabs below to learn more about minor or severe heart attacks.</p>
</div>
</div>
<div id="leftHeartElectricity" class="closed">
<div class="leftTitle">
<b>Heart Electricity</b>
</div>
<div class="leftDescription" >
<span style="color:rgba(50,255,50,0.6)"><b>Electrocardiograms</b></span>
</div>
<div class="leftAnswer open">
<p class="big">Electrical waves (coloured yellow) pass through the heart to trigger contraction of the muscular walls. The heart needs coordinated electrical waves and smooth contraction to pump effectively.</p>
<p class="big">The electrical waves in the heart can be measured by placing electrodes on the chest. This is called an electrocardiogram (ECG) recording, as shown at the right.</p>
<!-- <img src="images/heart_v7/ecg.jpg" alt="severe" style="position:relative;left:0%;width:100%;"> -->
<hr class="style">
<p class="big">Click on fibrillation below to see what happens when this smooth electrical activity is disrupted.</p>
</div>
</div>
<div id="leftHeartFailure" class="closed">
<div class="leftTitle" >
<b>Heart Failure</b>
</div>
<div class="leftDescription">
<span style="color:rgba(50,255,50,0.6)"><b>Chronic problems</b></span>
</div>
<div class="leftAnswer open">
<p class="big">Long term problems such as high blood pressure or untreated heart attacks can eventually cause the heart to fail. </p>
<p class="big">In heart failure, the heart needs to work harder than normal to meet the demands of the body. This can lead to changes in the heart's shape and stiffness, and its ability to contract and relax. </p>
<hr class="style">
<p class="big">Click on the tabs below to learn more about the different types of heart failure.</p>
</div>
</div>
</div>
<div id="leftPanelYellow" class="closed">
<div id="bottom_control_yellow" class="open">
<div id="home_icon_yp" class="bottomButton open" style="left:0%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/new_image/home.png" alt="home" onclick="realHomeClicked()" style="height:100%;width:100%">
</div>
<div id="attack_icon_yp" class="bottomButton open" style="left:20%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_icon.png" alt="information" style="height:100%;width:100%" onclick="heartAttackClicked()">
</div>
<div id="attack_moderate_selected_icon" class="closed" style="left:20%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_moderate_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
<div id="electricity_icon_yp" class="bottomButton open" style="left:40%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/electricity_icon.png" alt="information" style="height:100%;width:100%" onclick="heartElectricityClicked()">
</div>
<div id="failure_icon_yp" class="bottomButton open" style="left:60%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_icon.png" alt="information" style="height:100%;width:100%" onclick="heartFailureClicked()">
</div>
<div id="about_us_icon_yp" class="bottomButton open" style="left:80%;position:absolute;bottom:0%;z-index:10;height:100%;width:19.9%">
<img src="images/heart_v7/about_us_icon.png" alt="information" style="height:100%;width:100%" onclick="aboutUsClicked()">
</div>
<div id="failure_compensated_selected_icon" class="closed" style="left:60%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_compensated_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
</div>
<div id="bottom_control_yellow_sub" class="open">
<div id="attack_sub_healthy_icon_yp" class="bottomButton closed" style="left:0%;position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/attack_sub_healthy_icon.png" alt="vessel" style="height:100%;width:100%"
onclick="heartAttackStagePressed('NoInfarct','NoHeartAttack', 'leftHeartAttack')">
</div>
<div id="attack_sub_moderate_selected_icon" class="closed" style="left:20%;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_sub_moderate_icon.png" alt="moderate_attack" style="height:100%;width:100%"
onclick="heartAttackStagePressed('SmallInfarct', 'MildHeartAttack', 'leftModerateAttack')">
</div>
<div id="attack_sub_severe_icon_yp" class="bottomButton closed" style="left:40%;position:absolute;z-index:10;height:100%;width:20%" >
<img src="images/heart_v7/attack_sub_severe_icon.png" alt="severe_attack" style="height:100%;width:100%"
onclick="heartAttackStagePressed('LargeInfarct', 'SevereHeartAttack', 'leftSevereAttack')">
</div>
<div id="attack_moderate_line" class="bottom_control_yellow_graphics closed" style="bottom:0%;left:0%;height:10%;width:60%;z-index:12">
</div>
<div id="attack_moderate_box" class="bottom_control_yellow_graphics closed" style="bottom:10%;left:20%;height:90%;width:20%;">
</div>
<div id="failure_sub_healthy_icon_yp" class="bottomButton closed" style="left:40%;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_healthy_icon.png" alt="healthy" style="height:100%;width:100%"
onclick="heartFailureStagePressed('NoInfarct','NoFailure', 'leftHeartFailure')">
</div>
<div id="failure_sub_compensated_selected_icon" class="closed" style="left:60%;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_compensated_icon.png" alt="compensated" style="height:100%;width:100%">
</div>
<div id="failure_sub_decompensated_icon_yp" class="bottomButton closed" style="left:80%;position:absolute;z-index:10;height:100%;width:19.9%">
<img src="images/heart_v7/failure_sub_decompensated_icon.png" alt="decompensated" style="height:100%;width:100%"
onclick="heartFailureStagePressed('DecompensatedFailure', 'DecompensatedFailure', 'leftDecompensatedFailure')">
</div>
<div id="failure_compensated_line" class="bottom_control_yellow_graphics closed" style="bottom:0%;left:40%;height:10%;width:60%;z-index:12">
</div>
<div id="failure_compensated_box" class="bottom_control_yellow_graphics closed" style="bottom:10%;left:60%;height:90%;width:19.9%;">
</div>
</div>
<div id="leftModerateAttack" class="closed">
<div class="leftTitle" >
<b>Heart Attack</b>
</div>
<div class="leftDescription" >
<span style="color:rgba(255,255,0,0.6)"><b>Minor</b></span>
</div>
<div class="leftAnswer open">
<p class="big">In a heart attack, fatty deposits build up inside the coronary arteries. This obstructs blood flow to the heart muscle and causes tissue damage. </p>
<img src="images/heart_v7/coronary_block_moderate_no_vid.png" alt="moderate" style="position:relative;left:0%;width:60%">
<div id="blockage_yp_icon" class = "medicationLifestyle" style="top:10%;width:20%;left:10%;position:relative;display:inline-block;">
<img src="images/heart_v7/blockage_icon.png" alt="home" onclick="showVideo('blockage_yp')"
style="width:100%">
</div>
<div id="blockage_yp_selected_icon" class = "medicationLifestyle" style="top:10%;width:20%;left:10%;position:relative;display:none;">
<img src="images/heart_v7/blockage_selected_icon.png" alt="home" onclick="closeVideo('blockage_yp')"
style="width:100%">
</div>
<p class="big">Less pressure is generated by hearts with damaged tissue (yellow trace) compared to healthy hearts (green trace). </p>
<hr class="style">
<p class="big">Medications such as statins and aspirin help to clear coronary blockages. They must be combined with healthy lifestyle choices to help prevent further heart attacks.</p>
<div id="statin_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:inline-block">
<img src="images/heart_v7/statin.png" alt="home" onclick="showVideo('statin')"
style="width:100%">
</div>
<div id="statin_selected_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:none">
<img src="images/heart_v7/statin_selected.png" alt="home" onclick="closeVideo('statin')"
style="width:100%">
</div>
<div id="aspirin_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:inline-block">
<img src="images/heart_v7/aspirin.png" alt="home" onclick="showVideo('aspirin')"
style="width:100%">
</div>
<div id="aspirin_selected_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:none">
<img src="images/heart_v7/aspirin_selected.png" alt="home" onclick="closeVideo('aspirin')"
style="width:100%">
</div>
<div id="exercise_yp_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:inline-block">
<img src="images/heart_v7/exercise.png" alt="home" onclick="showVideo('exercise_yp')" style="width:100%">
</div>
<div id="exercise_yp_selected_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:none">
<img src="images/heart_v7/exercise_selected.png" alt="home" onclick="closeVideo('exercise_yp')" style="width:100%">
</div>
<div id="diet_yp_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:inline-block">
<img src="images/heart_v7/diet.png" alt="home" onclick="showVideo('diet_yp')" style="width:100%">
</div>
<div id="diet_yp_selected_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:none">
<img src="images/heart_v7/diet_selected.png" alt="home" onclick="closeVideo('diet_yp')" style="width:100%">
</div>
<div id="smoking_yp_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:inline-block">
<img src="images/heart_v7/smoking.png" alt="home" onclick="showVideo('smoking_yp')" style="width:100%">
</div>
<div id="smoking_yp_selected_icon" class = "medicationLifestyle" style="top:0%;width:18%;position:relative;display:none">
<img src="images/heart_v7/smoking_selected.png" alt="home" onclick="closeVideo('smoking_yp')" style="width:100%">
</div>
</div>
</div>
<div id="leftCompensatedFailure" class="closed">
<div class="leftTitle" >
<b>Heart Failure</b>
</div>
<div class="leftDescription" >
<span style="color:rgba(255,255,0,0.6)"><b>Compensated</b></span>
</div>
<div class="leftAnswer open">
<p class="big">In compensated heart failure the muscular walls of the heart get thicker in response to prolonged high blood pressure. Open the heart (double-click) to see the thicker heart walls.</p>
<hr class="style">
<p class="big">In compensated failure, during each beat less blood is able to enter the heart, because of thicker walls, increased stiffness, and/or delayed relaxation.</p>
<p class="big">At rest, the heart can cope with these problems, and patients may not show any symptoms. However, during exercise or stress, they may find that their hearts cannot effectively respond to the increased demand to pump blood.</p>
<hr class="style">
<p class="big">Researchers are still seeking effective treatment options for patients with compensated heart failure. Some suggest that it may lead on to decompensated heart failure, described in the tab below.</p>
</div>
</div>
</div>
<div id="leftPanelRed" class="closed">
<div id="bottom_control_red" class="open">
<div id="home_icon_rp" class="bottomButton open" style="left:0%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/new_image/home.png" alt="home" onclick="realHomeClicked()" style="height:100%;width:100%">
</div>
<div id="attack_icon_rp" class="bottomButton open" style="left:20%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_icon.png" alt="information" style="height:100%;width:100%" onclick="heartAttackClicked()">
</div>
<div id="attack_severe_selected_icon" class="closed" style="left:20%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_severe_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
<div id="electricity_icon_rp" class="bottomButton open" style="left:40%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/electricity_icon.png" alt="information" style="height:100%;width:100%" onclick="heartElectricityClicked()">
</div>
<div id="electricity_fibrillation_selected_icon" class="open" style="left:40%;position:absolute;;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/electricity_fibrillation_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
<div id="failure_icon_rp" class="bottomButton open" style="left:60%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_icon.png" alt="information" style="height:100%;width:100%" onclick="heartFailureClicked()">
</div>
<div id="failure_decompensated_selected_icon" class="closed" style="left:60%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_decompensated_selected_icon.png" alt="information" style="height:100%;width:100%">
</div>
<div id="about_us_icon_rp" class="bottomButton open" style="left:80%;position:absolute;bottom:0%;z-index:10;height:100%;width:19.9%">
<img src="images/heart_v7/about_us_icon.png" alt="information" style="height:100%;width:100%" onclick="aboutUsClicked()">
</div>
</div>
<div id="bottom_control_red_sub" class="open">
<div id="attack_sub_healthy_icon_rp" class="bottomButton closed" style="left:0%;position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/attack_sub_healthy_icon.png" alt="vessel" style="height:100%;width:100%"
onclick="heartAttackStagePressed('NoInfarct','NoHeartAttack', 'leftHeartAttack')">
</div>
<div id="attack_sub_moderate_icon_rp" class="bottomButton closed" style="left:20%;position:absolute;z-index:10;height:100%;width:20%" >
<img src="images/heart_v7/attack_sub_moderate_icon.png" alt="moderate_attack" style="height:100%;width:100%"
onclick="heartAttackStagePressed('SmallInfarct', 'MildHeartAttack', 'leftModerateAttack')">
</div>
<div id="attack_sub_severe_selected_icon" class="closed" style="left:40%;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_sub_severe_icon.png" alt="severe_attack" style="height:100%;width:100%">
</div>
<div id="attack_severe_line" class="bottom_control_red_graphics closed" style="bottom:0%;left:0%;height:10%;width:60%;z-index:12"></div>
<div id="attack_severe_box" class="bottom_control_red_graphics closed" style="bottom:10%;left:40%;height:90%;width:20%;"></div>
<div id="electricity_sub_healthy_icon_rp" class="bottomButton closed" style="left:30%;position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/electricity_sub_healthy_icon.png" alt="electricity" style="height:100%;width:100%" onclick=heartElectricityClicked()>
</div>
<div id="electricity_sub_fibrillation_selected_icon" class="closed" style="left:50%;position:absolute;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/electricity_sub_fibrillation_icon.png" alt="fibrillation" style="height:100%;width:100%">
</div>
<div id="fibrillation_line" class="bottom_control_red_graphics closed" style="bottom:0%;left:30%;height:10%;width:40%;z-index:12"></div>
<div id="fibrillation_box" class="bottom_control_red_graphics closed" style="bottom:10%;left:50%;height:90%;width:20%;"></div>
<div id="failure_sub_healthy_icon_rp" class="bottomButton closed" style="left:40%;position:absolute;z-index:8;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_healthy_icon.png" alt="vessel" style="height:100%;width:100%"
onclick="heartFailureStagePressed('NoInfarct','NoFailure', 'leftHeartFailure')">
</div>
<div id="failure_sub_compensated_icon_rp" class="bottomButton closed" style="left:60%;position:absolute;z-index:8;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_compensated_icon.png" alt="vessel" style="height:100%;width:100%"
onclick="heartFailureStagePressed('CompensatedFailure', 'CompensatedFailure', 'leftCompensatedFailure')">
</div>
<div id="failure_sub_decompensated_selected_icon" class="closed" style="left:80%;position:absolute;z-index:11;height:100%;width:20%">
<img src="images/heart_v7/failure_sub_decompensated_icon.png" alt="vessel" style="height:100%;width:100%">
</div>
<div id="failure_decompensated_line" class="bottom_control_red_graphics closed" style="bottom:0%;left:40%;height:10%;width:60%;">
</div>
<div id="failure_decompensated_box" class="bottom_control_red_graphics closed" style="bottom:10%;left:80%;height:90%;width:20%;">
</div>
</div>
<div id="leftSevereAttack" class="closed">
<div class="leftTitle" >
<b>Heart Attack</b>
</div>
<div class="leftDescription" >
<span style="color:rgba(255,50,0,0.6)"><b>Severe</b></span>
</div>
<div class="leftAnswer open">
<p class="big">If a minor heart attack is left untreated, or if medication is stopped too early, then the coronary artery blockage can become more severe.</p>
<img src="images/heart_v7/coronary_block_severe.png" alt="severe" style="position:relative;left:0%;width:60%;">
<div id="blockage_rp_icon" class = "medicationLifestyle" style="top:10%;width:20%;left:10%;position:relative;display:inline-block;">
<img src="images/heart_v7/blockage_icon.png" alt="home" onclick="showVideo('blockage_rp')"
style="width:100%">
</div>
<div id="blockage_rp_selected_icon" class = "medicationLifestyle" style="top:10%;width:20%;left:10%;position:relative;display:none;">
<img src="images/heart_v7/blockage_selected_icon.png" alt="home" onclick="closeVideo('blockage_rp')"
style="width:100%">
</div>
<p class="big">A severe heart attack can cause permanent damage to a large portion of heart tissue. This prevents the heart from generating enough pressure to pump blood around the body (red trace). </p>
<p class="big">Muscle damage due to a heart attack can lead to problems with electrical activity of the heart. Untreated heart attacks can eventually lead to heart failure.</p>
</div>
</div>
<div id="leftHeartArrhythmia" class="closed">
<div class="leftTitle" >
<b>Heart Electricity</b>
</div>
<div class="leftDescription" >
<span style="color:rgba(255,50,0,0.6)"><b>Fibrillation</b></span>
</div>
<div class="leftAnswer open">
<p class="big">Chaotic electrical waves (red ECG trace) cause uncoordinated contraction of the heart muscle. This reduces the heart's ability to generate pressure (red trace).</p>
<p class="big">This is a serious medical condition that needs to be treated immediately. An automated external defibrillator (AED) is able to restore the smooth electrical waves in the heart by applying a large electrical shock across the chest.</p>
<hr class="style">
<p class="big">AED devices can be found in many public places. Click on the standard AED logo below to defibrillate the virtual heart!</p>
<div id="aed_button" class="open">
<img src="images/heart_v7/defibrillation.png" alt="aed" style="position:relative;left:35%;width:30%;" onclick="AEDClicked()">
</div>
</div>
</div>
<div id="leftDecompensatedFailure" class="closed">
<div class="leftTitle" >
<b>Heart Failure</b>
</div>
<div class="leftDescription" >
<span style="color:rgba(255,50,0,0.6)"><b>Decompensated</b></span>
</div>
<div class="leftAnswer open">
<p class="big">In decompensated heart failure the muscular walls of the heart become thinner and the heart balloons out. See these changes by opening the heart (double-click).</p>
<hr class="style">
<p class="big">A heart with decompensated failure is weak and has problems with contraction and pumping of blood.</p>
<p class="big">Patients with decompensated heart failure will have symptoms, even at rest. These symptoms include dizziness, breathing difficulties, inability to exercise, and chest pains.</p>
<hr class="style">
<p class="big">Treatments for this disease include ACE inhibitors, beta blockers, and diuretics, which work to lower blood pressure and decrease the load on the heart.</p>
</div>
</div>
</div>
<div id="leftPanelPurple" class="closed">
<div id="bottom_control_purple" class="open">
<div id="home_icon_pp" class="bottomButton open" style="left:0%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/new_image/home.png" alt="home" onclick="realHomeClicked()" style="height:100%;width:100%">
</div>
<div id="attack_icon_pp" class="bottomButton open" style="left:20%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/attack_icon.png" alt="information" style="height:100%;width:100%" onclick="heartAttackClicked()">
</div>
<div id="electricity_icon_pp" class="bottomButton open" style="left:40%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/electricity_icon.png" alt="information" style="height:100%;width:100%" onclick="heartElectricityClicked()">
</div>
<div id="failure_icon_pp" class="bottomButton open" style="left:60%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/failure_icon.png" alt="information" style="height:100%;width:100%" onclick="heartFailureClicked()">
</div>
<div id="about_us_selected_icon" class="open" style="left:80%;position:absolute;bottom:0%;z-index:10;height:100%;width:20%">
<img src="images/heart_v7/about_us_selected_icon.png" alt="information" style="height:100%;width:100%" onclick="aboutUsClicked()">
</div>
</div>
<div id="aboutUs" class="open">
<div class="leftTitle">
<b>About Us</b>
</div>
<div class="leftDescription">
<span> </span>
</div>
<div id="our_team_icon" style="top:40%;" class="aboutUsButtons open" onclick="ourTeamClicked()">
Our Team
</div>
<div id="our_team_selected_icon"
style="top:40%;background-color:rgba(150,30,150,0.4);color:rgb(255,255,255)"
class="aboutUsButtons closed">
Our Team
</div>
<div id="our_research_icon" style="top:25%;" class="aboutUsButtons closed" onclick="ourResearchClicked()">
Our Research
</div>
<div id="our_research_selected_icon"
style="top:25%;background-color:rgba(150,30,150,0.4);color:rgb(255,255,255)"
class="aboutUsButtons open">
Our Research
</div>
<div id="feedback_icon" style="position:absolute;top:55%;width:80%;left:10%" >
<div class="leftAnswer open" style="font-size:2.0em;">
<p class="big">Visit our <a href="https://tinyurl.com/medtechheartfeedback" target="_blank" style="color:yellow">online form</a> to give us your valuable feedback about this app.</p>
</div>
</div>
<!-- <div id="feedback_icon" style="position:absolute;top:55%;width:80%;left:10%" >
<img src="images/heart_v7/feedback_icon.png" style="width:100%" alt="feedback">
</div> -->
</div>
</div>
<div id="aboutUsInfoPanel" class="closed">
<div id="ourResearch" class="closed">
<div id="ourMission" class="mission open" style="position:absolute;top:0%;width:100%;left:0%;height:20%;color:rgb(175,175,175)">
<span style="color:white;font-size:1.4em;"><b>Heart Mechanics Research at the Auckland Bioengineering Institute</b></span><br>
Improving diagnosis and management of heart diseases <br>using personalised biomechanics and image-driven computer modelling
</div>
<div id="about_us_video" class="open">
<iframe id="iframe1" style="top:20%;left:5%;width:90%;height:70%;position:absolute;" src="https://www.youtube.com/embed/FazkF5oQTU0?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div id="ourTeam" class="closed">
<div id="ourMission" class="mission open" style="position:absolute;top:0%;width:100%;left:0%;color:rgb(175,175,175)">
<span style="color:white;font-size:1.4em;"><b>Our Heart Mechanics Research Team</b></span><br>
An inter-disciplinary collaboration between experts in <br>bioengineering, physiology, software development, and medical imaging
</div>
<div id="headshots" style="position:absolute;top:17%;left:10%;height:60%">
<img src="images/heart_v7/headshots.png" style="height:100%" alt="headshots">
</div>
<div id="funding" style="position:absolute;left:20%;top:80%;width:60%">
<img src="images/heart_v7/funding_abi_medtech.png" style="width:100%" alt="funding">
</div>
</div>
<div id="feedback" class="closed">
<p>Feedback</p>
<p>Visit our <a href="https://tinyurl.com/medtechheartfeedback">online form</a> to give us your valuable feedback on this app.</p>
<!-- <div id="funding" style="position:absolute;left:16%;top:10%;width:80%">
<img src="images/heart_v7/feedback.jpg" style="width:100%" alt="feedback">
</div> -->
</div>
</div>
<div id="gestures_panel" class="closed">
<div id="gestures_icon" class="closed">
<img src="images/heart_v7/gestures_icon.png" alt="gestures_icon" style="width:100%">
</div>
<div id="halfheart" class="open" style="background-color:rgba(255,0,0,0);position:absolute;bottom:0%;left:59%;width:4%;height:11%;z-index:20" onclick="halfHeartPressed()">
</div>
<div id="reset" class="open" style="background-color:rgba(255,0,0,0);position:absolute;bottom:0%;left:45%;width:3.5%;height:11%;z-index:20" onclick="resetAllModelsView()">
</div>
</div>
<div id="myRenderer">
</div>
</div>
<script>
var modelURLsArray = [];
setUpArrays();
var container = document.getElementById("myRenderer")
var zincRenderer = new Zinc.Renderer(container, window);
Zinc.defaultMaterialColor = 0xFFFF9C;
zincRenderer.initialiseVisualisation();
zincRenderer.getThreeJSRenderer().setClearColor( 0x050505, 1);
var defaultScene = zincRenderer.getSceneByName("default");
zincRenderer.setCurrentScene(defaultScene);
var halfHeartFlag = false;
var leftPanelGreenIDs = ["initialNormal", "leftHeartElectricity", "leftHeartAttack",
"leftHeartFailure"];
var leftPanelYellowIDs = ["leftModerateAttack","leftCompensatedFailure"];
var leftPanelRedIDs = ["leftHeartArrhythmia","leftSevereAttack", "leftDecompensatedFailure"];
var leftPanelPurpleIDs = ["ourResearch","ourTeam","feedback"];
var idleTime = 0;
var idleTimeLimit = 300000;
var oldTime = new Date();
var iconIds = ["electricity_icon","electricity_icon_yp", "electricity_icon_rp","electricity_healthy_selected_icon",
"electricity_fibrillation_selected_icon",
"attack_icon", "attack_icon_yp", "attack_icon_rp",
"attack_healthy_selected_icon","attack_moderate_selected_icon","attack_severe_selected_icon",
"failure_icon", "failure_icon_yp","failure_icon_rp",
"failure_healthy_selected_icon","failure_compensated_selected_icon","failure_decompensated_selected_icon"];
var subIconIds = ["electricity_sub_healthy_icon",
"electricity_sub_healthy_selected_icon","electricity_sub_healthy_icon_rp",
"electricity_sub_fibrillation_icon","electricity_sub_fibrillation_selected_icon",
"attack_sub_healthy_icon","attack_sub_healthy_icon_yp","attack_sub_healthy_icon_rp",
"attack_sub_healthy_selected_icon",
"attack_sub_moderate_icon","attack_sub_moderate_icon_rp",
"attack_sub_moderate_selected_icon",
"attack_sub_severe_icon","attack_sub_severe_icon_yp",
"attack_sub_severe_selected_icon",
"failure_sub_healthy_icon","failure_sub_healthy_icon_yp","failure_sub_healthy_icon_rp",
"failure_sub_healthy_selected_icon",
"failure_sub_compensated_icon","failure_sub_compensated_icon_rp",
"failure_sub_compensated_selected_icon",
"failure_sub_decompensated_icon","failure_sub_decompensated_icon_yp",
"failure_sub_decompensated_selected_icon"];
var subGraphicIds = ["electricity_line","electricity_box",
"fibrillation_line","fibrillation_box","attack_line","attack_box",
"failure_line","failure_box", "attack_moderate_line", "attack_moderate_box",
"failure_compensated_line","failure_compensated_box","attack_severe_line",
"attack_severe_box","failure_decompensated_line","failure_decompensated_box"];
var videoNameIds = ["exercise","diet","smoking","aspirin","statin","heart","blockage"];
var modelToSceneArray = [];
var previousCamera = undefined;
// Insert Youtube API;
var tag = document.createElement('script');
tag.src = "//www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
function onYouTubePlayerAPIReady() {
iframe1 = new YT.Player('iframe1');
}
function ExitFullScreen(id){
if (document.exitFullscreen){
console.log('Exit fullscreen');
document.exitFullscreen();
}else if(document.mozCancelFullScreen){
console.log('Moz cancel full screen');
document.mozCancelFullScreen();
}else if (document.webkitExitFullscreen) {
console.log('webkit exit full screen');
document.webkitExitFullscreen();
} else if (document.msExitFullscreen){
console.log('ms exit full screen');
document.msExitFullscreen();
}
closeVideo(id);
}
function loadFirstPage() {
// document.getElementById("bottom_control_back").className="open";
leftPanelGreenTrigger("initialNormal");
//document.getElementById("bottom_logo").className = "open";
document.getElementById("rightInformation").className = "open";
document.getElementById("bottom_control").className = "open";
document.getElementById("home_icon").className = "closed";
document.getElementById("home_selected_icon").className = "open";
document.getElementById("gestures_panel").className="open";
loadModel("NoInfarct", 1.0);
addLabel("NoInfarct");
//loadModel("ArrythmiaElectricity",0.25);
//showFibres(false);
//displayFibresIcon(true);
showECGAndLVP("Normal", 0.0);
}
function homeClicked() {
if (document.getElementById("initialNormal").classList.contains("closed")) {
document.getElementById("home_icon").className = "closed";
document.getElementById("home_selected_icon").className = "open";
showIcons("electricity_icon", "attack_icon", "failure_icon");
leftPanelGreenTrigger("initialNormal");
document.getElementById("bottom_control_green_sub").className = "closed";
document.getElementById("bottom_control_yellow_sub").className = "closed";
document.getElementById("bottom_control_red_sub").className = "closed";
previousCamera = undefined;
resetAllModelsView();
halfHeartFlag = false;
closeAllVideos();
loadModel("NoInfarct", 1.0);
//showFibres(false);
//displayFibresIcon(true);
showECGAndLVP("Normal", 0.0);
// document.getElementById("rightPanel").className = "closed";
// document.getElementById("rightPanelBottom").className = "closed"
}
}
function backClicked(){
console.log('back clicked!')
window.history.back();
}
function realHomeClicked() {
homeClicked();
//window.location.assign("../index.html");
}
function leftPanelGreenTrigger(elementIdToDisplay) {
document.getElementById("leftPanelGreen").className="open";
document.getElementById("leftPanelPurple").className="closed";
for(var i = 0; i < leftPanelGreenIDs.length; i++){
var id = leftPanelGreenIDs[i];
document.getElementById(id).classList.remove("open");
document.getElementById(id).classList.add("closed");
}
document.getElementById("leftPanelYellow").className="closed";
document.getElementById("leftPanelRed").className="closed";
document.getElementById("aboutUsInfoPanel").className="closed";
document.getElementById("rightInformation").className="open";
document.getElementById("gestures_panel").className="open";
if (elementIdToDisplay) {
document.getElementById(elementIdToDisplay).className = "open";
}
// document.getElementById("rightPanel").className = "closed";
// document.getElementById("rightPanelBottom").className = "closed";
}
function leftPanelYellowTrigger(elementIdToDisplay) {
document.getElementById("leftPanelRed").className="closed";
document.getElementById("leftPanelGreen").className="closed";
document.getElementById("leftPanelPurple").className="closed";
document.getElementById("aboutUsInfoPanel").className="closed";
document.getElementById("leftPanelYellow").className="open";
document.getElementById("rightInformation").className="open";
<!--document.getElementById("bottom_right_control").className="open";-->
document.getElementById("gestures_panel").className="open";
for(var i = 0; i < leftPanelYellowIDs.length; i++){
var id = leftPanelYellowIDs[i];
document.getElementById(id).classList.remove("open");
document.getElementById(id).classList.add("closed");
}
if (elementIdToDisplay) {
document.getElementById(elementIdToDisplay).className = "open";
}
// document.getElementById("rightPanel").className = "closed";
// document.getElementById("rightPanelBottom").className = "closed";
}
function leftPanelRedTrigger(elementIdToDisplay) {
document.getElementById("leftPanelGreen").className="closed";
document.getElementById("leftPanelYellow").className="closed";
document.getElementById("leftPanelPurple").className="closed";
document.getElementById("aboutUsInfoPanel").className="closed";
document.getElementById("rightInformation").className="open";
<!--document.getElementById("bottom_right_control").className="open";-->
document.getElementById("gestures_panel").className="open";
document.getElementById("leftPanelRed").className="open";
for(var i = 0; i < leftPanelRedIDs.length; i++){
var id = leftPanelRedIDs[i];
document.getElementById(id).classList.remove("open");
document.getElementById(id).classList.add("closed");
}
if (elementIdToDisplay) {
document.getElementById(elementIdToDisplay).className = "open";
}
// document.getElementById("rightPanel").className = "closed";
// document.getElementById("rightPanelBottom").className = "closed";
}
function leftPanelPurpleTrigger(elementIdToDisplay) {
document.getElementById("leftPanelGreen").className="closed";
document.getElementById("leftPanelYellow").className="closed";
document.getElementById("leftPanelRed").className="closed";
document.getElementById("gestures_icon").className="closed";
document.getElementById("rightInformation").className="closed";
<!--document.getElementById("bottom_right_control").className="closed";-->
document.getElementById("initialNormal").className="closed";
document.getElementById("leftPanelPurple").className="open";
document.getElementById("aboutUsInfoPanel").className="open";
var defaultScene = zincRenderer.getSceneByName("default");
zincRenderer.setCurrentScene(defaultScene);
for(var i = 0; i < leftPanelPurpleIDs.length; i++){
var id = leftPanelPurpleIDs[i];
document.getElementById(id).classList.remove("open");
document.getElementById(id).classList.add("closed");
}
if (elementIdToDisplay) {
document.getElementById(elementIdToDisplay).className = "open";
}
}
function showIcons(showIcon1, showIcon2, showIcon3) {
for(var i = 0; i < iconIds.length; i++){
var id = iconIds[i];
if ((id != showIcon1) && (id != showIcon2) && (id != showIcon3)) {
document.getElementById(id).classList.remove("open");
document.getElementById(id).classList.add("closed");
}
}
if (document.getElementById(showIcon1).classList.contains("closed")) {
document.getElementById(showIcon1).classList.remove("closed");
document.getElementById(showIcon1).classList.add("open");
}
if (document.getElementById(showIcon2).classList.contains("closed")) {
document.getElementById(showIcon2).classList.remove("closed");
document.getElementById(showIcon2).classList.add("open");
}
if (document.getElementById(showIcon3).classList.contains("closed")) {
document.getElementById(showIcon3).classList.remove("closed");
document.getElementById(showIcon3).classList.add("open");
}
}
function showSubIcons(showSubIcon1, showSubIcon2, showSubIcon3) {
for(var i = 0; i < subIconIds.length; i++){
var id = subIconIds[i];
if ((id != showSubIcon1) && (id != showSubIcon2) && (id != showSubIcon3)) {
document.getElementById(id).classList.remove("open");
document.getElementById(id).classList.add("closed");
}
}
if (document.getElementById(showSubIcon1).classList.contains("closed")) {
document.getElementById(showSubIcon1).classList.remove("closed");
document.getElementById(showSubIcon1).classList.add("open");
}
if (document.getElementById(showSubIcon2).classList.contains("closed")) {
document.getElementById(showSubIcon2).classList.remove("closed");
document.getElementById(showSubIcon2).classList.add("open");
}
if (document.getElementById(showSubIcon3).classList.contains("closed")) {
document.getElementById(showSubIcon3).classList.remove("closed");
document.getElementById(showSubIcon3).classList.add("open");
}
}
function showSubGraphics(showGraphicsLine, showGraphicsBox){
for(var i = 0; i < subGraphicIds.length; i++){
var id = subGraphicIds[i];
if ((id != showGraphicsLine) && (id != showGraphicsBox)) {
document.getElementById(id).classList.remove("open");
document.getElementById(id).classList.add("closed");
}
}
if (document.getElementById(showGraphicsLine).classList.contains("closed")) {
document.getElementById(showGraphicsLine).classList.remove("closed");
document.getElementById(showGraphicsLine).classList.add("open");
}
if (document.getElementById(showGraphicsBox).classList.contains("closed")) {
document.getElementById(showGraphicsBox).classList.remove("closed");
document.getElementById(showGraphicsBox).classList.add("open");
}
}
function heartElectricityClicked() {
leftPanelGreenTrigger("leftHeartElectricity");
document.getElementById("bottom_control_green_sub").className = "open";
showSubIcons("electricity_sub_healthy_selected_icon","electricity_sub_fibrillation_icon","electricity_sub_fibrillation_icon");
showSubGraphics("electricity_line","electricity_box");
showIcons("electricity_healthy_selected_icon", "attack_icon", "failure_icon");
document.getElementById("home_icon").className = "bottomButton open";
document.getElementById("home_selected_icon").className = "closed";
previousCamera = undefined;
loadModel("NormalElectricity", 1.0);
showECGAndLVP("Normal", 0.0);
closeAllVideos();
}
function arrhythmiaClicked() {
//document.getElementById("leftPanelRed").className = "open";
//document.getElementById("bottom_control_red_sub").className = "open";
leftPanelRedTrigger("leftHeartArrhythmia");
document.getElementById("bottom_control_red_sub").className="open";
showSubIcons( "electricity_sub_healthy_icon_rp","electricity_sub_fibrillation_selected_icon","electricity_sub_fibrillation_selected_icon")
showIcons("electricity_fibrillation_selected_icon","attack_icon_rp","failure_icon_rp");
showSubGraphics("fibrillation_line","fibrillation_box")
loadModel("ArrythmiaElectricity", 0.25);
showECGAndLVP("Arrhythmia", 0.0);
}
function AEDClicked() {
document.getElementById("bottom_control_green_sub").className = "open";
showSubIcons("electricity_sub_healthy_selected_icon","electricity_sub_fibrillation_icon","electricity_sub_fibrillation_icon")
showIcons("electricity_healthy_selected_icon", "attack_icon", "failure_icon");
showSubGraphics("electricity_line","electricity_box");
leftPanelGreenTrigger("leftHeartElectricity");
document.getElementById("home_icon").className = "bottomButton open";