diff --git a/countdown.js b/countdown.js new file mode 100644 index 0000000..882ce36 --- /dev/null +++ b/countdown.js @@ -0,0 +1,13 @@ +// countdown.js - Odštevalnik časa do projektnega tedna +// (c) Kristjan Komlosi 2018 +window.onload = () => { + if (new Date('2018-10-15') < new Date()) { + document.getElementById('countdown').innerHTML = '' + } + var days = new Date(new Date('2018-10-15') - new Date()).getDate(); + if (days === 1) { + document.getElementById('countdown').innerHTML = 'Jutri!
'; + } else if (days > 1) { + document.getElementById('days-left').innerHTML = days.toString(); + } +} \ No newline at end of file diff --git a/index.html b/index.html index f3304bc..1fa225a 100644 --- a/index.html +++ b/index.html @@ -4,21 +4,54 @@ - + + + + + + - Hello, world! + + + Planica 2018 - Domača stran - + -
-
+ +
+

Planica 2018

Projektni teden
od 15. do 19. oktobra 2018
+ +
+

Na kratko:

+
    +
  • +

    Kaj?

    + Projektni teden +
  • +
  • +

    Kdo?

    + Dijaki 2.Ga razreda Strokovne gimnazije Šolskega centra Kranj +
  • +
  • +

    Kje?

    + V CŠOD Planica +
  • +
  • +

    Kdaj?

    + Čez dni!
    + Od 15 do 19. oktobra 2018 +
  • +
+
\ No newline at end of file diff --git a/main.css b/main.css index 9af28ce..cac0142 100644 --- a/main.css +++ b/main.css @@ -1,8 +1,4 @@ -.img-banner { - width: 100%; -} .navbar-brand { - font-family: 'Courier New', Courier, monospace; font-size: 24px; } .planica-jumbo {