-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
127 lines (120 loc) · 2.53 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1' />
<link href='http://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100' rel='stylesheet' type='text/css' />
<title>Delaunay Triangulation</title>
<script src="assets/vendor/jquery-2.1.1.min.js"></script>
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #222;
margin: 0px;
overflow: hidden;
}
*, *:before, *:after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}
canvas {
width:100%;
height:100%;
transition: opacity 1000ms;
position: absolute;
z-index: -1;
cursor: pointer;
}
h1 {
font-weight: 800;
font-size: 2.05em;
color: #4A9DE7;
text-transform:uppercase;
margin:0;
line-height: 1;
font-weight: 100;
}
.info {
position: absolute;
bottom: 1em;
right: 1em;
}
p {
margin: 0;
font-weight: 400;
text-transform: uppercase;
color: #999;
letter-spacing: 0.25em;
}
.credits {
position: absolute;
top: 0.5em;
right: 0.5em;
font-size: 1em;
color: #777;
font-weight:100;
}
a {
color: #4A9DE7;
}
a:hover {
color: #007BE9;
text-decoration: none;
}
@media screen and (min-width:1200px) {
.info {
font-size:1.2em;
}
}
@media screen and (max-width: 600px) {
.info {
font-size:0.6em;
width:100%;
text-align:center;
right:0;
}
.credits {
right:0;
text-align:center;
font-size:0.7em;
width:100%;
}
.dg {
display:none;
}
}
.info {
padding: 0 2em;
text-align:center;
}
.message {
position: absolute;
top: 50%;
left: 0;
width: 100%;
margin-top: -0.5em;
font-size: 1.7em;
text-align: center;
text-transform: uppercase;
color: rgba(74, 157, 231, 0.65);
padding: 0 6%;
pointer-events:none;
}
</style>
</head>
<body>
<div id='container'>
<canvas></canvas>
<div class='info'>
<h1>Delaunay Triangulation</h1>
<p>The circles only contain 3 points</p>
</div>
<footer class='credits'>
<a href='http://gregtatum.com/'>Greg Tatum</a> |
<a href='https://twitter.com/TatumCreative'>@TatumCreative</a> |
<a href='http://github.com/TatumCreative/sketch-delaunay'>Source</a>
</footer>
</div>
<!-- Source code available here: http://github.com/TatumCreative/sketch-delaunay -->
<script src="assets/build/bundle.js"></script>
</body>
</html>