Minetrack/assets/html/index.html
2015-11-01 22:56:08 -06:00

36 lines
598 B
HTML

<!DOCTYPE html>
<html>
<head>
<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>
</body>
</html>