HTMLify
Hththththththththt.html
Views: 366 | Author: amar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Weather Checker</title> <style> body { font-family: Arial, sans-serif; text-align: center; background-color: #111; color: white; padding: 20px; } #city-input, #loading-screen, #final-loading-screen, #weather-box { display: none; margin-top: 30px; } #progress-container { width: 80%; max-width: 400px; background: #333; border-radius: 10px; margin: 20px auto; height: 20px; overflow: hidden; } #progress-bar, #final-progress-bar { width: 0%; height: 100%; background: limegreen; border-radius: 10px; transition: width 0.3s linear; } .btn { padding: 12px 20px; font-size: 16px; border: none; cursor: pointer; border-radius: 8px; font-weight: bold; width: 85%; max-width: 300px; display: block; margin: 15px auto; transition: all 0.3s ease-in-out; } .btn-primary { background: #007bff; color: white; box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.4); } .btn-primary:hover { background: #0056b3; } .btn-danger { background: red; color: white; box-shadow: 0px 4px 10px rgba(255, 0, 0, 0.4); } .btn-danger:hover { background: darkred; } .btn-follow { background: #ff007f; color: white; box-shadow: 0px 4px 10px rgba(255, 0, 127, 0.4); } .btn-follow:hover { background: #cc0066; } input { padding: 12px; font-size: 16px; border-radius: 8px; width: 85%; max-width: 300px; text-align: center; border: 2px solid #007bff; background: #222; color: white; } .popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #222; color: white; padding: 20px; border-radius: 10px; box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2); text-align: center; width: 320px; } </style> </head> <body> <h1>Weather Checker</h1> <div id="city-input"> <h2>Enter Your City</h2> <input type="text" id="location" placeholder="Enter city..."> <button class="btn btn-primary" id="check-btn" onclick="startFakeLoading()">Check Weather</button> </div> <div id="loading-screen"> <h2>Checking weather data...</h2> <div id="progress-container"> <div id="progress-bar"></div> </div> <p id="loading-text">Initializing...</p> </div> <div id="instagram-popup" class="popup"> <h2>One Last Step</h2> <p>Follow me on Instagram to unlock the weather results!</p> <button class="btn btn-follow" onclick="redirectToInstagram()">Follow on Instagram</button> <button class="btn btn-danger" onclick="showBrokenPopup()">✖ Close</button> </div> <div id="broken-popup" class="popup"> <h2>Oops!</h2> <p>This button is broken. Try again!</p> <button class="btn btn-primary" onclick="closeBrokenPopup()">Okay</button> </div> <div id="final-loading-screen"> <h2>Finalizing Data...</h2> <div id="progress-container"> <div id="final-progress-bar"></div> </div> <p id="final-loading-text">Processing data...</p> <p><strong>Estimated Time: <span id="countdown-timer">5</span> seconds</strong></p> </div> <div id="weather-box"> <button class="btn btn-primary" id="search-btn" onclick="redirectToWeather()">Show Weather</button> </div> <script> document.getElementById("city-input").style.display = "block"; function startFakeLoading() { const location = document.getElementById("location").value.trim(); if (!location) { alert("Please enter a city name."); return; } document.getElementById("city-input").style.display = "none"; document.getElementById("loading-screen").style.display = "block"; let progress = 0; const progressBar = document.getElementById("progress-bar"); const loadingText = document.getElementById("loading-text"); const messages = [ "Checking satellite data...", "Analyzing global temperature...", "Processing real-time conditions...", "Finalizing weather model..." ]; function updateProgress() { if (progress < 100) { progress += Math.floor(Math.random() * 10) + 10; if (progress > 100) progress = 100; progressBar.style.width = progress + "%"; loadingText.innerText = messages[Math.floor(Math.random() * messages.length)]; setTimeout(updateProgress, 1000); } else { document.getElementById("loading-screen").style.display = "none"; document.getElementById("instagram-popup").style.display = "block"; } } updateProgress(); } function redirectToInstagram() { localStorage.setItem("followedOnInstagram", "true"); window.open("https://www.instagram.com/eternalamar", "_blank"); } function showBrokenPopup() { document.getElementById("instagram-popup").style.display = "none"; document.getElementById("broken-popup").style.display = "block"; } function closeBrokenPopup() { document.getElementById("broken-popup").style.display = "none"; document.getElementById("instagram-popup").style.display = "block"; } document.addEventListener("visibilitychange", function() { if (!document.hidden && localStorage.getItem("followedOnInstagram") === "true") { localStorage.removeItem("followedOnInstagram"); document.getElementById("instagram-popup").style.display = "none"; document.getElementById("final-loading-screen").style.display = "block"; let countdown = 5; function updateCountdown() { document.getElementById("countdown-timer").innerText = countdown; document.getElementById("final-progress-bar").style.width = (5 - countdown) * 20 + "%"; if (countdown === 0) { document.getElementById("final-loading-screen").style.display = "none"; document.getElementById("weather-box").style.display = "block"; document.getElementById("search-btn").style.display = "inline-block"; } else { countdown--; setTimeout(updateCountdown, 1000); } } updateCountdown(); } }); function redirectToWeather() { const location = document.getElementById("location").value.trim(); window.location.href = `https://www.google.com/search?q=${encodeURIComponent(location)}+weather`; } </script> </body> </html> |