mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00

make relative links (T-Pot home) dynamic to display them only if services are available adjust dimensions for link container correct github link place attack-map link in the home container
28 lines
No EOL
760 B
JavaScript
28 lines
No EOL
760 B
JavaScript
// ┌┬┐┬┌┬┐┌─┐
|
|
// │ ││││├┤
|
|
// ┴ ┴┴ ┴└─┘
|
|
// Set time and Date
|
|
|
|
window.onload = displayClock();
|
|
function displayClock() {
|
|
const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
|
|
var d = new Date();
|
|
var mm = monthNames[d.getMonth()];
|
|
var dd = d.getDate();
|
|
var min = (mins = ('0' + d.getMinutes()).slice(-2));
|
|
var hh = d.getHours();
|
|
var ampm = '';
|
|
|
|
if (CONFIG.twelveHourFormat) {
|
|
ampm = hh >= 12 ? ' pm' : ' am';
|
|
hh = hh % 12;
|
|
hh = hh ? hh : 12;
|
|
}
|
|
|
|
document.getElementById('hour').innerText = hh;
|
|
document.getElementById('separator').innerHTML = ' : ';
|
|
document.getElementById('minutes').innerText = min + ampm;
|
|
|
|
setTimeout(displayClock, 1000);
|
|
} |