PageSourceSearch

https://www.landoftheloonfestival.com/wp-content/themes/land-of-the-loon/js/cookies.js

js landoftheloonfestival.com collected 2026-10-02 13:38:13 UTC 1,706 bytes, 62 lines download raw bytes

1// Creare's 'Implied Consent' EU Cookie Law Banner v:2.4
2// Conceived by Robert Kent, James Bavington & Tom Foyster
3 
4var dropCookie = true;                      // false disables the Cookie, allowing you to style the banner
5
6 
7function createCookie(name,value,days) {
8    if (days) {
9        var date = new Date();
10        date.setTime(date.getTime()+(days*24*60*60*1000)); 
11        var expires = "; expires="+date.toGMTString(); 
12    }
13    else var expires = "";
14    if(window.dropCookie) { 
15        document.cookie = name+"="+value+expires+"; path=/"; 
16    }
17}
18 
19function checkCookie(name) {
20    var nameEQ = name + "=";
21    var ca = document.cookie.split(';');
22    for(var i=0;i < ca.length;i++) {
23        var c = ca[i];
24        while (c.charAt(0)==' ') c = c.substring(1,c.length);
25        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
26    }
27    return null;
28}
29 
30function eraseCookie(name) {
31    createCookie(name,"",-1);
32}
33 
34
35
36jQuery(document).ready(function($) {
37	$('.add-cookie').each(function(){ 
38		var cookieName = $(this).attr('id');
39		var cookieDuration = $(this).attr('data-duration');
40		var cookieValue = 'on'; 
41		
42		//alert(cookieName);
43		//alert(cookieDuration);
44		//alert(cookieValue);
45		
46		if(checkCookie(cookieName) != cookieValue){ 
47			$(this).show();
48			$(this).children('.close-cookie-banner').click(function() {
49				createCookie(cookieName,cookieValue,cookieDuration);
50				$('#'+cookieName).hide();
51			});
52		}
53		$('.close').click(function() {
54			$('#'+cookieName).hide();
55			createCookie(cookieName,cookieValue,'1');
56		});
57		$('.button').click(function() {
58			createCookie(cookieName,cookieValue,cookieDuration);
59			$('#'+cookieName).hide();
60		});
61	});
62});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.