12 lines
311 B
JavaScript
12 lines
311 B
JavaScript
|
// Create the button
|
||
|
const button = document.createElement('button');
|
||
|
button.id = 'fumbleButton';
|
||
|
button.textContent = 'Fumble!';
|
||
|
|
||
|
// Add click handler
|
||
|
button.addEventListener('click', () => {
|
||
|
window.location.href = 'https://wiby.me/surprise/';
|
||
|
});
|
||
|
|
||
|
// Add button to page
|
||
|
document.body.appendChild(button);
|