Modern Memory Cleaner - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Modern Memory Cleaner</title> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap'); body { font-family: 'Poppins', sans-serif; background: #f0f2f5; color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; overflow: hidden; } .container { background: white; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); border-radius: 20px; padding: 2rem; text-align: center; animation: fadeIn 1s ease-in-out; max-width: 400px; width: 100%; } .title { font-size: 2rem; margin-bottom: 1rem; } .button { background: #007bff; color: white; border: none; padding: 0.5rem 1.5rem; border-radius: 25px; font-size: 1rem; cursor: pointer; transition: background 0.3s; margin-top: 1rem; } .button:hover { background: #0056b3; } .progress-bar { width: 100%; background: #ddd; border-radius: 25px; overflow: hidden; margin-top: 1rem; } .progress { height: 10px; width: 0; background: #007bff; border-radius: 25px; transition: width 1s; } .message { font-size: 1rem; margin-top: 1rem; display: none; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } </style> </head> <body> <div class="container"> <h1 class="title">Modern Memory Cleaner</h1> <button class="button" onclick="cleanMemory()">Clean Memory</button> <div class="progress-bar"> <div class="progress" id="progress"></div> </div> <p class="message" id="message">Memory cleaned successfully!</p> </div> <script> function cleanMemory() { const progress = document.getElementById('progress'); const message = document.getElementById('message'); progress.style.width = '0'; message.style.display = 'none'; let width = 0; const interval = setInterval(() => { if (width >= 100) { clearInterval(interval); message.style.display = 'block'; } else { width += 1; progress.style.width = width + '%'; } }, 30); } </script> </body> </html>