forked from openSenseLab/sensillerbeck-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8669ac0
commit a630827
Showing
3 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
var clock = document.querySelector("#clock"); | ||
// var clock = document.querySelector("#clock"); | ||
|
||
// Inject the time in the UI | ||
var renderTime = function () { | ||
var time = new Date(); | ||
clock.textContent = time.toLocaleString("de-DE", { | ||
year: "numeric", | ||
month: "long", | ||
day: "numeric", | ||
hour: "numeric", | ||
minute: "numeric", | ||
second: "numeric", | ||
hour12: false, | ||
}); | ||
}; | ||
// // Inject the time in the UI | ||
// var renderTime = function () { | ||
// var time = new Date(); | ||
// clock.textContent = time.toLocaleString("de-DE", { | ||
// year: "numeric", | ||
// month: "long", | ||
// day: "numeric", | ||
// hour: "numeric", | ||
// minute: "numeric", | ||
// second: "numeric", | ||
// hour12: false, | ||
// }); | ||
// }; | ||
|
||
// Update the time every second | ||
setInterval(renderTime, 1000); | ||
// // Update the time every second | ||
// setInterval(renderTime, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters