PageSourceSearch

http://lightfield-forum.com/wordpress/wp-content/plugins/uk-cookie…/js/uk-cookie-consent-js.js?ver=2.3.0

js lightfield-forum.com collected 2026-09-26 07:18:24 UTC 1,540 bytes, 42 lines download raw bytes

1//All the cookie setting stuff
2function catapultSetCookie(cookieName, cookieValue, nDays) {
3	var today = new Date();
4	var expire = new Date();
5	if (nDays==null || nDays==0) nDays=1;
6	expire.setTime(today.getTime() + 3600000*24*nDays);
7	document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString()+"; path=/";
8}
9function catapultReadCookie(cookieName) {
10	var theCookie=" "+document.cookie;
11	var ind=theCookie.indexOf(" "+cookieName+"=");
12	if (ind==-1) ind=theCookie.indexOf(";"+cookieName+"=");
13	if (ind==-1 || cookieName=="") return "";
14	var ind1=theCookie.indexOf(";",ind+1);
15	if (ind1==-1) ind1=theCookie.length; 
16	// Returns true if the versions match
17	return ctcc_vars.version == unescape(theCookie.substring(ind+cookieName.length+2,ind1));
18}
19function catapultDeleteCookie(cookieName) {
20	document.cookie = cookieName + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/';
21}
22function catapultAcceptCookies() {
23	catapultSetCookie('catAccCookies', ctcc_vars.version, ctcc_vars.expiry);
24	jQuery("html").removeClass('has-cookie-bar');
25	jQuery("html").css("margin-top","0");
26	jQuery("#catapult-cookie-bar").fadeOut();
27}
28// The function called by the timer
29function ctccCloseNotification() {
30		catapultAcceptCookies();
31}
32// The function called if first page only is specified
33function ctccFirstPage() {
34	if ( ctcc_vars.method ) {
35		catapultSetCookie('catAccCookies', ctcc_vars.version, ctcc_vars.expiry);
36	}
37}
38jQuery(document).ready(function($){
39	$('.x_close').on('click', function(){
40		catapultAcceptCookies();
41	});
42});

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.