forked from ShopBotTools/Handibot-Monochrome-Carving
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (48 loc) · 1.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MonoCarv</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<fieldset>
<legend>Image</legend>
<input id="image-file" type="file" >
<button id="image-upload">Upload image</button>
<br />
Your image:
<br />
<img id="image" src="" alt="image" />
<br />
Considered as:
<br />
<canvas id="grayscale-image" width=0 height=0 ></canvas>
</fieldset>
<br />
<fieldset id="configuration-fieldset">
<legend>Configuration</legend>
<br />
<label><input id="pixelToInch" type="text" /> Pixel to inch</label>
<br />
<label><input id="maxCarvingDepth" type="text" /> Max carving depth</label>
<br />
<label><input id="marginEdge" type="text" /> Margin edge</label>
<br />
<label><input id="safeZ" type="text" /> Safe Z</label>
<br />
<label><input id="bitDiameter" type="text" /> Bit diameter</label>
<br />
<label><input id="bitLength" type="text" /> Bit length</label>
<br />
<label><input id="feedrate" type="text" /> Feed rate</label>
<br />
<button id="generate">Generate</button>
</fieldset>
<fieldset>
<legend>Result</legend>
<textarea id="result" name="" cols="30" rows="10"></textarea>
</fieldset>
<script type="text/javascript" src="js/imgtocarv.js"></script>
</body>
</html>