HTML5user

007 GBA Game

Aug 22nd, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1.  
  2. <html><head><base target="_blank"></head><body><button class="c-button">PLAY FULLSCREEN</button>
  3. <style>
  4. .c-button {
  5. min-width: 100%;
  6. font-family: fantasy;
  7. appearance: none;
  8. border: 0;
  9. border-color: #fff;
  10. border-radius: 5px;
  11. background: #00008B;
  12. color: #fff;
  13. padding: 0px 46px;
  14. font-size: 20px;
  15. cursor: pointer;
  16. }
  17.  
  18. .c-button:hover {
  19. background: #add8e6;
  20. }
  21.  
  22. .c-button:focus {
  23. outline: none;
  24. box-shadow: 0 0 0 4px #cbd6ee;
  25. }
  26.  
  27. .c-button {
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. height: 100%;
  32. }
  33.  
  34. </style>
  35.  
  36. <script>
  37. var urlObj = new window.URL(window.location.href);
  38. var url = "https://unblockedphs.github.io/GBA/launcher.html#007";
  39.  
  40. if (url) {
  41. var win;
  42.  
  43. document.querySelector('button').onclick = function() {
  44. if (win) {
  45. win.focus();
  46. } else {
  47. win = window.open();
  48. win.document.body.style.margin = '0';
  49. win.document.body.style.height = '100vh';
  50. var iframe = win.document.createElement('iframe');
  51. iframe.style.border = 'none';
  52. iframe.style.width = '100%';
  53. iframe.style.height = '100%';
  54. iframe.style.margin = '0';
  55. iframe.src = url;
  56. win.document.body.appendChild(iframe);
  57.  
  58.  
  59. var interval = setInterval(function() {
  60. if (win.closed) {
  61. clearInterval(interval);
  62. win = undefined;
  63.  
  64. }
  65. }, 500);
  66.  
  67.  
  68. }
  69. };
  70. }
  71. </script></body></html>
Advertisement
Add Comment
Please, Sign In to add comment