File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Unchanged from previous version
21// User Name Handling
32const userNameInput = document . getElementById ( 'user-name' ) ;
43const saveNameBtn = document . getElementById ( 'save-name' ) ;
@@ -17,6 +16,7 @@ const secretsSection = document.getElementById('secrets-section');
1716const passwordInput = document . getElementById ( 'password-input' ) ;
1817const submitPasswordBtn = document . getElementById ( 'submit-password' ) ;
1918const passwordError = document . getElementById ( 'password-error' ) ;
19+ const nextWebsiteBtn = document . getElementById ( 'next-website-btn' ) ;
2020
2121let userName = '' ; // No localStorage, reset on load
2222let 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+
7074function showDashboard ( ) {
7175 // Hide welcome screen
7276 welcomeNote . classList . add ( 'hidden' ) ;
You can’t perform that action at this time.
0 commit comments