-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
36 lines (31 loc) · 1.13 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
<!DOCTYPE html>
<html>
<head>
<title>Polygonize</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<header id="header">
<div class="cell-size-value-wrapper">
<span>Cell size:</span>
<span id="cell-size-value">30</span>
</div>
<input type="range" id="cell-size" min="10" max="100" value="30" onchange="updateVisibleValue()">
<label for="image-file" class="button">
<i class="fa fa-upload"></i>
Upload an image
</label>
<input type="file" id="image-file" onchange="readURL(this)">
</header>
<div id="canvas">
Just add an image and see the magic
</div>
</div>
<div id="loading" class="loading">Processing...</div>
<script type="text/javascript" src="./bower_components/delaunay-fast/delaunay.js"></script>
<script type="text/javascript" src="./dist/polygonize.js"></script>
<script type="text/javascript" src="demo.js"></script>
</body>
</html>