forked from chrismelba/lightclockwifiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timezonesetup.html
25 lines (20 loc) · 1.04 KB
/
timezonesetup.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
<!DOCTYPE HTML>
<html>
<head><title>Time Zone</title>
<link rel=stylesheet href=clockmenustyle.css>
<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>
UTC Offset:<input type=text name=timezone id=timezone value=$timezone><br>
<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>