Skip to content

Commit

Permalink
Allow replay of game for new users on same device
Browse files Browse the repository at this point in the history
  • Loading branch information
BraydenKO committed Dec 30, 2024
1 parent e915d8c commit aec8198
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions public/done.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,16 @@
<div id = "container">
<h1>Thank You for Playing!</h1>
</div>
<script type ="module">
import { signOut } from 'https://www.gstatic.com/firebasejs/10.7.1/firebase-auth.js';
import { initializeFirebase } from './firebaseConfig.js';

const { db, auth } = initializeFirebase();

document.addEventListener('click', async () => {
await signOut(auth);
window.location.href = 'index.html';
});
</script>
</body>
</html>
6 changes: 3 additions & 3 deletions public/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
let game_type = "normal";

const game_type_lengths = {
"normal": 10_000, // ms
"reverse": 10_000,
"offset": 10_000
"normal": 15_000, // ms
"reverse": 15_000,
"offset": 15_000
}


Expand Down

0 comments on commit aec8198

Please sign in to comment.