Skip to content

Commit 1a8b489

Browse files
committed
changed as per as required
1 parent cc5b922 commit 1a8b489

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

assets/js/profile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const checkIfUserData = (msg) => {
1515
const linktoprofile = document.createElement('a');
1616
linktoprofile.innerText = "Click here";
1717
linktoprofile.href = "./practice.html";
18-
navigateEle.innerText = "to play again";
18+
navigateEle.innerText = "practice again";
1919
navigateEle.insertAdjacentElement('afterbegin', linktoprofile);
2020
}
2121
}
@@ -117,15 +117,15 @@ historyResetBtn.addEventListener("click", () => {
117117
showHistory();
118118
// window.location.reload();
119119
//to show msg after delete data
120-
checkIfUserData("to play again")
120+
checkIfUserData(" to practice again")
121121
})
122122

123123
//after click on delete username button
124124
const deleteUserName=document.querySelector(".reset-userName")
125125
deleteUserName.addEventListener("click",(e)=>{
126126
localStorage.removeItem("typerName");
127127
e.target.style.display="none"
128-
checkIfUserData(" to set up your name and for play again")
128+
checkIfUserData(" to set up your name and practice again")
129129
getUserName()
130130
})
131131

@@ -134,7 +134,7 @@ const deleteUserName=document.querySelector(".reset-userName")
134134
const usernamefromLocal = localStorage.getItem("typerName");
135135
if(usernamefromLocal==null){
136136
deleteUserName.style.display="none"
137-
checkIfUserData(" to set up your name and for play again")
137+
checkIfUserData(" to set up your name and practice again")
138138

139139
}
140140

profile.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<div class="container">
6666
<h1 class="heading">Profile Details</h1>
6767
<h2 class="subtitle" id="userName"></h2>
68-
<button class="reset-userName">delete Username</button>
68+
<button class="reset-userName">Reset Username</button>
6969
<p id="navigate-user-text"></p>
7070
</div>
7171
<!-- End of User Details -->

0 commit comments

Comments
 (0)