PageSourceSearch

https://www.aintreegaragedoors.co.uk/js/cookies.js

js aintreegaragedoors.co.uk collected 2026-10-04 08:35:22 UTC 1,492 bytes, 45 lines download raw bytes

1
2// © Creare Communications Ltd - EU Cookie Law - Implied Consent Version 1.0
3
4function createDiv(){ // create our header div	
5	var bodytag = document.getElementsByTagName('body')[0];
6	var div = document.createElement('div');
7	div.setAttribute('id','cookie-law');
8	div.innerHTML = '<div class="cookie-law-holder"><p>Our website uses cookies. By continuing we assume your permission to deploy cookies, as detailed in our  <a href="/privacy-cookies-policy.php" rel="nofollow" title="Privacy &amp; Cookies Policy">privacy and cookies policy</a>.  </p><a class="cookie-law-close" href="javascript:createCookie(\'cookiecheck\',\'on\',\'7\')">Continue <span>&#10004</span></a></div>';	
9	bodytag.appendChild(div);
10}
11
12function removeDiv(){
13	remove('cookie-law');	
14}
15
16function remove(id)
17{
18    return (elem=document.getElementById(id)).parentNode.removeChild(elem);
19}
20
21function createCookie(name,value,days) {
22	if (days) {
23		var date = new Date();
24		date.setTime(date.getTime()+(days*24*60*60*1000));
25		var expires = "; expires="+date.toGMTString();
26		removeDiv();
27	}
28	else var expires = "";
29	document.cookie = name+"="+value+expires+"; path=/";
30}
31
32function checkCookie(name) {
33	var nameEQ = name + "=";
34	var ca = document.cookie.split(';');
35	for(var i=0;i < ca.length;i++) {
36		var c = ca[i];
37		while (c.charAt(0)==' ') c = c.substring(1,c.length);
38		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
39	}
40	return null;
41}
42
43function eraseCookie(name) {
44	createCookie(name,"",-1);
45}

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.