Skip to content

Commit 80774cd

Browse files
committed
docs: update task titles
1 parent a4cc97e commit 80774cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

072-memory cards/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>
3333
<button id="knew" class="btn">I Knew It</button>
3434
<button id="didnt-know" class="btn">I Didn't Know</button>
3535
</div>
36-
<!-- Enable localStorage -->
36+
<!-- Enable Data Persistence with localStorage -->
3737
<div class="navigation" id="navigation">
3838
<button id="prev" class="nav-button">
3939
<i class="fas fa-arrow-left"></i>

072-memory cards/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function updateCurrentText() {
8181
currentElement.innerText = `${currentActiveCard + 1}/${cardsElement.length}`;
8282
}
8383

84-
// Enable localStorage
84+
// Enable Data Persistence with localStorage
8585
function getCardsData() {
8686
const cards = JSON.parse(localStorage.getItem("cards"));
8787
return cards === null ? [] : cards;
@@ -104,7 +104,7 @@ function setUnknownCards(cards) {
104104
localStorage.setItem("unknownCards", JSON.stringify(cards));
105105
}
106106

107-
// Fix Card Navigation
107+
// Fix Card Navigation and State
108108
function updateCardPositions() {
109109
cardsElement.forEach((card, index) => {
110110
card.classList.remove("active", "left", "right", "far-left", "far-right");

0 commit comments

Comments
 (0)