36 lines
598 B
HTML
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> |