Advertisement
Thecodeeasar

Some script

Sep 25th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. document.getElementById('hackButton').addEventListener('click', () => {
  2. const outputDiv = document.getElementById('output');
  3.  
  4. // Simulate hacking logic (this is just for demonstration)
  5. outputDiv.innerHTML = "Hacking initiated...<br>";
  6.  
  7. // Simulate some hacking steps
  8. setTimeout(() => {
  9. outputDiv.innerHTML += "Bypassing security protocols...<br>";
  10. }, 1000);
  11.  
  12. setTimeout(() => {
  13. outputDiv.innerHTML += "Accessing target system...<br>";
  14. }, 2000);
  15.  
  16. setTimeout(() => {
  17. outputDiv.innerHTML += "Data extraction in progress...<br>";
  18. }, 3000);
  19.  
  20. setTimeout(() => {
  21. outputDiv.innerHTML += "Hack successful! Data retrieved.<br>";
  22. }, 4000);
  23. });
  24.  
  25. // Fly Button Functionality
  26. document.getElementById('flyButton').addEventListener('click', () => {
  27. const outputDiv = document.getElementById('output');
  28. outputDiv.innerHTML += "You are now flying! ✈️<br>";
  29. });
  30.  
  31. // Leave Game Button Functionality
  32. document.getElementById('leaveButton').addEventListener('click', () => {
  33. const outputDiv = document.getElementById('output');
  34. outputDiv.innerHTML += "You have left the game. Goodbye! 👋<br>";
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement