-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.htm
31 lines (30 loc) · 1.18 KB
/
header.htm
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
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>Welcome to my test page</title>
</head>
<link rel="stylesheet" type="text/css" href="/ajaxgpio.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
$(function(){
$("#includedContent").load("/ajaxgpio.htm");
});
</script>
<script>
var AJAX_Server =""
var JSONurl = AJAX_Server + "/GetJSON";
updateIntervalsetting=10;
</script>
<script src="/ajaxgpio.js"></script>
<script src="/ajaxgpio2.js"></script>
<body>
<h1>Switch control page</h1>
<div id="includedContent"></div>
<div>
<button type="button" onclick="if(updateInterval!=null){update(); window.clearInterval(updateInterval); current_time=updateIntervalsetting; updateInterval = window.setInterval('countdown_timer()', 1000);}else{update();}">UPDATE NOW</button>
<div><input type="checkbox" id="autoupdate_checkbox" name="autoupdate_checkbox" class="switch" onclick="toggleInterval()"/>
<label for="autoupdate_checkbox" id="autoupdate_checkbox_label">Auto-Update?</label></div>
</div>
</body>
</html>