-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
44 lines (43 loc) · 1.82 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
<html>
<head>
<script type ="text/javascript" src="index.js"></script>
<script type="text/javascript" src="worker.js"></script>
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
</head>
<body onload='onLoad()'>
<div class="heading">
<h1>SpriteToVoxel</h1>
</div>
<canvas id="canvas"></canvas><br>
<div class="view">
<div class="container">
<div class="button-wrap">
<label class ="new-button" for="upload"> Upload Sprite
<input id="upload" type='file' accept='image/*' onchange='openFile(event)'>
</div>
</div>
<img id='output'>
<canvas id='imagepreview' ></canvas><br>
<input id='settings' value='settings' type="button" onclick='toggleSettings()'>
<input disabled type='button' value='convert' id='convert' type="button" onclick='convertToObj()'>
<input disabled type='button' value='save' id='save' type="button" onclick='saveModel()'><br>
<span id="save-label">Ready to save!</span>
<div disabled id="settings-popup">
<p>Settings</p>
<span style="margin-bottom: 1rem;">background</span>
<input class='popup-item' id='backcolor-setter' type='color' value='background' oninput='updateBackground(event)' onchange='updateBackground(event)'><br>
<!--<span>x</span>
<input class='popup-item' id='x-setter' type='text' placeholder='0' onchange='updateRect()'>
<span>y</span>
<input class='popup-item' id='y-setter' type='text' placeholder='0' onchange='updateRect()'>
<span>width</span>
<input class='popup-item' id='width' type='text' placeholder='0' onchange='updateRect()'>
<span>height</span>
<input class='popup-item' id='height' type='text' placeholder='0' onchange='updateRect()'><br>-->
</div>
</div>
</body>
</html>