-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhail-storm.html
55 lines (34 loc) · 1.51 KB
/
hail-storm.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
<!DOCTYPE html>
<html>
<head>
<title>Hailstorm animation</title>
<meta charset="utf-8">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Hailstorm animation">
<meta property="og:description" content="Hailstorm animation">
<meta name="author" content="Benoit">
<meta property="og:title" content="Hailstorm animation">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="main" role="main" class="container">
<h1>Hailstorm animation</h1>
<div class="entry">
<canvas width="960" height="665"></canvas>
<script type="text/javascript" src="hail-storm.js">
</script>
<button type="button" onclick="reset()">Reset</button>
<button type="button" onclick="newHailstone()">New Hailstone</button>
<label for="gravity">Gravity</label>
<input type="range" min="0" max="20" value="1" class="slider" id="gravity" name="gravity">
<label for="groundBounce">Ground Bounce</label>
<input type="range" min="0" max="1" value="0.3" step="0.1" class="slider" id="groundBounce" name="groundBounce">
</div>
</div>
</body>
</html>