A PHP Remake of the Rocknarok Multiverse Time clock https://rmt.yandols.xyz
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RMT-Clock-PHP/index.php

76 lines
1.7 KiB

<html>
<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) {
3 years ago
$("#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>