Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.getElementById('hackButton').addEventListener('click', () => {
- const outputDiv = document.getElementById('output');
- // Simulate hacking logic (this is just for demonstration)
- outputDiv.innerHTML = "Hacking initiated...<br>";
- // Simulate some hacking steps
- setTimeout(() => {
- outputDiv.innerHTML += "Bypassing security protocols...<br>";
- }, 1000);
- setTimeout(() => {
- outputDiv.innerHTML += "Accessing target system...<br>";
- }, 2000);
- setTimeout(() => {
- outputDiv.innerHTML += "Data extraction in progress...<br>";
- }, 3000);
- setTimeout(() => {
- outputDiv.innerHTML += "Hack successful! Data retrieved.<br>";
- }, 4000);
- });
- // Fly Button Functionality
- document.getElementById('flyButton').addEventListener('click', () => {
- const outputDiv = document.getElementById('output');
- outputDiv.innerHTML += "You are now flying! ✈️<br>";
- });
- // Leave Game Button Functionality
- document.getElementById('leaveButton').addEventListener('click', () => {
- const outputDiv = document.getElementById('output');
- outputDiv.innerHTML += "You have left the game. Goodbye! 👋<br>";
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement