|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Rocknarok Multiverse Time Clock</title>
|
|
|
|
<script type= "text/javascript" src="jquery-3.6.0.min.js"> </script>
|
|
|
|
|
|
|
|
<!-- Request Rocknarok Universe datetime from API -->
|
|
|
|
<script type= "text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
function update() {
|
|
|
|
$.ajax({
|
|
|
|
type: 'POST',
|
|
|
|
url: 'servertime.php',
|
|
|
|
data: { 'server': 'ru_general' },
|
|
|
|
timeout: 1000,
|
|
|
|
success: function(data) {
|
|
|
|
$("#ruclock").html(data);
|
|
|
|
window.setTimeout(update, 1000);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
update();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Request St. Sky Universe datetime from API -->
|
|
|
|
<script type= "text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
function update() {
|
|
|
|
$.ajax({
|
|
|
|
type: 'POST',
|
|
|
|
url: 'servertime.php',
|
|
|
|
data: { 'server': 'ssu_general' },
|
|
|
|
timeout: 1000,
|
|
|
|
success: function(data) {
|
|
|
|
$("#ssuclock").html(data);
|
|
|
|
window.setTimeout(update, 1000);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
update();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<!-- Request Kocharion Universe datetime from API -->
|
|
|
|
<script type= "text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
function update() {
|
|
|
|
$.ajax({
|
|
|
|
type: 'POST',
|
|
|
|
url: 'servertime.php',
|
|
|
|
data: { 'server': 'ku_general' },
|
|
|
|
timeout: 1000,
|
|
|
|
success: function(data) {
|
|
|
|
$("#kuclock").html(data);
|
|
|
|
window.setTimeout(update, 1000);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
update();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Rocknarok Multiverse Time Clock</h1>
|
|
|
|
|
|
|
|
<p>Rocknarok Universe Current time:<p>
|
|
|
|
<div id="ruclock"> </div> <br/>
|
|
|
|
|
|
|
|
<p>St. Sky Universe Current time:</p>
|
|
|
|
<div id="ssuclock"> </div> <br/>
|
|
|
|
|
|
|
|
<p>Kocharion Universe Current time:</p>
|
|
|
|
<div id="kuclock"> </div> <br/>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|