Cookie Fun Cookie Consent - 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>Cookie Fun - Cookie Consent</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"> <style> body { font-family: 'Arial', sans-serif; background: #ffecb3; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .cookie-fun-container { background: #ff9800; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); border-radius: 25px; width: 80%; max-width: 500px; padding: 30px; text-align: center; color: #fff; animation: bounceIn 1s ease-in-out; } .cookie-fun-header { font-size: 2.5em; margin-bottom: 20px; } .cookie-fun-content { font-size: 1.2em; margin-bottom: 25px; line-height: 1.6; } .cookie-fun-buttons { display: flex; justify-content: space-around; } .cookie-fun-buttons button { background: #fff; color: #ff9800; border: none; padding: 12px 28px; font-size: 1.1em; border-radius: 12px; cursor: pointer; transition: background 0.3s ease; } .cookie-fun-buttons button:hover { background: #ffb74d; } @keyframes bounceIn { from { transform: translateY(-100%); } to { transform: translateY(0); } } </style> </head> <body> <div class="cookie-fun-container"> <div class="cookie-fun-header">🍪 Cookie Fun</div> <div class="cookie-fun-content"> We use cookies to add fun to your experience. By using our site, you consent to our cookie policy. </div> <div class="cookie-fun-buttons"> <button onclick="acceptCookiesFun()">Accept</button> <button onclick="declineCookiesFun()">Decline</button> </div> </div> <script> function acceptCookiesFun() { alert('Cookies Accepted!'); // Add further cookie acceptance logic here } function declineCookiesFun() { alert('Cookies Declined!'); // Add further cookie decline logic here } </script> </body> </html>