Update 2025-04-13_16:26:34
This commit is contained in:
14
static/button.js
Normal file
14
static/button.js
Normal file
@ -0,0 +1,14 @@
|
||||
// button.js – Buttonverhalten für New Game (🔄)
|
||||
|
||||
import { startGame } from './app.js';
|
||||
|
||||
const startBtn = document.getElementById('startBtn');
|
||||
|
||||
if (startBtn) {
|
||||
startBtn.addEventListener('click', () => {
|
||||
localStorage.removeItem('bestLevel');
|
||||
localStorage.removeItem('currentLevel');
|
||||
startGame();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user