Add routing-table widget to chat example.

This commit is contained in:
Tony Garnock-Jones 2014-03-10 15:18:20 -04:00
parent 8b158fd4eb
commit 946e07fb5c
2 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,11 @@
<script src="../../marketplace.js"></script>
<script src="../../spy.js"></script>
<script src="../../dom-driver.js"></script>
<script src="../../routing-table-widget.js"></script>
<link href="../../routing-table-widget.css" rel="stylesheet">
<script src="../../jquery-driver.js"></script>
<script src="../../wake-detector.js"></script>
<script src="../../websocket-driver.js"></script>
@ -70,6 +75,10 @@
</form>
</div>
</div>
<div class="row-fluid">
<div class="span12" id="spy-holder">
</div>
</div>
</div>
</body>
</html>

View File

@ -94,6 +94,9 @@ $(document).ready(function () {
console.log('starting ground boot');
// World.spawn(new Spy());
spawnJQueryDriver();
spawnDOMDriver();
spawnRoutingTableWidget("#spy-holder", "spy", 1000);
World.spawn(new WakeDetector());
var wsconn = new WebSocketConnection("broker", $("#wsurl").val(), true);
World.spawn(wsconn);