forked from chrismelba/lightclockwifiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimezonesetup.h
116 lines (110 loc) · 7.95 KB
/
timezonesetup.h
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
const char timezonesetup_html[] PROGMEM = R"=====(
<!DOCTYPE HTML>
<html>
<head><title>Time Zone</title>
<meta name=viewport content="width=device-width, initial-scale=1">
</head>
<body class="settings-page">
<div class=container>
<a href='/'>Network</a>-> <a href='/passwordinput'>Password</a> -> <strong>Timezone</strong><BR>
<h2>Set Timezone</h2>
<div id=GPS class="tab-pane fade in active">
<h3>HOME</h3>
<form action=/a method=GET>
Time Zone:<select name=timezone id=timezone>
<option value="1" $timezonevalue1 > (GMT-12:00) International Date Line West</option>
<option value="2" $timezonevalue2 > (GMT-11:00) Midway Island, Samoa</option>
<option value="3" $timezonevalue3 > (GMT-10:00) Hawaii</option>
<option value="4" $timezonevalue4 > (GMT-09:00) Alaska</option>
<option value="5" $timezonevalue5 > (GMT-08:00) Pacific Time (US & Canada)</option>
<option value="6" $timezonevalue6 > (GMT-08:00) Tijuana, Baja California</option>
<option value="7" $timezonevalue7 > (GMT-07:00) Arizona</option>
<option value="8" $timezonevalue8 > (GMT-07:00) Chihuahua, La Paz, Mazatlan</option>
<option value="9" $timezonevalue9 > (GMT-07:00) Mountain Time (US & Canada)</option>
<option value="10" $timezonevalue10 > (GMT-06:00) Central America</option>
<option value="11" $timezonevalue11 > (GMT-06:00) Central Time (US & Canada)</option>
<option value="12" $timezonevalue12 > (GMT-06:00) Guadalajara, Mexico City, Monterrey</option>
<option value="13" $timezonevalue13 > (GMT-06:00) Saskatchewan</option>
<option value="14" $timezonevalue14 > (GMT-05:00) Bogota, Lima, Quito, Rio Branco</option>
<option value="15" $timezonevalue15 > (GMT-05:00) Eastern Time (US & Canada)</option>
<option value="16" $timezonevalue16 > (GMT-05:00) Indiana (East)</option>
<option value="17" $timezonevalue17 > (GMT-04:00) Atlantic Time (Canada)</option>
<option value="18" $timezonevalue18 > (GMT-04:00) Caracas, La Paz</option>
<option value="19" $timezonevalue19 > (GMT-04:00) Manaus</option>
<option value="20" $timezonevalue20 > (GMT-04:00) Santiago</option>
<option value="21" $timezonevalue21 > (GMT-03:30) Newfoundland</option>
<option value="22" $timezonevalue22 > (GMT-03:00) Brasilia</option>
<option value="23" $timezonevalue23 > (GMT-03:00) Buenos Aires, Georgetown</option>
<option value="24" $timezonevalue24 > (GMT-03:00) Greenland</option>
<option value="25" $timezonevalue25 > (GMT-03:00) Montevideo</option>
<option value="26" $timezonevalue26 > (GMT-02:00) Mid-Atlantic</option>
<option value="27" $timezonevalue27 > (GMT-01:00) Cape Verde Is.</option>
<option value="28" $timezonevalue28 > (GMT-01:00) Azores</option>
<option value="29" $timezonevalue29 > (GMT+00:00) Casablanca, Monrovia, Reykjavik</option>
<option value="30" $timezonevalue30 > (GMT+00:00) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option>
<option value="31" $timezonevalue31 > (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>
<option value="32" $timezonevalue32 > (GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>
<option value="33" $timezonevalue33 > (GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>
<option value="34" $timezonevalue34 > (GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
<option value="35" $timezonevalue35 > (GMT+01:00) West Central Africa</option>
<option value="36" $timezonevalue36 > (GMT+02:00) Amman</option>
<option value="37" $timezonevalue37 > (GMT+02:00) Athens, Bucharest, Istanbul</option>
<option value="38" $timezonevalue38 > (GMT+02:00) Beirut</option>
<option value="39" $timezonevalue39 > (GMT+02:00) Cairo</option>
<option value="40" $timezonevalue40 > (GMT+02:00) Harare, Pretoria</option>
<option value="41" $timezonevalue41 > (GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius</option>
<option value="42" $timezonevalue42 > (GMT+02:00) Jerusalem</option>
<option value="43" $timezonevalue43 > (GMT+02:00) Minsk</option>
<option value="44" $timezonevalue44 > (GMT+02:00) Windhoek</option>
<option value="45" $timezonevalue45 > (GMT+03:00) Kuwait, Riyadh, Baghdad</option>
<option value="46" $timezonevalue46 > (GMT+03:00) Moscow, St. Petersburg, Volgograd</option>
<option value="47" $timezonevalue47 > (GMT+03:00) Nairobi</option>
<option value="48" $timezonevalue48 > (GMT+03:00) Tbilisi</option>
<option value="49" $timezonevalue49 > (GMT+03:30) Tehran</option>
<option value="50" $timezonevalue50 > (GMT+04:00) Abu Dhabi, Muscat</option>
<option value="51" $timezonevalue51 > (GMT+04:00) Baku</option>
<option value="52" $timezonevalue52 > (GMT+04:00) Yerevan</option>
<option value="53" $timezonevalue53 > (GMT+04:30) Kabul</option>
<option value="54" $timezonevalue54 > (GMT+05:00) Yekaterinburg</option>
<option value="55" $timezonevalue55 > (GMT+05:00) Islamabad, Karachi, Tashkent</option>
<option value="56" $timezonevalue56 > (GMT+05:30) Sri Jayawardenapura</option>
<option value="57" $timezonevalue57 > (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>
<option value="58" $timezonevalue58 > (GMT+05:45) Kathmandu</option>
<option value="59" $timezonevalue59 > (GMT+06:00) Almaty, Novosibirsk</option>
<option value="60" $timezonevalue60 > (GMT+06:00) Astana, Dhaka</option>
<option value="61" $timezonevalue61 > (GMT+06:30) Yangon (Rangoon)</option>
<option value="62" $timezonevalue62 > (GMT+07:00) Bangkok, Hanoi, Jakarta</option>
<option value="63" $timezonevalue63 > (GMT+07:00) Krasnoyarsk</option>
<option value="64" $timezonevalue64 > (GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
<option value="65" $timezonevalue65 > (GMT+08:00) Kuala Lumpur, Singapore</option>
<option value="66" $timezonevalue66 > (GMT+08:00) Irkutsk, Ulaan Bataar</option>
<option value="67" $timezonevalue67 > (GMT+08:00) Perth</option>
<option value="68" $timezonevalue68 > (GMT+08:00) Taipei</option>
<option value="69" $timezonevalue69 > (GMT+09:00) Osaka, Sapporo, Tokyo</option>
<option value="70" $timezonevalue70 > (GMT+09:00) Seoul</option>
<option value="71" $timezonevalue71 > (GMT+09:00) Yakutsk</option>
<option value="72" $timezonevalue72 > (GMT+09:30) Adelaide</option>
<option value="73" $timezonevalue73 > (GMT+09:30) Darwin</option>
<option value="74" $timezonevalue74 > (GMT+10:00) Brisbane</option>
<option value="75" $timezonevalue75 > (GMT+10:00) Canberra, Melbourne, Sydney</option>
<option value="76" $timezonevalue76 > (GMT+10:00) Hobart</option>
<option value="77" $timezonevalue77 > (GMT+10:00) Guam, Port Moresby</option>
<option value="78" $timezonevalue78 > (GMT+10:00) Vladivostok</option>
<option value="79" $timezonevalue79 > (GMT+11:00) Magadan, Solomon Is., New Caledonia</option>
<option value="80" $timezonevalue80 > (GMT+12:00) Auckland, Wellington</option>
<option value="81" $timezonevalue81 > (GMT+12:00) Fiji, Kamchatka, Marshall Is.</option>
<option value="82" $timezonevalue82 > (GMT+13:00) Nuku'alofa</option>
</select>
<li class=checkbox>
<input id=DSThidden type=hidden name=DSThidden value=0>
<input id=DST type=checkbox name=DST $DST>
<label for=DST>Daylight Savings Time</label>
</li>
<div class="btn-box">
<input class = "btn" type=submit name=submit value='Save and Restart'/></form>
</div>
</div>
<script>var x=document.getElementById("latitude");var y=document.getElementById("longitude");function getLocation(){if(navigator.geolocation){navigator.geolocation.getCurrentPosition(showPosition)}else{x.innerHTML="Geolocation is not supported by this browser."}}function showPosition(a){console.log("in showPosition");x.value=Math.round(a.coords.latitude*100)/100;y.value=Math.round(a.coords.longitude*100)/100};</script>
</body>
</html>
)=====";