Skip to content

Commit

Permalink
ficed the issue of the debug key showing up in local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
eliza-an committed Feb 14, 2023
1 parent 5690a06 commit f279f72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
3 changes: 2 additions & 1 deletion assets/js/final.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


// iterate localStorage
for (var i = 0; i < localStorage.length-1; i++) {
for (var i = 0; i < localStorage.length; i++) {

// set iteration key name
var key = localStorage.key(i);
Expand All @@ -17,6 +17,7 @@ for (var i = 0; i < localStorage.length-1; i++) {

const appenddiv = document.getElementById("div1");
appenddiv.appendChild(textsection);
window.localStorage.removeItem(`debug`);
}

var inputval= nameinput.value
Expand Down
16 changes: 1 addition & 15 deletions results.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,7 @@ <h5 class="card-title">Card title</h5>

</div>
</div>
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p id ="div2" class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>

</div>
</div>
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p id ="div3" class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>

</div>

</div>
</div>
<div class="modal-footer">
Expand Down

0 comments on commit f279f72

Please sign in to comment.