Skip to content

Commit f687228

Browse files
authored
Update account.html
1 parent 21fd023 commit f687228

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/account.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@
211211
localStorage.removeItem('username');
212212
window.location.href = 'account.html';
213213
}
214+
215+
function strikeinfo() {
216+
window.location.href = 'https://scratch-coding-hut.netlify.app/Strikes/my-strikes?username=${username}';
217+
}
214218
</script>
215219
</head>
216220

@@ -226,6 +230,7 @@ <h1>Scratch Authentication</h1>
226230
<h2 id="welcomeMessage"></h2>
227231
<div id="mainText"></div>
228232
<button onclick="logout()">Logout</button>
233+
<button onclick="strikeinfo()">Strikes Received From Coding Hut</button>
229234
</div>
230235
</div>
231236

0 commit comments

Comments
 (0)