-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (32 loc) · 1.18 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
<!DOCTYPE html>
<html>
<head>
<title>Fireworks | Matt Consto</title>
<meta name="theme-color" content="#000010" />
<style>
body {margin: 0; padding: 0; overflow: hidden; background: black; color: #f0f0d0; font-family: sans-serif; font-size: 1.25em}
canvas {image-rendering: pixelated}
#toolbar {position: fixed; bottom: 1em; left: 0; right: 0; text-align: center}
a {color: #f0f0d0; text-decoration: none}
a:hover {text-decoration: underline}
select, button {background: black; color: #f0f0d0; border: 1px solid; font-size: 1em}
.active {background: #f0f0d0; color: black}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="toolbar">
By <a href="https://consto.uk">Matthew Consterdine</a> | Options
<select onchange="tool = window['create' + this.value]">
<option>Confetti</option>
<option selected="selected">Fireworks</option>
<option>Flame</option>
<option>Raindrops</option>
<option>Snowfall</option>
</select>
<button onclick="raining = !raining; this.classList.toggle('active')">Raining</button>
<button onclick="snowing = !snowing; this.classList.toggle('active')">Snowing</button>
</div>
<script src="script.js"></script>
</body>
</html>