Nature 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>Nature Memory Cleaner</title> <style> @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap'); body { font-family: 'Montserrat', sans-serif; background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); color: #fff; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; overflow: hidden; } .container { background: rgba(0, 0, 0, 0.7); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 1rem 2rem; text-align: center; animation: fadeIn 1s ease-in-out; max-width: 400px; width: 100%; } .title { font-size: 2rem; margin-bottom: 1rem; } .button { background: #a8e063; color: #000; border: none; padding: 0.5rem 1rem; border-radius: 25px; font-size: 1rem; cursor: pointer; transition: background 0.3s; margin-top: 1rem; } .button:hover { background: #76c043; } .progress-bar { width: 100%; background: #ccc; border-radius: 25px; overflow: hidden; margin-top: 1rem; } .progress { height: 10px; width: 0; background: #a8e063; 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">Nature 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>