-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths.php
93 lines (61 loc) · 1.85 KB
/
s.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=yes">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="author" content="Steve Wright">
<link rel="shortcut icon" href="favicon.ico" >
<title>Toshiba AC</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://stevewright.nz/protected/remotes/Toshiba_AC/Toshiba_AC.js"></script>
<link rel="stylesheet" type="text/css" href="s.css">
</head>
<body ="startTime()">
<main>
<div class="container">
<h2 style="text-align:center;">TOSHIBA</h2>
<!-- Put a Screen in here -->
<div class="screen">
<div class="scr-top">
<br/>
</div>
<div class="scr-middle">
<div class="scr-middle-left">
<div><input type='text' name='quantity' value='20' class='tempno' maxlength='2'/></div>
</div>
<div class="scr-middle-right">
<div id="time" class="time"></div>
</div>
</div>
</div>
<!-- End of Screen -->
<div class="space-even">
<a href="http://example.com" class="buttonc">SLEEP</a>
<a href="http://example.com" class="buttonc"><div class="dn-arrow">▼</div></a>
<a href="http://example.com" class="buttonc"><div class="dn-arrow">▼</div></a>
<a href="http://example.com" class="buttonc">SET</a>
</div>
</div>
</main>
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
document.getElementById('time').innerHTML =
// h + ":" + m + ":" + s;
h + ":" + m;
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>
</body>
</html>