diff options
author | Rasmus <rasmus.luha@gmail.com> | 2023-04-01 16:15:52 +0300 |
---|---|---|
committer | Rasmus <rasmus.luha@gmail.com> | 2023-04-01 16:15:52 +0300 |
commit | ba837f70632519d58ae0f3f95bfad0dbb8051fc0 (patch) | |
tree | 3fc7d6b8715d4e7818d197d8408c791af28da608 /rannak/endPage/main.js | |
parent | 760e8fff4d4fd71350ddc9b17e85e95a17d4ce8e (diff) |
Loosung ja Baltikett
Diffstat (limited to 'rannak/endPage/main.js')
-rw-r--r-- | rannak/endPage/main.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/rannak/endPage/main.js b/rannak/endPage/main.js index 2813fc0..7f21f65 100644 --- a/rannak/endPage/main.js +++ b/rannak/endPage/main.js @@ -7,7 +7,6 @@ if (localStorage.roll != undefined){ 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; @@ -15,4 +14,17 @@ if (localStorage.roll != undefined){ delete localStorage.asula; delete localStorage.kaugus; } + + else if (roll == 'Direktori'){ + document.querySelector('h3').innerHTML = 'Baltiketti andmed:'; + spans[3].innerHTML = 'Baltiketi pikkus: ' + localStorage.teekond; + spans[1].innerHTML = 'Asula: ' + localStorage.asula; + spans[2].innerHTML = 'Kaugus: ' + localStorage.kaugus; + + console.log(localStorage.teekond); + + delete localStorage.asula; + delete localStorage.kaugus; + delete localStorage.teekond; + } } |