PageSourceSearch

https://www.menaldumdorp.nl/site/modules/mod_ebstickycookienotice/tmpl/assets/js/cookie_script.js?v=348458955

js menaldumdorp.nl collected 2026-09-25 09:37:58 UTC 3,106 bytes, 89 lines download raw bytes

1<!-- ************************ COOKIES JAVASCRPT CODE HERE (START HERE)***************************-->
2
3<!-- **************** Function to check cookie value - Start *****************-->
4function check_cookie()
5{
6	if(getCookieforEU(getBaseURL()))
7	{ 
8		document.getElementById("eu_cookies").style.display="none";
9	}
10	else
11	{
12		document.getElementById("eu_cookies").style.display="block";
13	}
14}
15
16
17function getCookieforEU(eu_cookie_name)
18{
19var i,x,y,ARRcookies=document.cookie.split(";");
20for (i=0;i<ARRcookies.length;i++)
21  {
22  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
23  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
24  x=x.replace(/^\s+|\s+$/g,"");
25  
26if (x==eu_cookie_name)
27    {
28    return unescape(y);
29    }
30  }
31}
32<!-- **************** Function to check cookie value - End *****************-->
33
34<!-- **************** Function to assign cookie value - Start *****************-->
35
36<!-- NOTE:- Cookie will expires in 30 days.-->
37function calltohide()
38{
39	var exdate=new Date();
40	eu_cookie_name=getBaseURL();
41	value=randomString();
42	exdays=30; 	
43	exdate.setDate(exdate.getDate() + exdays);
44	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
45	//document.cookie=eu_cookie_name + "=" + c_value;
46	document.cookie=eu_cookie_name + "=" + c_value +";	path=/";
47	document.getElementById("eu_cookies").style.display="none";
48}
49<!-- **************** Function to assign cookie value - End *****************-->
50
51<!-- **************** Function to get base url for site to assign cookie - Start *****************-->
52
53
54<!-- **************** Function to get base url for site to assign cookie - Start *****************-->
55function getBaseURL() {
56    var url = location.href;  // entire url including querystring - also: window.location.href;
57    var baseURL = url.substring(0, url.indexOf('/', 14));
58
59	if (baseURL.indexOf('http://localhost') != -1) {
60        // Base Url for localhost
61        var url = location.href;  // window.location.href;
62        var pathname = location.pathname;  // window.location.pathname;
63        var index1 = url.indexOf(pathname);
64        var index2 = url.indexOf("/", index1 + 1);
65        var baseLocalUrl = url.substr(0, index2);
66
67        return baseLocalUrl + "/";
68    }
69    else {
70        // Root Url for domain name
71        return baseURL + "/";
72	}
73}
74<!-- **************** Function to get base url for site to assign cookie - End *****************-->
75
76<!-- **************** Function to get generate random number - Start *****************-->
77function randomString() {
78	var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
79	var string_length = 16;
80	var randomstring = '';
81	for (var i=0; i<string_length; i++) {
82		var rnum = Math.floor(Math.random() * chars.length);
83		randomstring += chars.substring(rnum,rnum+1);
84	}
85	return randomstring;
86}
87
88<!-- **************** Function to get generate random number - End *****************-->
89<!-- ************************ COOKIES JAVASCRPT CODE HERE (END HERE)***************************-->

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.