New index.php that calls for the time from servertime.php

master
YandolsZX 3 years ago
parent 7a20df0a03
commit a3ab8dde34
  1. 30
      index.php
  2. 6078
      jquery-1.4.1.min.js

@ -0,0 +1,30 @@
<html>
<title>Rocknarok Multiverse Time Clock</title>
<h1>Rocknarok Multiverse Time Clock</h1>
<br/><br/>
<script type= "text/javascript" src="jquery-1.4.1.min.js"> </script>
<script type= "text/javascript">
$(document).ready(function() {
function update() {
$.ajax({
type: 'POST',
url: 'servertime.php',
timeout: 1000,
success: function(data) {
$("#timer").html(data);
window.setTimeout(update, 1000);
}
});
}
update();
});
</script>
<div id="timer"> </div>
</html>

6078
jquery-1.4.1.min.js vendored

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save