From 2afe5da2dce88bff6f84176c4ccadf3d1a5ba591 Mon Sep 17 00:00:00 2001 From: Guuq <50501321+Guuq@users.noreply.github.com> Date: Wed, 20 Nov 2019 19:49:31 +0100 Subject: [PATCH] 20-11 #3 --- css.css | 2 +- index.html | 2 +- js.js | 10 ++++++++-- vuurjongen-en-watermeisje-4/index.html | 8 +++++++- vuurjongen-en-watermeisje-4/js.js | 1 - 5 files changed, 17 insertions(+), 6 deletions(-) delete mode 100644 vuurjongen-en-watermeisje-4/js.js diff --git a/css.css b/css.css index 3d78374..b5deb34 100644 --- a/css.css +++ b/css.css @@ -24,7 +24,7 @@ svg { padding: 1rem; font-family: 'Open Sans', sans-serif; } -.time { +section div p { display: inline-block; font-size: 8rem; margin: 0; diff --git a/index.html b/index.html index ece228c..86cc2f8 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@
-

uren

:minuten


+

uren

:minuten

:seconden


datum


diff --git a/js.js b/js.js index 5790ce9..b85e8de 100644 --- a/js.js +++ b/js.js @@ -8,10 +8,16 @@ function showTime() { var days = ["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"] var months = ["Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"] if (date.getMinutes() < 10) { - d("mins").innerHTML = "0" + date.getMinutes() + d("mins").innerHTML = "0" + date.getMinutes() + ":" } else { - d("mins").innerHTML = date.getMinutes() + d("mins").innerHTML = date.getMinutes() + ":" + } + if (date.getSeconds() < 10) { + d("secs").innerHTML = "0" + date.getSeconds() + } + else { + d("secs").innerHTML = date.getSeconds() } d("hours").innerHTML = date.getHours() + ":" d("date").innerHTML = days[date.getDay()] + " " + date.getDate() + " " + months[date.getMonth()]; diff --git a/vuurjongen-en-watermeisje-4/index.html b/vuurjongen-en-watermeisje-4/index.html index 0c37a89..b88f96f 100644 --- a/vuurjongen-en-watermeisje-4/index.html +++ b/vuurjongen-en-watermeisje-4/index.html @@ -12,8 +12,14 @@ Vuurjongen en Watermeisje + - + diff --git a/vuurjongen-en-watermeisje-4/js.js b/vuurjongen-en-watermeisje-4/js.js deleted file mode 100644 index 8b13789..0000000 --- a/vuurjongen-en-watermeisje-4/js.js +++ /dev/null @@ -1 +0,0 @@ -