Setup structure, dynamic routing from config.json

This commit is contained in:
Cryptkeeper
2015-11-01 23:19:27 -06:00
parent 86853613cc
commit 89bd722fa1
6 changed files with 40 additions and 30 deletions

View File

@ -4,32 +4,18 @@
<head>
<link rel="stylesheet" type="text/css" href="css/main.css">
<title>Minetrack</title>
</head>
<body>
<img src="/compass-icon">
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.7/socket.io.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var socket = io.connect();
socket.on('update', function(network) {
console.log(network);
});
socket.on('add', function(networks) {
console.log(networks);
});
});
</script>
<script src="js/site.js"></script>
</body>