templates/includes/cookie-banner.html.twig line 1

Open in your IDE?
  1. <style>
  2. @media only screen and (max-width: 991px) {
  3.     .cookie-accept-div { padding-top:0px!important; }
  4. }
  5. </style>
  6. <script>
  7. function acceptCookies() {
  8.     var today = new Date();
  9.     var expire = new Date();
  10.     expire.setTime(today.getTime() + 3600000*24*365*5);
  11.     //document.cookie = "acceptCookies=1;path=/";
  12.     document.cookie = 'acceptCookies=1;expires=' + expire.toGMTString() + ';';
  13.     document.getElementById('cookie-banner').style.opacity = "0";
  14.     setTimeout(function(){document.getElementById('cookie-banner').style.display = "none";}, 1000);
  15.     $.post("/ajax/accept-cookies",
  16.     {
  17.         //id: $(this).attr("data-mitem-id")
  18.     },
  19.     function(data,status){});
  20. }
  21. </script>
  22. <div id="cookie-banner" style="position: fixed; display: block; background: rgba(238, 238, 238); color: rgb(86, 86, 98); border-width: 1px; border-style: solid; border-color: rgb(212, 216, 223); inset: auto 0px 0px auto;opacity: 1;-webkit-transition: opacity 500ms linear;transition: opacity 500ms linear;z-index:9999;">
  23.     <div class="row">
  24.         <div class="col-lg-1"></div>
  25.         <div class="col-lg-8" style="padding:20px;">
  26.             We use cookies to make our site work, to improve your experience, and we use our own and third-party cookies for advertising. Please see the Cookies section of our <a href="/privacy">Terms of Use</a> for more information and how to disable them. By accepting or closing the message and continuing to use this site, you agree to our use of cookies.
  27.         </div>
  28.         <div class="col-lg-2 cookie-accept-div" style="padding:20px; padding-top:30px; text-align:center;">
  29.             <button id="acceptCookies" type="submit" onclick="acceptCookies()" class="btn btn-secondary">Got it!</button>
  30.         </div>
  31.         <div class="col-lg-1"></div>
  32.     </div>
  33. </div>