-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (81 loc) · 2.62 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
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
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<link href="styles/style.css" rel="stylesheet">
<!-- <link href="styles/energyUsage.css" rel="stylesheet"> -->
<!-- <script src="js/jquery.min.js"></script> -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<!-- <meta charset="utf-8"> -->
<script src="src/thermostat.js"></script>
<script src="src/interface.js"></script>
<title> WELCOME TO THE !NEST THERMOSTAT </title>
<script type="text/javascript">
function picture(){
var pic = "https://media3.giphy.com/media/rQ9ep0stA0oRG/giphy.gif?cid=ecf05e4702effe41b5bc778da8ae819d1bf820a6e408e90c&rid=giphy.gif"
document.getElementById('chicken').style.display='block';
}
</script>
<!-- <style>
a.test {
font-weight: bold;
}
</style> -->
</head>
<section>
<header>
<h1 class="rainbow-text">WELCOME TO THE !NEST THERMOSTAT</h1>
</header>
<nav>
<p>
<button id="temp_up">+</button>
<button id="temp_down">-</button>
<button id="reset">reset</button>
<!-- <br><button name="pwr_saving" onclick="picture()">Save the planet</button> -->
Power Saving Mode <label class="switch">
<input type="checkbox" id="pwr_saving" onclick="picture()">
<span class="slider round"></span>
</label>
</p>
</nav>
<body>
<!-- <a href="http://jquery.com/">jQuery</a>
<script src="jquery.js"></script>
<script>
$( "a" ).addClass( "test" );
window.onload = function() {
alert( "welcome" );
};
$( document ).ready(function() {
$( "a" ).click(function( event ) {
alert( "As you can see, the link no longer took you to jquery.com" );
event.preventDefault();
});
});
$( "a" ).click(function( event ) {
event.preventDefault();
$( this ).hide( "slow" );
});
</script> -->
<section>
<h1>Current temperature: <span id="current-temperature">20</span></h1>
<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>
</section>
<!-- <br>temperature display (ideas: FLASHING EVERYWHERE, change the colour of the page based on the temp, CRAZY GIFS)
usage indicator
up button
down button
reset
power saving on/off -->
<img id="chicken" src="https://media3.giphy.com/media/rQ9ep0stA0oRG/giphy.gif?cid=ecf05e4702effe41b5bc778da8ae819d1bf820a6e408e90c&rid=giphy.gif" style="display:none;"/>
</body>
</section>
<footer>
<h1 id="temperature"></h1>
</footer>
</html>