-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.php
2092 lines (1773 loc) · 93.2 KB
/
index.php
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
<?php
/*
Environment variable to specify what version of HV to display
Default: false (not set)
Available:
embed
minimal
*/
$hv_output = getenv('HV_OUTPUT');
$outputType = false;
//Disable debug mode by default
$debug = false;
//Force debug mode. Set it to true to always force debug mode.
$forceDebug = false;
//check if URL have debug parameter
if (isset($_GET['debug']) || $forceDebug) {
$debug = true;
}
$debugTime = 0;
if($debug){
$debugTime = time();
}
//check if URL have output parameter or if $hv_output enabled
if($hv_output == 'embed' || $hv_output == 'minimal'){
$outputType = $hv_output;
}else if(isset($_GET['output']) && ($_GET['output'] == 'embed' || $_GET['output'] == 'minimal')){
$outputType = $_GET['output'];
}
if($outputType){ // minimal and embed statistic
//Load Config
include_once "../api.helioviewer.org/src/Config.php";
$config = new Config("../api.helioviewer.org/settings/Config.ini");
//Log Statistic
include_once HV_ROOT_DIR.'/../src/Database/Statistics.php';
$statistics = new Database_Statistics();
//$statistics->log($outputType);
$statistics->logRedis($outputType);
}else{ //standard mode statistic
//Load Config
include_once "../api.helioviewer.org/src/Config.php";
$config = new Config("../api.helioviewer.org/settings/Config.ini");
//Log Statistic
include_once HV_ROOT_DIR.'/../src/Database/Statistics.php';
$statistics = new Database_Statistics();
//temporary additional logging
$ip = "$_SERVER[REMOTE_ADDR]";
$url = "$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
if(strpos($url,"helioviewer.org")===0){
//$statistics->log("standard");
$statistics->logRedis("standard");
//$statistics->logAccess("standard",$ip,$url);
}
}
function attr($attr, $file) {
return $attr . '="/' . $file . '?v=' . filemtime($file) . '"';
}
?><!DOCTYPE html>
<html lang="en">
<head>
<!-- Helioviewer.org 3.2 2017/03/31 -->
<title><?=($debug ? '[DEBUG]' : '')?> Helioviewer.org - Solar and heliospheric image visualization tool</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Helioviewer.org - Solar and heliospheric image visualization tool" />
<meta name="keywords" content="Helioviewer, JPEG 2000, JP2, sun, solar, heliosphere, solar physics, viewer, visualization, space, astronomy, SOHO, SDO, STEREO, AIA, HMI, EUVI, COR, EIT, LASCO, SDO, MDI, coronagraph, " />
<!--if ($this->config["disable_cache"])-->
<!--<meta http-equiv="Cache-Control" content="No-Cache" />-->
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
<!-- Blog RSS Feed -->
<link rel="alternate" type="application/rss+xml" title="The Helioviewer Project Blog RSS Feed" href="http://helioviewer-project.github.io/feed/" />
<link rel="alternate" type="application/atom+xml" title="The Helioviewer Project Blog Atom Feed" href="http://helioviewer-project.github.io/feed/atom/" />
<!--- NASA -->
<script id='_fed_an_ua_tag' type='text/javascript' src='https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA&subagency=GSFC&dclink=true'>
</script>
<!--OpenGraph Metadata-->
<meta property="og:title" content="Helioviewer.org" />
<!--OpenGraph Metadata Image-->
<meta id="fb-og-image" property="og:description" content="Solar and heliospheric image visualization tool." />
<meta id="fb-og-image" property="og:image" content="//helioviewer.org/resources/images/logos/hvlogo1s_transparent.png" />
<!-- Library CSS -->
<link rel="stylesheet" href="/resources/lib/yui-2.8.2r1/reset-fonts.css" />
<link rel="stylesheet" href="/resources/lib/jquery-ui-1.13.1/jquery-ui.min.css" />
<link rel="stylesheet" href="/resources/lib/jquery.jgrowl/jquery.jgrowl.min.css" />
<link rel="stylesheet" href="/resources/lib/jquery.qTip3/jquery.qtip.min.css" />
<link rel="stylesheet" href="/resources/lib/jquery.imgareaselect-0.9.8/css/imgareaselect-default.css" />
<link rel="stylesheet" href="/resources/lib/DatetimePicker/jquery.datetimepicker.css" />
<link rel="stylesheet" <?=attr('href', "resources/lib/flatpickr/flatpickr.min.css");?> />
<link rel="stylesheet" <?=attr('href', "resources/lib/flatpickr/flatpickr.style.css");?> type="text/css" />
<link rel="stylesheet" href="/resources/lib/boneVojage/bonevojage.css">
<link rel="stylesheet" href="/resources/lib/mediaelement/build/mediaelementplayer.min.css">
<!-- jQuery UI Theme Modifications -->
<link rel="stylesheet" href="/resources/css/dot-luv.css">
<!-- Helioviewer CSS -->
<?php
if ($debug){
?>
<link rel="stylesheet" href="/resources/css/helioviewer-base.css" />
<link rel="stylesheet" href="/resources/css/zoom-control.css" />
<link rel="stylesheet" href="/resources/css/helioviewer-web.css" />
<link rel="stylesheet" href="/resources/css/layout.css" />
<link rel="stylesheet" href="/resources/css/accordions.css" />
<link rel="stylesheet" href="/resources/css/dialogs.css" />
<link rel="stylesheet" href="/resources/css/celestial-bodies.css" />
<link rel="stylesheet" href="/resources/css/events.css" />
<link rel="stylesheet" href="/resources/css/event-viewer.css" />
<link rel="stylesheet" href="/resources/css/media-manager.css" />
<link rel="stylesheet" href="/resources/css/timeline.css" />
<link rel="stylesheet" href="/resources/css/timenav.css" />
<link rel="stylesheet" href="/resources/css/video-gallery.css" />
<link rel="stylesheet" href="/resources/css/youtube.css" />
<link rel="stylesheet" href="/resources/css/font-awesome.min.css" />
<link rel="stylesheet" href="/resources/css/helioviewer-views.css" />
<?php
} else {
?>
<link rel="stylesheet" href="/resources/compressed/helioviewer.min.css?v=<?=filemtime('resources/compressed/helioviewer.min.css')?>" />
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20263053-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
}) ();
</script>
<?php
}
?>
<script type="text/javascript">var outputType = <?php if($outputType){ echo "'".$outputType."'"; } else { echo 'false'; }?>;</script>
<?php
if(isset($_SERVER['HTTP_USER_AGENT'])) {
if(strpos($_SERVER['HTTP_USER_AGENT'],'Phone')|strpos($_SERVER['HTTP_USER_AGENT'],'Android')|strpos($_SERVER['HTTP_USER_AGENT'],'iPad')) {
$mtime = filemtime('resources/lib/responsive/responsive_hv.css');
$hvmobcssfiles= <<<MCF
<!-- START responsive CSS files -->
<link rel='stylesheet' href='/resources/lib/responsive/zeynep.css'>
<link href="/resources/lib/responsive/hamburger.min.css" rel="stylesheet">
<link rel="stylesheet" href="/resources/lib/responsive/responsive_hv.css?v=$mtime">
<!-- END responsive CSS files -->
MCF;
echo $hvmobcssfiles;
} else {
$hvdesktopcsshides= <<<DCH
<style>
.zeynep {
display: none;
}
#hvmobilemenu_btn {
display: none;
}
.zeynep-overlay {
display: none;
}
.hvmobdstab_wrap {
display: none;
}
.hvmobds_table {
display: none;
}
.hvbottombar {
display: none;
}
.hvbottomcal_wrap {
display: none;
}
</style>
DCH;
echo $hvdesktopcsshides;
}
}
?>
<style id="js-styles"></style>
</head>
<body <?php echo ($outputType ? 'class="helioviewer-view-type-'.$outputType.'"' : '')?>>
<!-- Previously dynamic-made elements, created for selecting purposes -->
<a class="text-btn" style="display:none;"></a>
<!-- START mobile menu -->
<div class="zeynep" style="background-color:none;">
<ul>
<li id="hvmobscale_li"></li>
<li>
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0" style="margin-top: 50px;">
<td class="hvmobmenu_left_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-news">
<img src="/resources/images/projectanounce_icon_transp.png" alt="HV project transparent image">
</span>
</td>
<td class="hvmobmenu_right_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-news">Helioviewer Project Announcements.</span>
</td>
</table>
</li>
<li>
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0">
<td class="hvmobmenu_left_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-youtube">
<img src="/resources/images/viewyoutube_icon_transp.png" alt="Youtube icon">
</span>
</td>
<td class="hvmobmenu_right_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-youtube">View Helioviewer Movies<br>Shared to YouTube.</span>
</td>
</table>
</li>
<li>
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0">
<td class="hvmobmenu_left_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-movies">
<img src="/resources/images/createmovie_icon_transp.png" alt="Create movie transparent icon">
</span>
</td>
<td class="hvmobmenu_right_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-movies">Create a movie.</span>
</td>
</table>
</li>
<li>
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0">
<td class="hvmobmenu_left_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-screenshots">
<img src="/resources/images/screenshot_icon_transp.png" alt="Screenshot transparent icon">
</span>
</td>
<td class="hvmobmenu_right_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-screenshots">Create a screenshot.</span>
</td>
</table>
</li>
<!--
<li>
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0">
<td class="hvmobmenu_left_td">
<a href="">
<img class="hvmobmenuitems" drawersec="hv-drawer-data" src="/resources/images/datadownload_icon_transp.png">
</a>
</td>
<td class="hvmobmenu_right_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-data">Request Science Data Download from External Partners.</span>
</td>
</table>
</li>
-->
<li>
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0">
<td class="hvmobmenu_left_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-share">
<img src="/resources/images/shareviewport_icon_transp.png" alt="Share viewport transparent icon">
</span>
</td>
<td class="hvmobmenu_right_td">
<span class="hvmobmenuitems" drawersec="hv-drawer-share">Share the current viewport on social media.</span>
</td>
</table>
</li>
<li class="has-submenu">
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0">
<td class="hvmobmenu_left_td">
<a href="#" data-submenu="hvhelp">
<img src="/resources/images/help_icon_transp.png" alt="Help transparent icon">
</a>
</td>
<td class="hvmobmenu_right_td">
<a href="#" data-submenu="hvhelp">Get Help with Helioviewer.</a>
</td>
</table>
<div id="hvhelp" class="submenu">
<div class="submenu-header">
<a href="#" data-submenu-close="hvhelp"><span style="font-weight:bold;"><</span> Main Menu</a>
</div>
<label>Get Help With Helioviewer</label>
<ul>
<li id="about_hv_mobmenu_link">
<span class="hvmobmenuitems" drawersec="hv-drawer-about" style="display:block;padding:8px;">About Helioviewer</span>
</li>
<!--
<li>
<a href="">User's Guide</a>
</li>
-->
<li>
<span class="hvmobmenuitems" drawersec="hv-drawer-glossary" style="display:block;padding:8px;">Visual Glossary</span>
</li>
<!--
<li>
<a href="">Documentation</a>
</li>
-->
<li>
<a target="_blank" href="https://api.helioviewer.org/docs/v2/">Public API Documentation</a>
</li>
<li>
<a target="_blank" href="https://helioviewer-project.github.io/">Blog</a>
</li>
<li>
<a target="_blank" href="mailto: [email protected];">Contact</a>
</li>
<li>
<a target="_blank" href="https://github.com/Helioviewer-Project/helioviewer.org/issues">Report Problem</a>
</li>
</ul>
</div>
</li>
<!--
<li>
<table class="hvmobmenu_table" cellpadding="0" cellspacing="0" border="0">
<td class="hvmobmenu_left_td">
<a href="">
<img class="hvmobmenuitems" drawersec="" src="/resources/images/setting_icon_transp.png">
</a>
</td>
<td class="hvmobmenu_right_td">
<span class="hvmobmenuitems" drawersec="">Edit Settings & Defaults</span>
</td>
</table>
</li>
-->
</ul>
</div>
<button id="hvmobilemenu_btn" class="hamburger hamburger--emphatic btn-open first" type="button" aria-label="Mobile hamburger menu button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
<div class="zeynep-overlay"></div>
<!-- END mobile menu -->
<!-- START Mobile toolbar -->
<div id="hvmobscale_div"></div>
<!-- END Mobile toolbar -->
<!-- START Mobile Drawer Tabs -->
<div class="hvmobdstab_wrap">
<!--
<div class="hvmobdstabs" id="accordion-date_mobtab" drawersec="accordion-date">Observation Date</div>
<div class="hvmobdstabs" id="accordion-images_mobtab" drawersec="accordion-images">Images</div>
<div class="hvmobdstabs" id="accordion-events_mobtab" drawersec="accordion-events">Features & Events</div>
<div class="hvmobdstabs" id="accordion-bodies_mobtab" drawersec="accordion-bodies">Celestial Bodies</div>
-->
<!-- START: Mobile Data source menu -->
<table class="hvmobds_table" cellpadding="0" cellspacing="0" border="0">
<tr class="hvmobds_tr">
<td class="hvmobds_td">
<a class="hvmobdstabs" drawersec="accordion-images">
<img class="hvmobds_icon" src="https://develop.helioviewer.org/resources/images/mobile/images_icon1.png" alt="Layers icon">
<br><span>Images &<span class="hvmobbs_br"><br></span> Layers</span>
</a>
</td>
<td class="hvmobds_td">
<a class="hvmobdstabs" drawersec="accordion-events">
<img class="hvmobds_icon" src="https://develop.helioviewer.org/resources/images/mobile/events_icon1.png" alt="Events icon">
<br><span>Features &<span class="hvmobbs_br"><br></span> Events</span>
</a>
</td>
<td class="hvmobds_td">
<a class="hvmobdstabs" drawersec="accordion-bodies">
<img class="hvmobds_icon" src="https://develop.helioviewer.org/resources/images/mobile/celestial_icon2.png" alt="Celestial Bodies icon">
<br><span>Celestial<span class="hvmobbs_br"><br></span> Bodies</span>
</a>
</td>
</tr>
</table>
<!-- END: Mobile Data source menu -->
</div>
<!-- END Mobile Drawer Tabs -->
<!-- START Mobile DateTime field -->
<div class="hvbottombar" style="">
<div class="dtcycle">
<table class="dtcycle_table2" cellpadding="0" cellspacing="0" border="0" style="width: 100%;height: 100%;">
<tr>
<td class="dtcycle_arrows_td" hvdtcontrol="day_down" style="text-align:left;"><img hvdtcontrol="day_down" class="dtcycle_arrows" src="/resources/images/mobile/leftarrow1.png" alt="Timeframe left arrow"></td>
<!--
<td id="dt_monthyear_td" style="">
<span id="dt_month_td"></span><br>
<span id="dt_year_td"></span>
</td>
<td id="dtday_td" style=""><span id="dt_day_spaces1"> </span><span id="dt_day_td"></span></td>
-->
<td id="hvmobdate_td" style=""></td>
<td id="hvmobtime_td" style=""></td>
<td class="dtcycle_arrows_td" hvdtcontrol="day_up" style="text-align:right;"><img hvdtcontrol="day_up" class="dtcycle_arrows" src="/resources/images/mobile/rightarrow1.png" alt="Timeframe right arrow"></td>
</tr>
<tr>
<td class="dtcycle_jump_td" colspan="2" style="">
<span style="color:#ffffff;">JUMP:</span>
<span id="hvmobjump_div"></span>
</td>
<td class="dtcycle_jump_td" id="timeNowBtn_mob_td" colspan="2" >
</td>
</tr>
</table>
</div>
</div>
<!-- END Mobile DateTime field -->
<!-- START mobile bottom calendar tool -->
<div class="hvbottomcal_wrap">
<img src="/resources/images/mobile/calendar1.png" class="hvbottomcal_img" alt="Calendar icon">
</div>
<!-- END mobile bottom calendar tool -->
<!-- START Mobile Event Popup -->
<!--<div id="invispopupbg"></div>-->
<div id="event-popup_mob"></div>
<!-- END Mobile Event Popup -->
<?php if($outputType != 'embed'){ ?>
<div class="user-select-none" style="width: 100%; margin: 0; padding: 0; text-align: center; z-index: 9;">
<!-- Image area select tool -->
<div id='image-area-select-buttons'>
<div style="margin: 0 auto; width: 20em;">
<div id='cancel-selecting-image' class='text-btn'>
<span class='fa fa-times-circle fa-fw'></span>
<span>Cancel</span>
</div>
<div id='done-selecting-image' class='text-btn'>
<span class='fa fa-check-circle fa-fw'></span>
<span>Confirm Selection</span>
</div>
</div>
</div>
</div>
<?php } ?>
<div style="width: 100%; height: 100%; margin: 0; padding: 0;">
<?php if(!$outputType){ ?>
<div id="hv-header" class="user-select-none">
<div id="loading">
<span>
<span>Loading Data</span>
<span class="fa fa-circle-o-notch fa-spin"></span>
</span>
</div>
<div id="logo">
<h1>
<span><a class="logo-icon fa fa-sun-o fa-fw" href="" title="The Open-Source Solar and Heliospheric Data Browser"><span class="sr-only">Helioviewer.org</span></a><a class="logo-text" href="" title="The Open-Source Solar and Heliospheric Data Browser">Helioviewer.org</a></span>
</h1>
</div>
<div id="zoom">
<!-- Zoom Controls -->
<div id="zoomControls" style="display: none;">
<div id="zoomControlZoomIn" title="Zoom in." style="display: none;">+</div>
<div id="zoomSliderContainer" style="display: none;">
<div id="zoomControlSlider" style="display: none;"></div>
</div>
<div id="zoomControlZoomOut" title="Zoom out." style="display: none;">-</div>
</div>
<div id="center-button" class="viewport-action fa fa-crosshairs" title="Center the Sun in the Viewport"></div>
<div id="zoom-out-button" class="viewport-action fa fa-search-minus" title="Zoom Out"></div>
<div id="zoom-in-button" class="viewport-action fa fa-search-plus" title="Zoom In"></div>
</div>
<div id="menus">
<div class="left">
<div id="news-button" class="fa fa-rss fa-fw qtip-left social-button" title="Helioviewer Project Announcements."></div>
<div id="youtube-button" class="fa fa-fw qtip-left" title="View Helioviewer Movies Shared to YouTube."></div>
<div id="movies-button" class="fa fa-file-video-o fa-fw qtip-left social-button" title="Create a Helioviewer Movie."></div>
<a id="screenshots-button" class="fa fa-file-picture-o fa-fw qtip-left social-button" title="Download a screenshot of the current Helioviewer Viewport."></a>
<a id="data-button" class="fa fa-file-code-o fa-fw qtip-left social-button" title="Request Science Data Download from External Partners."></a>
<div id="share-button" class="fa fa-share-square-o fa-fw qtip-left social-button" title="Share the current viewport on social media."></div>
</div>
<div class="right" style="margin-right: 0.5em;">
<div id="help-button" class="fa fa-question fa-fw qtip-left" href="" style="margin-left: 0.5em;" title="Get Help with Helioviewer."></div>
<div id="settings-button" class="fa fa-cog fa-fw qtip-left" title="Edit Settings & Defaults."></div>
</div>
</div>
<div id="scale">
<div id="earth-button" class="viewport-action segmented-left fa fa-globe" title="Toggle Earth-Scale Indicator."></div><div id="scalebar-button" class="viewport-action segmented-right fa fa-arrows-h" style="border-left: 0;" title="Toggle Length scale indicator."></div>
</div>
<!-- Mouse coordinates display -->
<div id="mouse-coords-box">
<div id="mouse-coords">
<div id="js-coord-help" class="coord-notice" rel="/dialogs/mouse_coordinates.html"><span class="fa fa-info"></span></div>
<div class="mouse-coordinate-labels">
<span id="js-label-1">X: </span>
<span id="js-label-2">Y: </span>
</div>
<div class="mouse-coordinate-values">
<span><span id="mouse-coords-x"></span><span class="mouse-unit" id="js-unit-1"></span></span>
<span><span id="mouse-coords-y"></span><span class="mouse-unit" id="js-unit-2"></span></span>
</div>
</div>
<div id="mouse-cartesian" style="margin-top:4px;" class="viewport-action segmented-left fa fa-cube" title="Toggle Mouse Coordinates (Cartesian)"></div><div id="mouse-polar" class="viewport-action segmented-right fa fa-dot-circle-o" style="border-left: 0;margin-top:4px;" title="Toggle Mouse Coordinates (Polar)"></div>
</div>
</div>
<div id="hv-drawer-left" class="user-select-none">
<div class="drawer-contents">
<div id="accordion-date" class="accordion">
<div class="header">
<div class="disclosure-triangle closed">►</div>
<h1>Observation Date</h1>
<div class="right fa fa-question-circle contextual-help" style="margin-right: 15px;" title="
Changing the 'Observation Date' will update the Viewport with data matching the new date and time.<br /><br />
Use the 'Jump' controls to browse forward and backward in time by a regular interval.<br /><br />
Note that when an image is not available for the exact date and time you selected, the closest available match will be displayed instead.<br />
">
</div>
</div>
<div class="content">
<div class="section">
<div id="observation-controls" class="row">
<div class="label">Date:</div>
<div class="field">
<input aria-label="Observation date" type="text" id="date" name="date" value="" pattern="[\d]{4}/[\d]{2}/[\d]{2}" maxlength="10" class="datepicker hasDatepicker"/>
<input aria-label="Observation time" id="time" name="time" value="" type="text" maxlength="8" pattern="[\d]{2}:[\d]{2}:[\d]{2}" class="timepicker"/>
<div class="suffix dateSelector" data-tip-pisition="right" data-date-field="date" data-time-field="time">UTC</div>
<div id="timeNowBtn" class="fa fa-clock-o right" style="padding-top: 0.4em; font-size: 1em;" title="Jump to the most recent available image's for the currently loaded layer(s).">
<span class="ui-icon-label">NEWEST</span>
</div>
</div>
</div>
<div class="row">
<div id="time-step-jump" class="label">Jump:</div>
<div class="field">
<select aria-labelledby="time-step-jump" id="timestep-select" name="time-step"></select>
<div id="timeBackBtn" class="inline fa fa-arrow-circle-left" style="font-size: 1.5em;" title="Jump Backward in Time."></div>
<div id="timeForwardBtn" class="inline fa fa-arrow-circle-right" style="font-size: 1.5em;" title="Jump Forward in Time."></div>
</div>
</div>
</div>
</div>
</div>
<div id="accordion-images" class="accordion">
<div class="header">
<div class="disclosure-triangle closed">►</div>
<h1>Images
<div class="dropdown-holder layersPresetsList" style="display:inline-block;">
<ul class="clearfix">
<li class="dropdown-main" style="width:30px">
<a href="#" id="images-presets-dropdown" class="text-button" title="Images presets" style="font-size:0.75em;width:15px"><span class="fa fa-th"></span> <!--fa-server fa-bars--><span class="sr-only">Layer presets</span></a>
<ul class="sub-menu">
</ul>
</li>
</ul>
</div>
</h1>
<div class="right fa fa-question-circle contextual-help" style="margin-right: 15px;" title="Up to five (5) independent image layers may be viewed simultaneously."></div>
<div class="accordion-header">
<a href="#" id="add-new-tile-layer-btn" class="text-button" title="Click to add an image data layer to the Viewport."><span class="fa fa-plus-circle"></span> Add Layer</a>
</div>
</div>
<div class="content">
<div id="tileLayerAccordion">
<div id="TileLayerAccordion-Container"></div>
</div>
</div>
</div>
<div id="accordion-events" class="accordion">
<div class="header">
<div class="disclosure-triangle closed">►</div>
<h1>Features and Events</h1>
<div class="right fa fa-question-circle contextual-help" style="margin-right: 15px;" title="Solar feature and event annotations such as marker pins, extended region polygons, and metadata."></div>
</div>
<div class="content">
<div id="eventLayerAccordion">
<div id="EventLayerAccordion-Container"></div>
</div>
</div>
</div>
<div id="accordion-bodies" class="accordion">
<div class="header">
<div class="disclosure-triangle closed">►</div>
<h1>Celestial Bodies</h1>
<div class="right fa fa-question-circle contextual-help" style="margin-right: 15px;" title="Celestial Bodies - Satellites orbiting in the solar system."></div>
</div>
<div class="content">
<div id="solarBodiesAccordion">
<div id="SolarBodiesAccordion-Container"></div>
</div>
</div>
</div>
</div>
</div>
<div id="hv-drawer-tab-left" class="drawer-tab drawer-tab-left user-select-none">Data Sources</div>
<div id="hv-drawer-news" class="hv-drawer-right user-select-none">
<div class="drawer-contents">
<div id="accordion-news" class="accordion">
<div class="header">
<div class="disclosure-triangle-alway-open opened">►</div>
<h1>Helioviewer Project News</h1>
<div class="right fa fa-question-circle contextual-help qtip-left" title="Helioviewer Project news and tweets."></div>
</div>
<div class="content" style="display:block;">
<div class="section">
<div id="social-panel" class="ui-widget ui-widget-content ui-corner-all"></div>
</div>
</div>
</div>
</div>
</div>
<div id="hv-drawer-youtube" class="hv-drawer-right user-select-none">
<div class="drawer-contents">
<div id="accordion-youtube-current" class="accordion">
<div class="header">
<div class="disclosure-triangle closed">►</div>
<h1>Movies Spanning Observation Date</h1>
<div class="right fa fa-question-circle contextual-help qtip-left" title="View YouTube movies generated by users of Helioviewer for current observation date."></div>
</div>
<div class="content">
<div class="section">
<!-- User-Submitted Videos -->
<div id="user-video-gallery-current" class="ui-widget ui-widget-content ui-corner-all">
<label for="movies-show-in-viewport"><input type="checkbox" id="movies-show-in-viewport"/> Show in Viewport</label>
<div id="user-video-gallery-main-current">
<span id="user-video-gallery-spinner-current"></span>
</div>
<p class="js-no-movies" style="display: none;">No movies found around the observation date.</p>
</div>
</div>
</div>
</div>
<div id="accordion-youtube" class="accordion">
<div class="header">
<div class="disclosure-triangle closed">►</div>
<h1>Recently Shared to YouTube</h1>
<div class="right fa fa-question-circle contextual-help qtip-left" title="View YouTube movies generated by users of Helioviewer."></div>
</div>
<div class="content">
<div class="section">
<!-- User-Submitted Videos -->
<div id="user-video-gallery" class="ui-widget ui-widget-content ui-corner-all">
<div id="user-video-gallery-main">
<span id="user-video-gallery-spinner"></span>
</div>
<p class="js-no-movies" style="display: none;">No shared movies found.</p>
</div>
</div>
</div>
</div>
<div class="clear clearfix" style="display:block;clear:both;"></div>
</div>
</div>
<div id="hv-drawer-movies" class="hv-drawer-right user-select-none">
<div class="drawer-contents">
<div id="accordion-movies" class="accordion">
<div class="header">
<div class="disclosure-triangle-alway-open opened">►</div>
<h1>Generate a Movie</h1>
<div class="right fa fa-question-circle contextual-help qtip-left" title="Generate a custom move from up to three (3) image layers plus solar feature and event marker pins, labels, and extended region polygons."></div>
</div>
<div class="content" style="display:block;">
<div class="section">
<!-- Movie Manager -->
<div id='movie-manager-container' class='media-manager-container'>
<div id='movie-manager-build-btns' class='media-manager-build-btns'>
<div style="width: 70%; margin: 0 auto;">
<div id='movie-manager-full-viewport' class='text-btn qtip-left' title='Create a movie using the entire viewport.'>
<span class='fa fa-arrows-alt fa-fw'></span>
<span style='line-height: 1.6em'>Full Viewport</span>
</div>
<div id='movie-manager-select-area' class='text-btn qtip-left' style='float:right;' title='Create a movie of a sub-region of the viewport.'>
<span class='fa fa-crop fa-fw'></span>
<span style='line-height: 1.6em'>Select Area</span>
</div>
</div>
</div>
<div id='movie-history-title'>
Movie History:
<div id='movie-clear-history-button' class='text-btn qtip-left' style='float:right;' title='Remove all movies from the history.'>
<span style='font-weight: 200;'>clear history</span>
<span class='fa fa-trash-o'></span>
</div>
</div>
<div id='movie-history'></div>
</div>
<!-- Movie Settings -->
<div id='movie-settings-container' class='media-manager-container'>
<b>Movie Settings:</b>
<div id='movie-settings-btns' style='float:right;'>
<span id='movie-settings-toggle-help' style='display:inline-block;' class='fa fa-help qtip-left' title='Movie settings help'></span>
</div>
<!-- Begin movie settings -->
<div id='movie-settings-form-container'>
<form id='movie-settings-form'>
<!-- Advanced movie settings -->
<div id='movie-settings-advanced'>
<!-- Movie duration -->
<fieldset style='padding: 0px; margin: 5px 0px 8px' class="movie-duration-box">
<label for='movie-duration' style='margin-right: 5px; font-style: italic;'>Duration</label>
<select id='movie-duration' name='movie-duration'>
<option value='3600'>1 hour</option>
<option value='10800'>3 hours</option>
<option value='21600'>6 hours</option>
<option value='43200'>12 hours</option>
<option value='86400'>1 day</option>
<option value='172800'>2 days</option>
<option value='604800'>1 week</option>
<option value='2419200'>28 days</option>
</select>
</fieldset>
<!-- Movie Start/End Time -->
<fieldset style='padding: 0px; margin: 5px 0px 8px' class="movie-time-box">
<label for='movie-start-date' style='width: 40px; font-style: italic;'>Start </label>
<input aria-label="Start date" type="text" id="movie-start-date" name="movie-start-date" value="" pattern="[\d]{4}/[\d]{2}/[\d]{2}" maxlength="10" class="hasDatepicker"/>
<input aria-label="Start time" id="movie-start-time" name="movie-start-time" value="" type="text" maxlength="8" pattern="[\d]{2}:[\d]{2}:[\d]{2}"/> UTC<br/>
<label for='movie-end-date' style='width: 40px; font-style: italic;'>End </label>
<input aria-label="End date" type="text" id="movie-end-date" name="movie-end-date" value="" pattern="[\d]{4}/[\d]{2}/[\d]{2}" maxlength="10" class="hasDatepicker"/>
<input aria-label="End time" id="movie-end-time" name="movie-end-time" value="" type="text" maxlength="8" pattern="[\d]{2}:[\d]{2}:[\d]{2}"/> UTC<br/>
</fieldset>
<!-- Movie Speed -->
<fieldset id='movie-settings-speed'>
<legend>Speed</legend>
<div style='padding:10px;'>
<input aria-labelledby="speed-method-fps" type="radio" name="speed-method" id="speed-method-f" value="framerate" checked="checked" />
<label id="speed-method-fps" for="speed-method-f" style='width: 62px;'>Frames/Sec</label>
<input aria-labelledby="speed-method-fps" id='frame-rate' min="1" max="30" step="1" type="number" name="framerate"/>(1-30)<br />
<input aria-labelledby="speed-method-length" type="radio" name="speed-method" id="speed-method-l" value="length" />
<label id="speed-method-length" for="speed-method-l" style='width: 62px;'>Length (s)</label>
<input aria-labelledby="speed-method-length" id='movie-length' min="5" max="100" value="20" step="1" type="number" name="movie-length" disabled="disabled"/>(5-100)<br />
</div>
</fieldset>
<!-- Movie Start/End Time -->
<fieldset style='padding: 0px; margin: 5px 0px 8px;' class="movie-format-box">
<label for='movie-size' style='width: 40px; font-style: italic;'>Size</label>
<select id='movie-size' name='movie-size' style="width:190px;">
<option value='0' selected="selected">Original</option>
<option value='1'>720p (1280 x 720, HD Ready)</option>
<option value='2'>1080p (1920 x 1080, Full HD)</option>
<option value='3'>1440p (2560 x 1440, Quad HD)</option>
<option value='4'>2160p (3840 x 2160, 4K or Ultra HD)</option>
</select>
</fieldset>
<!-- Display Shared YouTube movies -->
<fieldset style='padding: 0px; margin: 5px 0px 8px;' class="movie-icon-box">
<input type="checkbox" name="movie-icons" id="movie-icons" value="1" />
<label for='movie-icons' style='width: 200px; font-style: italic;'>Display YouTube movies icons</label>
</fieldset>
<!-- Rotate field of view of movie with Sun -->
<fieldset style='padding: 0px; margin: 5px 0px 8px;' class="movie-follow-viewport-box">
<input type="checkbox" name="follow-viewport" id="follow-viewport" value="1"/>
<label for='follow-viewport' style='width: 200px; font-style: italic;'>Rotate field of view of movie with Sun</label>
</fieldset>
</div>
<!-- Movie request submit button -->
<div id='movie-settings-submit'>
<a href="#" class="movie-settings-more-btn" style="float:left;margin-top:17px;text-decoration: underline;">Advanced Settings</a>
<a href="#" class="movie-settings-less-btn" style="float:left;margin-top:17px;text-decoration: underline;">Less Settings</a>
<input aria-label="Cancel" type="button" id='movie-settings-cancel-btn' value="Cancel" />
<input aria-label="Submit" type="submit" id='movie-settings-submit-btn' value="Ok" />
</div>
</form>
</div>
<!-- Movie settings help -->
<div id='movie-settings-help' style='display:none'>
<b>Duration</b><br /><br />
<p>The duration of time that the movie should span, centered about your current observation time.</p><br />
<b>Speed</b><br /><br />
<p>Movie speed can be controlled either by specifying a desired frame-rate (the number of frames displayed each second) or a length in seconds.</p><br />
</div>
<!-- Movie settings validation console -->
<div id='movie-settings-validation-console' style='display:none; text-align: center; margin: 7px 1px 0px; padding: 0.5em; border: 1px solid #fa5f4d; color: #333; background: #fa8072;' class='ui-corner-all'>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="hv-drawer-screenshots" class="hv-drawer-right user-select-none">
<div class="drawer-contents">
<div id="accordion-screenshots" class="accordion">
<div class="header">
<div class="disclosure-triangle-alway-open opened">►</div>
<h1>Generate a Screenshot</h1>
<div class="right fa fa-question-circle contextual-help qtip-left" title="Download a custom screenshot matching the state of your Helioviewer session, minus the user-interface."></div>
</div>
<div class="content" style="display:block;">
<!-- Screenshot Manager -->
<div id='screenshot-manager-container' class='media-manager-container'>
<div class="section">
<div id='screenshot-manager-build-btns' class='media-manager-build-btns'>
<div style="width: 70%; margin: 0 auto;">
<div id='screenshot-manager-full-viewport' class='text-btn qtip-left' title='Create a screenshot using the entire viewport.'>
<span class='fa fa-arrows-alt fa-fw'></span>
<span style='line-height: 1.6em'>Full Viewport</span>
</div>
<div id='screenshot-manager-select-area' class='text-btn qtip-left' style='float:right;' title='Create a screenshot of a sub-region of the viewport.'>
<span class='fa fa-crop fa-fw'></span>
<span style='line-height: 1.6em'>Select Area</span>
</div>
</div>
</div>
<div id='screenshot-history-title'>
Screenshot History:
<div id='screenshot-clear-history-button' class='text-btn qtip-left' style='float:right;' title='Remove all screenshots from the history.'>
<span style='font-weight: 200;'>clear history</span>
<span class='fa fa-trash-o'></span>
</div>
</div>
<div id='screenshot-history'></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="hv-drawer-data" class="hv-drawer-right user-select-none">
<div class="drawer-contents">
<div id="accordion-vso" class="accordion">
<div class="header">
<div class="disclosure-triangle closed">►</div>
<h1>Virtual Solar Observatory</h1>
<div class="right fa fa-question-circle contextual-help qtip-left" title="Request science data downloads via the Virtual Solar Observatory (VSO)."></div>
</div>
<div class="content">
<div class="section">
<h1>Request Viewport Images from VSO</h1>
<div id="vso-links"></div>
</div>
<div class="section">
<h1>Request Image Sequence from VSO</h1>
<div>
<div class="row">
<div id="vso-start-date-label" class="label inactive">Start Date:</div>
<div class="field">
<input aria-labelledby="vso-start-date-label" type="text" id="vso-start-date" name="vso-start-date" value="" pattern="[\d]{4}/[\d]{2}/[\d]{2}" maxlength="10" class="hasDatepicker" disabled />
<input aria-label="Start time" id="vso-start-time" name="vso-start-time" value="" type="text" maxlength="8" pattern="[\d]{2}:[\d]{2}:[\d]{2}" disabled />
<div class="suffix dateSelector" data-tip-pisition="left" data-date-field="vso-start-date" data-time-field="vso-start-time">UTC</div>
</div>
</div>
<div class="row">
<div id="vso-end-date-label" class="label inactive">End Date:</div>
<div class="field">
<input aria-labelledby="vso-end-date-label" type="text" id="vso-end-date" name="vso-end-date" value="" pattern="[\d]{4}/[\d]{2}/[\d]{2}" maxlength="10" class="hasDatepicker" disabled />
<input aria-label="End time" id="vso-end-time" name="vso-end-time" value="" type="text" maxlength="8" pattern="[\d]{2}:[\d]{2}:[\d]{2}" disabled />
<div class="suffix inactive dateSelector" data-tip-pisition="left" data-date-field="vso-end-date" data-time-field="vso-end-time">UTC</div>
</div>
</div>
<div class="row">
<div id="vso-previews"></div>
</div>
<div class="row">
<div id="vso-buttons" class="buttons">
<div id="vso-sunpy" style="display: none;" class="text-button fa fa-download inactive qtip-left" title="Download a Python SunPy script that will request from the Virtual Solar Observatory the data set specified above."> SunPy Script</div>
<div id="vso-ssw" class="text-button fa fa-download inactive qtip-left" title="Download an IDL SolarSoft script that will request from the Virtual Solar Observatory the data set specified above."> SSW Script</div>
<a id="vso-www" class="text-button fa fa-external-link-square inactive qtip-left" title="Launch a Virtual Solar Observatory web page that will request the data set specified above." target="_blank"> VSO Website</a>