| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Cookies Notice</title>
- <style>
- #cookie-notice {
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- background-color: #f0f0f0;
- padding: 20px;
- text-align: center;
- box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
- z-index: 1000;
- /* Ensure it's on top */
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- #cookie-notice p {
- margin: 0;
- flex-grow: 1;
- padding-right: 20px;
- }
- #cookie-notice button {
- background-color: #007bff;
- color: white;
- border: none;
- padding: 10px 20px;
- margin-right: 40px;
- cursor: pointer;
- border-radius: 5px;
- }
- #cookie-notice button:hover {
- background-color: #0056b3;
- }
- #cookie-notice a {
- color: #007bff;
- text-decoration: none;
- }
- #cookie-notice a:hover {
- text-decoration: underline;
- }
- @media (max-width: 600px) {
- #cookie-notice {
- flex-direction: column;
- align-items: stretch;
- }
- #cookie-notice p {
- padding-right: 0;
- margin-bottom: 10px;
- }
- }
- </style>
- </head>
- <body>
- <div id="cookie-notice">
- <p>This website uses cookies to improve your experience. By continuing to browse this site, you agree to our use of
- cookies. <a href="/policy.html" target="_blank">Learn more</a></p>
- <button id="accept-cookies">Accept</button>
- </div>
- <script>
- document.addEventListener('DOMContentLoaded', function () {
- const cookieNotice = document.getElementById('cookie-notice');
- const acceptButton = document.getElementById('accept-cookies');
- if (!localStorage.getItem('cookiesAccepted')) {
- cookieNotice.style.display = 'flex'; // Show the notice
- } else {
- cookieNotice.style.display = 'none'; // Hide the notice
- }
- acceptButton.addEventListener('click', function () {
- localStorage.setItem('cookiesAccepted', 'true');
- cookieNotice.style.display = 'none'; // Hide the notice
- });
- });
- </script>
- </body>
- </html>
|