diff --git a/script (1).js b/script (1).js new file mode 100644 index 0000000..a318da4 --- /dev/null +++ b/script (1).js @@ -0,0 +1,50 @@ +// Show the main content after the page loads +window.onload = function() { + setTimeout(() => { + document.getElementById('loader').style.display = 'none'; + document.getElementById('content').style.display = 'block'; + }, 1500); // Loader for 1.5s +}; + +// Handle game iframe loading +document.querySelectorAll('a').forEach(function(link) { + link.addEventListener('click', function() { + var gameName = link.textContent; + console.log("Loading " + gameName + "..."); + + // Show loader before game loads + document.getElementById('loader').style.display = 'block'; + document.getElementById('content').style.display = 'none'; + + // Hide loader once the iframe content has loaded + var iframe = document.getElementById('gameFrame'); + iframe.onload = function() { + document.getElementById('loader').style.display = 'none'; + document.getElementById('content').style.display = 'block'; + }; + }); +}); + +// Handle search form submission (this code stays the same as in the original script) +document.getElementById('searchForm').addEventListener('submit', function(e) { + e.preventDefault(); + let url = document.getElementById('urlInput').value.trim(); + if (!url.startsWith('http')) { + url = 'https://' + url; + } + if (document.getElementById('blankMode').checked) { + const newWindow = window.open(); + if (newWindow) { + newWindow.document.write(` + Tide Surf + + + + `); + } else { + alert('Popup blocked! Please allow popups.'); + } + } else { + window.location.href = url; + } +}); diff --git a/timeshooter2.html b/timeshooter2.html new file mode 100644 index 0000000..fa739ea --- /dev/null +++ b/timeshooter2.html @@ -0,0 +1,856 @@ + + + + + +Time Shooter 2 + +
+ +
+ + + + + \ No newline at end of file diff --git a/tomb-of-the-mask.html b/tomb-of-the-mask.html new file mode 100644 index 0000000..7d93703 --- /dev/null +++ b/tomb-of-the-mask.html @@ -0,0 +1,778 @@ + +
+
+
+ \ No newline at end of file