-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
69 lines (66 loc) · 3.34 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
<!doctype html>
<html>
<head>
<title>Vis/Printer</title>
<meta http-equiv="content-type" content="text/html; charset=utf8">
<script src="Viewer.js"></script>
<script src="lightgl.js"></script>
<script src="VisPrinter.js"></script>
<link rel="stylesheet" type="text/css" href="base.css">
</head>
<body>
<style id=connectionStyle></style>
<style id=slicingStyle>.sliced{visibility: hidden;}</style>
<style id=stateStyle></style>
<div class=treePane><textarea class=console id="console"></textarea></div>
<div class=menuPane>
<form onsubmit="return false">
<h2>connect printer</h2>
<span class=not_online>not connected</span><span class=online>connected</span> <button onclick="VisPrinter.cmd('reset')" title="reset the printer">reset</button>
</form>
<form class=online onsubmit="VisPrinter.cmd(this.cmd.value); return false;" ><h2>send gcode</h2>><input name=cmd title="issue command by pressing <enter>"></form>
<form class=online onsubmit="return false;">
<h2>move and calibrate</h2>
X<input name=X size=2> Y<input name=Y size=2> Z<input name=Z size=2> E<input name=E size=2>
<button onclick="VisPrinter.goto(this.parentNode)" title="go to entered position">go</button>
<button onclick="VisPrinter.cmd('G1 X0 Y0 Z0')" title="go to X0 Y0 Z0">origin</button><button onclick="VisPrinter.cmd('G28')" title="calibrate home position">home</button>
</form>
<form class=online onsubmit="return false;">
<h2>heating</h2>
extruder<input name=t_extruder size=2> bed<input name=t_bed size=2>
<button onclick="VisPrinter.cmd('M104 S'+this.parentNode.t_extruder.value); VisPrinter.cmd('M140 S'+this.parentNode.t_bed.value)">set</button>
<button onclick="VisPrinter.cmd('M104 S0'); VisPrinter.cmd('M140 S0')" title="stop heating">off</button>
</form>
<form onsubmit="return false">
<h2>load</h2>
<input caption=Import name=stl type=file onchange="VisPrinter.load(this.files[0])">
<button onclick="VisPrinter.load(this.parentNode.stl.files[0])" title="load this file again">reload</button>
</form>
<form onsubmit="return false">
<h2>slice</h2>
<select name=config id=config></select>
<button onclick="VisPrinter.editConfig()" title="edit current settings">edit</button>
<button onclick="VisPrinter.slice()" title="slice this object according to current settings">slice</button>
</form>
<form class=online onsubmit="return false">
<h2>print</h2>
<button onclick="VisPrinter.prepare()" title="prepare printer for printing (optional)">prepare</button>
<button onclick="VisPrinter.print()" class=sliced title="print this object">print</button>
<button onclick="VisPrinter.cmd('pause')" title="pause printing">pause</button>
<button onclick="VisPrinter.cmd('resume')" title="resume a paused printing">resume</button>
<button onclick="VisPrinter.eject()" title="cancel print and eject object">eject</button>
<br>
<span id=status></span>
</form>
</div>
<div id=view class="view" ></div>
<div class=logo>
Vis/Printer - http://hirnsohle.de/VisPrinter/ - © 2012 Paul Geisler -
<a href="README.html">Manual - Credits - Examples</a>
</div>
<div id=progress><div><div id=progressBar><span id=progressName></span></div></div><a class=cancel href='javascript:VisPrinter.cancel()'>cancel</a></div>
<script>
VisPrinter.attach();
</script>
</body>
</html>