-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (59 loc) · 1.11 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>City Skyline Generator</title>
<style>
body {
background: #000;
font-family: 'helvetica';
}
h1 {
color: #eee;
text-align: center;
margin: 50px 0 0;
}
canvas {
display: block;
background: #000;
border: 2px solid #bbb;
margin: 150px auto 50px;
}
#regenerate {
display: block;
height: 35px;
width: 220px;
background-color: #ccc;
font-family: Helvetica;
font-size: 16px;
letter-spacing: .07em;
box-shadow: inset 0 0 15px 2px #fff;
border: 2px solid #ccc;
border-radius: 4px;
margin: 0 auto;
}
#regenerate:active {
position: relative;
top: 1px;
background-color: #aaa;
border: 1px solid #555;
}
p {
text-align: center;
margin: 40px 0;
}
a {
color: #eee;
}
</style>
</head>
<body>
<h1>Skyline canvas demo</h1>
<canvas id="city"></canvas>
<input id="regenerate" type="button" value="Regenerate the skyline">
<p>
<a href="https://github.com/JLemmetti/Skyline">Check the source on Github</a>
</p>
<script src="city.js"></script>
</body>
</html>