From 760e8fff4d4fd71350ddc9b17e85e95a17d4ce8e Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 31 Mar 2023 19:41:34 +0300 Subject: oops --- rannak/endPage/fonts/fontDos/OFL.txt | 0 .../endPage/fonts/fontDos/PressStart2P-Regular.ttf | Bin rannak/endPage/fonts/fontUno/Monoton-Regular.ttf | Bin rannak/endPage/fonts/fontUno/OFL.txt | 0 rannak/endPage/img/798916.jpg | Bin rannak/endPage/img/798919.jpg | Bin rannak/endPage/img/798923.png | Bin rannak/endPage/img/dos.png | Bin rannak/endPage/img/tres.png | Bin rannak/endPage/img/uno.jpg | Bin rannak/endPage/index.html | 12 +++++++++ rannak/endPage/main.js | 17 ++++++++++--- rannak/endPage/style.css | 27 +++++++++++++-------- 13 files changed, 43 insertions(+), 13 deletions(-) mode change 100755 => 100644 rannak/endPage/fonts/fontDos/OFL.txt mode change 100755 => 100644 rannak/endPage/fonts/fontDos/PressStart2P-Regular.ttf mode change 100755 => 100644 rannak/endPage/fonts/fontUno/Monoton-Regular.ttf mode change 100755 => 100644 rannak/endPage/fonts/fontUno/OFL.txt mode change 100755 => 100644 rannak/endPage/img/798916.jpg mode change 100755 => 100644 rannak/endPage/img/798919.jpg mode change 100755 => 100644 rannak/endPage/img/798923.png mode change 100755 => 100644 rannak/endPage/img/dos.png mode change 100755 => 100644 rannak/endPage/img/tres.png mode change 100755 => 100644 rannak/endPage/img/uno.jpg mode change 100755 => 100644 rannak/endPage/index.html mode change 100755 => 100644 rannak/endPage/main.js mode change 100755 => 100644 rannak/endPage/style.css (limited to 'rannak/endPage') diff --git a/rannak/endPage/fonts/fontDos/OFL.txt b/rannak/endPage/fonts/fontDos/OFL.txt old mode 100755 new mode 100644 diff --git a/rannak/endPage/fonts/fontDos/PressStart2P-Regular.ttf b/rannak/endPage/fonts/fontDos/PressStart2P-Regular.ttf old mode 100755 new mode 100644 diff --git a/rannak/endPage/fonts/fontUno/Monoton-Regular.ttf b/rannak/endPage/fonts/fontUno/Monoton-Regular.ttf old mode 100755 new mode 100644 diff --git a/rannak/endPage/fonts/fontUno/OFL.txt b/rannak/endPage/fonts/fontUno/OFL.txt old mode 100755 new mode 100644 diff --git a/rannak/endPage/img/798916.jpg b/rannak/endPage/img/798916.jpg old mode 100755 new mode 100644 diff --git a/rannak/endPage/img/798919.jpg b/rannak/endPage/img/798919.jpg old mode 100755 new mode 100644 diff --git a/rannak/endPage/img/798923.png b/rannak/endPage/img/798923.png old mode 100755 new mode 100644 diff --git a/rannak/endPage/img/dos.png b/rannak/endPage/img/dos.png old mode 100755 new mode 100644 diff --git a/rannak/endPage/img/tres.png b/rannak/endPage/img/tres.png old mode 100755 new mode 100644 diff --git a/rannak/endPage/img/uno.jpg b/rannak/endPage/img/uno.jpg old mode 100755 new mode 100644 diff --git a/rannak/endPage/index.html b/rannak/endPage/index.html old mode 100755 new mode 100644 index 3dcb9df..24b42a7 --- a/rannak/endPage/index.html +++ b/rannak/endPage/index.html @@ -13,6 +13,18 @@

TUBLI!
Läbisid      Rolli

+ +
+

+ + + + + + + +
+

Nüüd võid valida uue Rolli või minna tagasi avalehele

diff --git a/rannak/endPage/main.js b/rannak/endPage/main.js old mode 100755 new mode 100644 index 1f4a3c5..2813fc0 --- a/rannak/endPage/main.js +++ b/rannak/endPage/main.js @@ -1,7 +1,18 @@ -let rollSpan = document.querySelector("span"); ; +const spans = document.querySelectorAll("span"); if (localStorage.roll != undefined){ - rollSpan.innerHTML = localStorage.roll; + + let roll = localStorage.roll; + spans[0].innerHTML = roll; delete localStorage.roll; -} + if (roll == 'Kaitseliitlase'){ + console.log(span1); + document.querySelector('h3').innerHTML = 'Baltiketti andmed:'; + spans[1].innerHTML = 'Asula: ' + localStorage.asula; + spans[2].innerHTML = 'Kaugus: ' + localStorage.kaugus; + + delete localStorage.asula; + delete localStorage.kaugus; + } +} diff --git a/rannak/endPage/style.css b/rannak/endPage/style.css old mode 100755 new mode 100644 index 0132b61..c9fa274 --- a/rannak/endPage/style.css +++ b/rannak/endPage/style.css @@ -3,17 +3,10 @@ src: url('fonts/fontUno/Monoton-Regular.ttf'); } -@font-face { - font-family: 'fontDos'; - src: url('fonts/fontDos/PressStart2P-Regular.ttf'); -} - - - body { padding: 0; margin: 0; - box-sixing: border-box; + box-sizing: border-box; background-image: url("img/tres.png"); background-size:100%; } @@ -27,6 +20,7 @@ body { text-align: center; } + .innerDiv { padding: 15px; margin-left: 20%; @@ -34,11 +28,25 @@ body { color: black; } + + +.info{ + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +p{ + border-top: solid 3px black; + padding-top: 2rem; +} + + h1 { color: rgba(0,136,169,1); font-family:'fontUno'; } -p {font-family:'fontDos';} button { background-color: rgba(0,136,169,1); @@ -48,7 +56,6 @@ button { cursor: pointer; text-decoration: none; font-size: 1.3rem; - font-family:'fontDos'; } a { -- cgit v1.2.3