From ab1b5e77141ed402b41b16346254d512b458767c Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Mon, 2 Jan 2023 00:20:24 +0200 Subject: endPage and some starter localStorage --- rannak/endPage/main.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 rannak/endPage/main.js (limited to 'rannak/endPage/main.js') diff --git a/rannak/endPage/main.js b/rannak/endPage/main.js new file mode 100644 index 0000000..c6da3fc --- /dev/null +++ b/rannak/endPage/main.js @@ -0,0 +1,7 @@ +let rollSpan = document.querySelector("span"); ; + +if (rollSpan != undefined){ + rollSpan.innerHTML = localStorage.roll; + delete localStorage.roll; +} + -- cgit v1.2.3