Skip to content

Commit

Permalink
added date
Browse files Browse the repository at this point in the history
  • Loading branch information
mariospeed committed Sep 23, 2019
1 parent d629a16 commit 98158a0
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions sm64.html
Expand Up @@ -29,7 +29,7 @@
}
</style>
</head>
<body onload="SM6470StarFunction(); SM64120StarFunction(); SM6416StarFunction(); SM641StarFunction(); SM640StarFunction()">
<body onload="startInterval(); dateInfo(); SM6470StarFunction(); SM64120StarFunction(); SM6416StarFunction(); SM641StarFunction(); SM640StarFunction()">

<script>

Expand Down Expand Up @@ -251,6 +251,18 @@
}); // Just an example
}
</script>

<script>
function dateInfo() {
var d = new Date();
var n = d.toUTCString();
document.getElementById("UTCdate").innerHTML = n;
}

function startInterval(){
setInterval("dateInfo();",1000);
}
</script>
<div class="container">
<h2>Super Mario 64</h2>

Expand Down Expand Up @@ -283,7 +295,7 @@ <h5 class="dropdown-header">Practice</h5>

</div>
</ul><br>
<p>World Records via Speedrun.com API</p>
<p>World Records via Speedrun.com API <span style="float:right;" id="UTCdate"></span></p>
<table class="table table-hover table-condensed">
<thead>
<tr>
Expand Down

0 comments on commit 98158a0

Please sign in to comment.