PageSourceSearch

https://uk.filmpeople.com/js/cookielaw.js

js filmpeople.com collected 2026-10-09 04:46:44 UTC 3,096 bytes, 67 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
5var cookieDuration = 28;                    // Number of days before the cookie expires, and the banner reappears
6var cookieName = 'complianceCookie';        // Name of our cookie
7var cookieValue = 'on';                     // Value of cookie
8
9function createDiv(){
10    var bodytag = document.getElementsByTagName('body')[0];
11    var div = document.createElement('div');
12    div.setAttribute('id','cookie-law');
13    var en = (document.documentElement.lang || '').indexOf('en') === 0; // the layout sets <html lang> to the visitor's locale
14    div.innerHTML = en
15        ? '<p>This website uses <a href="/cookies" rel="nofollow" class="underline" title="Cookies">cookies</a> | <a href="/privacy" rel="nofollow" class="underline" title="Privacy statement">Privacy statement</a> | <a href="/terms" rel="nofollow" class="underline" title="Terms">Terms</a><a class="close-cookie-banner" href="javascript:void(0);" onclick="removeMe();"><span>X</span></a></p>'
16        : '<p>Deze website maakt gebruik van <a href="/cookies" rel="nofollow" class="underline" title="Cookies">cookies</a> | <a href="/privacy" rel="nofollow" class="underline" title="Privacy statement">Privacy statement</a> | <a href="/voorwaarden" rel="nofollow" class="underline" title="Voorwaarden">Voorwaarden</a><a class="close-cookie-banner" href="javascript:void(0);" onclick="removeMe();"><span>X</span></a></p>';
17    // Be advised the Close Banner 'X' link requires jQuery
18
19     bodytag.appendChild(div); // Adds the Cookie Law Banner just before the closing </body> tag
20    // or
21    //bodytag.insertBefore(div,bodytag.firstChild); // Adds the Cookie Law Banner just after the opening <body> tag
22
23    document.getElementsByTagName('body')[0].className+=' cookiebanner'; //Adds a class tothe <body> tag when the banner is visible
24
25    // Create the cookie
26}
27
28
29function createCookie(name,value,days) {
30    if (days) {
31        var date = new Date();
32        date.setTime(date.getTime()+(days*24*60*60*1000));
33        var expires = "; expires="+date.toGMTString();
34    }
35    else var expires = "";
36    if(window.dropCookie) {
37        document.cookie = name+"="+value+expires+"; path=/";
38    }
39}
40
41function checkCookie(name) {
42    var nameEQ = name + "=";
43    var ca = document.cookie.split(';');
44    for(var i=0;i < ca.length;i++) {
45        var c = ca[i];
46        while (c.charAt(0)==' ') c = c.substring(1,c.length);
47        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
48    }
49    return null;
50}
51
52function eraseCookie(name) {
53    createCookie(name,"",-1);
54}
55
56window.onload = function(){
57    if(checkCookie(window.cookieName) != window.cookieValue){
58        createDiv();
59    }
60}
61
62function removeMe(){
63
64    var element = document.getElementById('cookie-law');
65    element.parentNode.removeChild(element);
66    createCookie(window.cookieName,window.cookieValue, window.cookieDuration);
67}

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.