diff options
author | Rasmus <rasmus.luha@gmail.com> | 2023-05-05 18:37:52 +0300 |
---|---|---|
committer | Rasmus <rasmus.luha@gmail.com> | 2023-05-05 18:37:52 +0300 |
commit | 8f3d2b1b6ff3cb2378a2ce5403faebaadca61c11 (patch) | |
tree | a0c25f684b13444da069da1063653caa162fe426 /rannak/endPage | |
parent | 9a4d6be0ca9cb86ef56acdbf8bcc1fe9f920a19c (diff) |
Parandused
Former-commit-id: 5f3ba2029e5783e370d2a7808b5ede5448424e14
Diffstat (limited to 'rannak/endPage')
-rw-r--r-- | rannak/endPage/main.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rannak/endPage/main.js b/rannak/endPage/main.js index 7f21f65..0cfc56b 100644 --- a/rannak/endPage/main.js +++ b/rannak/endPage/main.js @@ -7,17 +7,18 @@ if (localStorage.roll != undefined){ delete localStorage.roll; if (roll == 'Kaitseliitlase'){ - document.querySelector('h3').innerHTML = 'Baltiketti andmed:'; - spans[1].innerHTML = 'Asula: ' + localStorage.asula; - spans[2].innerHTML = 'Kaugus: ' + localStorage.kaugus; + document.querySelector('h3').innerHTML = 'Soomusmasinate teekond:'; + spans[1].innerHTML = 'Asukoht: ' + localStorage.asula; + //spans[2].innerHTML = 'Soomusmasinad möödusid sinust: ' + localStorage.kaugus ' km kauguselt.'; + spans[2].innerHTML = `Soomusmasinad möödusid sinust: ${localStorage.kaugus} km kauguselt.` delete localStorage.asula; delete localStorage.kaugus; } else if (roll == 'Direktori'){ - document.querySelector('h3').innerHTML = 'Baltiketti andmed:'; - spans[3].innerHTML = 'Baltiketi pikkus: ' + localStorage.teekond; + document.querySelector('h3').innerHTML = 'Balti keti andmed:'; + spans[3].innerHTML = 'Balti keti pikkus: ' + localStorage.teekond; spans[1].innerHTML = 'Asula: ' + localStorage.asula; spans[2].innerHTML = 'Kaugus: ' + localStorage.kaugus; |