Skip to content

Commit ceb03e0

Browse files
authored
Update script.js
1 parent 13082e5 commit ceb03e0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎script.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Unchanged from previous version
21
// User Name Handling
32
const userNameInput = document.getElementById('user-name');
43
const saveNameBtn = document.getElementById('save-name');
@@ -17,6 +16,7 @@ const secretsSection = document.getElementById('secrets-section');
1716
const passwordInput = document.getElementById('password-input');
1817
const submitPasswordBtn = document.getElementById('submit-password');
1918
const passwordError = document.getElementById('password-error');
19+
const nextWebsiteBtn = document.getElementById('next-website-btn');
2020

2121
let userName = ''; // No localStorage, reset on load
2222
let scores = JSON.parse(localStorage.getItem('scores')) || { tic: 0, rps: 0, memory: 0 }; // Keep scores in localStorage
@@ -67,6 +67,10 @@ submitPasswordBtn.addEventListener('click', () => {
6767
}
6868
});
6969

70+
nextWebsiteBtn.addEventListener('click', () => {
71+
window.location.href = 'https://www.youtube.com';
72+
});
73+
7074
function showDashboard() {
7175
// Hide welcome screen
7276
welcomeNote.classList.add('hidden');

0 commit comments

Comments
 (0)