blob: 04c1f94f72b5aaf51786512f29d79a8723e0f067 (
plain) (
blame)
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
|
<html><head><title>Door Control</title>
<meta id='viewport' name='viewport' content='width=160; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;'>
<style>
body {background-color:#bbb;font-family:'Verdana',sans-serif}
h2 {line-height:50%;}
h3 {line-height:5%;}
.page {text-align:center;}
</style>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.5.2.min.js'></script>
<script type='text/javascript'>
$(document).ready(function() { update(); });
function update() {
$.get('/config/get', function(data) {
$('#content').html(data);
});
// $.getJSON('get', function(data) {
// $.each(data, function(key, val) {
// $('#' + key).attr('value', val);
// });
// });
}
</script>
</head>
<body>
<div class=page>
<h3>Configuration</h3>
<pre id=content>
</pre>
</div>
<!--
Config Version: 7
Time Now: 22/3/2012 23:07:29
Last NTP: 22/3/2012 23:07:17
MAC Address: 00:A5:CB:28:F4:CC
Default IP Addr: 10.113.1.160
Default Netmask: 255.255.255.0
Default Gateway: 10.113.1.254
NTP Server: 10.113.1.1
UTC Offset: 1300
Status Server: 10.113.1.255
Status Port: 8888
Front Door unlock time: 10 (secs)
Garage Door grace time: 1 (minutes)
Dawn: 07:00
Dusk: 21:00
-->
</body>
</html>
|