Setup structure, dynamic routing from config.json
This commit is contained in:
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user