From c794643289c78c55d68abc3f36203c265c638c64 Mon Sep 17 00:00:00 2001 From: The SZ Date: Fri, 29 Nov 2024 18:23:32 +0100 Subject: [PATCH] orange is now more orange, 12 hour clock sample added --- create.js | 2 +- index.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/create.js b/create.js index 55615f9..aeac371 100644 --- a/create.js +++ b/create.js @@ -16,7 +16,7 @@ map.addPin( svgOptions: { radius: 0.6, // dot size - color: '#F6A300' // dot color + color: '#FF9F0A' // dot color } }); diff --git a/index.html b/index.html index 7747691..d28a6e9 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,7 @@ } .clock-container .location { - color: #F6A300; + color: #FF9F0A; font-size: 5vh; margin-bottom: -4%; } @@ -56,10 +56,13 @@ function updateTime() { var now = new Date(); + // 12 hour clock + //document.getElementsByClassName('time')[0].innerHTML = (now.getHours() % 12 || 12) + ':' + ('0' + now.getMinutes()).slice(-2); + // 24 hour clock document.getElementsByClassName('time')[0].innerHTML = now.getHours() + ':' + ('0' + now.getMinutes()).slice(-2); } updateTime(); - setInterval(updateTime, (60 * 1000)); + setInterval(updateTime, (45 * 1000));