-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (32 loc) 路 848 Bytes
/
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
<html>
<head>
<link rel='stylesheet' type='text/css' href='machine.css'>
<link href="https://fonts.googleapis.com/css?family=Bubblegum+Sans" rel="stylesheet">
</head>
<body>
<h1 id='title'><h1>
<div id='machine'>
<div id='control-panel'>
<div id='knob'></div>
</div>
<div id='door'>
<div id='handle'>
</div>
<div id='glass'>
</div>
</div>
</div>
<div id='basket'>
<div id='rim'></div>
<div id='logo'></div>
<div id='clothes'></div>
</div>
<script>
document.getElementById("knob").addEventListener("click", onKnobClick);
function onKnobClick() {
var title = document.getElementById("title");
title.innerHTML = (title.innerHTML === "" ? "Whirrrrr" : "");
}
</script>
</body>
</html>