From b088e4cde3be9904b71026d9c1e8388d691454ce Mon Sep 17 00:00:00 2001 From: eliza-an <118762745+eliza-an@users.noreply.github.com> Date: Tue, 14 Feb 2023 15:25:31 +0000 Subject: [PATCH] finalised the modal, by adding the font and sty;ing --- assets/js/final.js | 12 ++---------- assets/js/results.js | 2 +- assets/results-style.css | 5 ++++- results.html | 6 +++--- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/assets/js/final.js b/assets/js/final.js index 7b4e700..0dd3b7e 100644 --- a/assets/js/final.js +++ b/assets/js/final.js @@ -1,16 +1,12 @@ -// iterate localStorage for (var i = 0; i < localStorage.length; i++) { - // set iteration key name var key = localStorage.key(i); // use key name to retrieve the corresponding value var value = localStorage.getItem(key); - // console.log the iteration key and value - console.log(key + ": " + value); const textsection= document.createElement("p"); const paratext = document.createTextNode(key + ": " + value); textsection.appendChild(paratext); @@ -18,12 +14,8 @@ for (var i = 0; i < localStorage.length; i++) { const appenddiv = document.getElementById("div1"); appenddiv.appendChild(textsection); window.localStorage.removeItem(`debug`); + window.localStorage.removeItem(`randomName`) } -var inputval= nameinput.value + -if (inputval=null){ - document.getElementById("startBtn").disabled = true; -}else{ - document.getElementById("startBtn").disabled = false; -} \ No newline at end of file diff --git a/assets/js/results.js b/assets/js/results.js index b8fad72..ee292df 100644 --- a/assets/js/results.js +++ b/assets/js/results.js @@ -144,7 +144,7 @@ $.ajax({ function getRandom(response) { let randomName = []; randomName.push(pokeNames[Math.floor(Math.random() * pokeNames.length)]); - localStorage.setItem(`randomName`, randomName.toString()) + localStorage.setItem(`Your Pokemon Name`, randomName.toString()) return randomName; } diff --git a/assets/results-style.css b/assets/results-style.css index f9ae195..e53e523 100644 --- a/assets/results-style.css +++ b/assets/results-style.css @@ -130,4 +130,7 @@ body { border: 8px solid rgb(255, 0, 0); */ } - +.card-body{ + font-family: 'DotGothic16', sans-serif; + text-transform:capitalize +} diff --git a/results.html b/results.html index 13640b5..d2483c4 100644 --- a/results.html +++ b/results.html @@ -25,7 +25,7 @@