2015-04-24 16:12:48 +02:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Doedel Drie Dee</title>
|
2015-05-08 10:07:26 +02:00
|
|
|
<script src="library/jquery.js"></script>
|
|
|
|
<script src="library/three.js"></script>
|
2015-04-24 21:32:39 +02:00
|
|
|
<script src="src/utils.js"></script>
|
|
|
|
<script src="src/box.js"></script>
|
|
|
|
<script src="src/printer.js"></script>
|
2015-04-24 16:12:48 +02:00
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var api = "http://connect.doodle3d.com/api/";
|
|
|
|
var printers = [];
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var listDoodle = $("#printers-doodle");
|
|
|
|
var listSliceTest = $("#printers-slicetest");
|
2015-05-27 12:25:51 +02:00
|
|
|
var listSliceWebworker = $("#printers-webworker");
|
2015-04-24 16:12:48 +02:00
|
|
|
|
|
|
|
listDoodle.append("<li><a href='doodle.html#192.168.5.1'>Wired Printer</a></li>");
|
2015-04-24 21:48:57 +02:00
|
|
|
listSliceTest.append("<li><a href='slice_test.html#192.168.5.1'>Wired Printer</a></li>");
|
2015-05-27 12:25:51 +02:00
|
|
|
listSliceWebworker.append("<li><a href='webworker_test.html#192.168.5.1'>Wired Printer</a></li>");
|
2015-04-24 16:12:48 +02:00
|
|
|
|
2015-05-07 10:48:24 +02:00
|
|
|
/*
|
|
|
|
printers.push({
|
2015-04-24 16:12:48 +02:00
|
|
|
name: "wired box",
|
|
|
|
d3dbox: new D3D.Box("192.168.5.1")
|
2015-05-07 10:48:24 +02:00
|
|
|
});
|
|
|
|
*/
|
2015-04-24 16:12:48 +02:00
|
|
|
|
|
|
|
getAPI(api + "list.php", function (boxes) {
|
|
|
|
for (var i = 0; i < boxes.length; i ++) {
|
|
|
|
var box = boxes[i];
|
|
|
|
|
2015-05-07 10:48:24 +02:00
|
|
|
/*
|
|
|
|
printers.push({
|
2015-04-24 16:12:48 +02:00
|
|
|
name: box.wifiboxid,
|
|
|
|
d3dbox: new D3D.Box(box.localip)
|
2015-05-07 10:48:24 +02:00
|
|
|
});
|
|
|
|
*/
|
2015-04-24 16:12:48 +02:00
|
|
|
|
|
|
|
listDoodle.append("<li><a href='doodle.html#" + box.localip + "'>" + box.wifiboxid + "</a></li>");
|
|
|
|
listSliceTest.append("<li><a href='slice_test.html#" + box.localip + "'>" + box.wifiboxid + "</a></li>");
|
2015-05-27 12:25:51 +02:00
|
|
|
listSliceWebworker.append("<li><a href='webworker_test.html#" + box.localip + "'>" + box.wifiboxid + "</a></li>");
|
2015-04-24 16:12:48 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<p>Doodle</p>
|
|
|
|
<ul id="printers-doodle"></ul>
|
|
|
|
|
|
|
|
<p>Slice Test</p>
|
|
|
|
<ul id="printers-slicetest"></ul>
|
2015-05-27 12:25:51 +02:00
|
|
|
|
|
|
|
<p>Webworkers</p>
|
|
|
|
<ul id="printers-webworker"></ul>
|
|
|
|
|
2015-05-07 10:48:24 +02:00
|
|
|
<!--
|
|
|
|
<table>
|
2015-04-24 16:12:48 +02:00
|
|
|
<tr>
|
|
|
|
<th>localip</th>
|
|
|
|
<th>wifiboxid</th>
|
|
|
|
<th>date</th>
|
|
|
|
</tr>
|
|
|
|
<tr style="display: none">
|
|
|
|
<td>localip</td>
|
|
|
|
<td>wifiboxid</td>
|
|
|
|
<td>date</td>
|
|
|
|
</tr>
|
2015-05-07 10:48:24 +02:00
|
|
|
</table>
|
|
|
|
-->
|
2015-04-24 16:12:48 +02:00
|
|
|
</body>
|
|
|
|
</html>
|