-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (52 loc) · 1.63 KB
/
index.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
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
<!DOCTYPE HTML>
<head>
<title>THERMOSTAT</title>
<script src="src/Thermostat.js"></script>
<link href='http://assets.makersacademy.com/images/favicons/favicon-16x16.png' rel='icon' sizes='16x16' type='image/png'>
<link rel="stylesheet" type="text/css" href="myStyles.css">
<script src="jquery-3.1.1.min.js"></script>
<script src="src/jQueryLayer.js"></script>
</head>
<body>
<script>{
document.body.style.backgroundColor = "#f3f3f3";
//document.body.style.backgroundImage = "url('https://s-media-cache-ak0.pinimg.com/originals/5f/9c/02/5f9c0220fd4a6ab8e614f0cbc69c313a.png')";
}</script>
<div id="main">
<h1>Thermostat</h1>
<table>
<tr>
<th>Current Temp</th>
<th>Power Saving Mode</th>
<th>Energy Usage</th>
</tr>
<tr>
<td id='temp'>20°C</td>
<td id='psm'>ON</td>
<td id='usage'>medium-usage</td>
</tr>
</table>
<div id="controls">
<button id='up'>UP</button>
<button id='down'>DOWN</button>
<button id='power'>POWER SAVING</button>
<button id='reset'>RESET</button>
</div>
</div>
<p>
<h2>
<span id="location-name"></span>:
<li>Current Temperature: <span id="current-temperature"></span>°C</li>
<li>Humidity: <span id="current-humidity"></span>%</li>
<li>Pressure: <span id="current-pressure"></span> hPa</li>
<li>Temperature max: <span id="current-max-temperature"></span>°C</li>
<li>Temperatiure min: <span id="current-min-temperature"></span>°C</li>
<select id="current-city">
<option value="london">London</option>
<option value="newyork">New York</option>
<option value="paris">Paris</option>
<option value="tokyo">Tokyo</option>
</select>
</h2>
</p>
</body>