-
Notifications
You must be signed in to change notification settings - Fork 0
/
jscolourchange.html
68 lines (44 loc) · 2.49 KB
/
jscolourchange.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
<html>
<head>
<title>A quick little site for when i'm bored!</title>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="stylesheet" href="colourchange.css" type="text/css">
</head>
<body>
<div id="header">
<h1>javascript experiments</h1>
<p>this website is for me to showcase some small javascript things i've been trying in my spare time.</p>
</div>
<div class="topbar">
<h2>js: colour change.</h2>
<div class="navbar">
<a href="index.html">introduction</a>
<a href="about.html">about</a>
<a href="directory.html">directory</a>
</div>
</div>
<hr />
<div class = "page-content">
<div class = "lilboxes">
<div class = "boxcolour" id = "one" onclick="document.getElementById('bigbox').style.background='#740932'"></div>
<div class = "boxcolour" id = "two" onclick="document.getElementById('bigbox').style.background='#FE9D5C'"></div>
<div class = "boxcolour" id = "three" onclick="document.getElementById('bigbox').style.background='#CF5C14'"></div>
<div class = "boxcolour" id = "four" onclick="document.getElementById('bigbox').style.background='#20B89F'"></div>
</div>
<div id = "bigbox"><button type="button" onclick="document.getElementById('bigbox').style.background='white'">Reset</button></div>
<div id = "rarrow" class = "arrow"><a href="jscolourchange2.html">></a></div>
<div class = "lilboxes">
<div class = "boxcolour" id = "five" onclick="document.getElementById('bigbox').style.background='#147A60'"></div>
<div class = "boxcolour" id = "six" onclick="document.getElementById('bigbox').style.background='#334691'"></div>
<div class = "boxcolour" id = "seven" onclick="document.getElementById('bigbox').style.background='#418324'"></div>
<div class = "boxcolour" id = "eight" onclick="document.getElementById('bigbox').style.background='#d62b8c'"></div>
</div>
</div>
<hr />
<div id="footer">
<a href="about.html">summer anderson-cheung</a>
<a href="https://www.ncl.ac.uk/computing/">newcastle university</a>
</div>
</body>
</html>
<!-- Ctrl + Alt + I to Intent! -->