Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.31 KB | None | 0 0
  1. <style>#cookie {z-index: 999999; position: fixed; bottom: 0; left: 0; right: 0; background: #aaddff; padding: 20px; font-size: 14px; font-family: arial;}
  2. #cookie a.button {cursor: pointer; background: #eee; padding: 8px 20px; margin-left: 10px; border-radius: 5px; color: #333; float: right;}
  3. #cookie a.button:hover {background-color: #ddd;}
  4. #cookie p.cookiemessage {display: block; padding: 0; margin: 0;}</style>
  5.  
  6. <div id="cookie"><a onClick="var d = new Date(); d = new Date(d.getTime() +1000*60*60*24*730); document.cookie = 'cookie=1; expires='+ d.toGMTString() + ';'; document.getElementById('cookie').style.display = 'none';" class="button">Akzeptieren</a>
  7.   <p class="cookiemessage">Wir verwender Cookies auf unserer Seite. Mit der Nutzung erklären Sie sich enverstanden. <a href="https://www.gestickt.de/footeritem.php?item=datenschutz"><b>Mehr Informationen</b></a></p></div>
  8.  
  9. <script>var r;a = document.cookie;while(a != ''){while(a.substr(0,1) == ' '){a = a.substr(1,a.length);}cn = a.substring(0,a.indexOf('='));if(a.indexOf(';') != -1){cw = a.substring(a.indexOf('=')+1,a.indexOf(';'));}else{cw = a.substr(a.indexOf('=')+1,a.length);}if(cn == 'cookie'){r = cw;}i = a.indexOf(';')+1;if(i == 0){i = a.length}a = a.substring(i,a.length);}if(r == '1') document.getElementById('cookie').style.display = 'none';</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement