From 8f3d2b1b6ff3cb2378a2ce5403faebaadca61c11 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 5 May 2023 18:37:52 +0300 Subject: Parandused Former-commit-id: 5f3ba2029e5783e370d2a7808b5ede5448424e14 --- rannak/endPage/main.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'rannak/endPage') 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; -- cgit v1.2.3