-
Notifications
You must be signed in to change notification settings - Fork 0
/
bare-index.html
51 lines (47 loc) · 1.78 KB
/
bare-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
<html>
<head>
<title>WebGL Gcode simulator</title>
<link rel="shortcut icon" href="http://tmpvar.com/project/gcode-simulator/img/favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/three.js"></script>
<script type="text/javascript" src="js/threex.windowresize.js"></script>
<script type="text/javascript" src="js/gcode-simulator.js"></script>
<script type="text/javascript" src="js/machine.js"></script>
<script type="text/javascript" src="js/stats.js"></script>
<script type="text/javascript" src="js/vec2.js"></script>
<script type="text/javascript" src="js/SVGReader.js"></script>
<script type="text/javascript" src="js/svg2gcode.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<style>
body {
overflow:hidden;
}
</style>
</head>
<body>
<section class=" pane" id="3d" ></section>
<script>
$(function() {
var ws = new WebSocket('ws://localhost:' + window.location.port || 80);
machine.cancel();
ws.addEventListener('message', function(e) {
machine.fromString(e.data);
machine.begin(function() {
ws.send('done');
});
});
});
</script>
<script type="text/javascript" src="js/renderer.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-633948-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>