mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Add files via upload
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
////////////////////
|
||||
// URL PARAMETERS //
|
||||
////////////////////
|
||||
|
||||
const queryString = window.location.search;
|
||||
const urlParams = new URLSearchParams(queryString);
|
||||
const dateFormat = urlParams.get("dateFormat") || 'ddd DD MMM yyyy hh:mm:ss A';
|
||||
|
||||
///////////////
|
||||
// FUNCTIONS //
|
||||
///////////////
|
||||
|
||||
function setTime()
|
||||
{
|
||||
document.getElementById("timeLabel").innerHTML = moment().format(dateFormat);
|
||||
setTimeout(setTime, 1000);
|
||||
}
|
||||
|
||||
setTime();
|
||||
Reference in New Issue
Block a user