PageSourceSearch

https://railtracks.uk/js/cookie-monster/cm-body.js

js railtracks.uk collected 2026-10-03 18:59:53 UTC 2,329 bytes, 42 lines download raw bytes

1(function () {
2    if (document.cookie.indexOf('CM_cookieConsent=1') === -1) {
3        if (CM_cookieManager.isGdprZone()) {
4            var cookieAlert = document.createElement('div');
5            cookieAlert.style.cssText = 'position:fixed;left:0;right:0;bottom:0;padding:0.8em;background-color:lightgrey;font-size:0.9em;color:black;z-index:10000;';
6            var text = document.createTextNode("We don't use your private data for profiling or tracking. \
7            Storing of non-essential cookies on your device is prevented until you give us explicit consent. \
8            By continuing to browse this website you agree with our ");
9            cookieAlert.appendChild(text);
10            var link = document.createElement('a');
11            link.style.cssText = 'font-weight: bold;'
12            link.setAttribute('href', "/pages/privacy/");
13            link.appendChild(document.createTextNode('Privacy Policy.'));
14            cookieAlert.appendChild(link);
15
16            var btnWrapper = document.createElement('div');
17            btnWrapper.style.cssText = 'padding: 0.5em;';
18
19            var buttonConsent = document.createElement('div');
20            buttonConsent.appendChild(document.createTextNode('I CONSENT'));
21            buttonConsent.style.cssText = 'display: inline-block;border: 1px solid black;border-radius: 5px;cursor: pointer;margin-left: 1em;padding: 0.5em; font-weight: bold';
22            var iConsent = function () {
23                CM_cookieManager.consent(true);
24                document.body.removeChild(cookieAlert);
25            }
26            buttonConsent.onclick = function () { iConsent(); }
27            btnWrapper.appendChild(buttonConsent);
28
29            var buttonClose = document.createElement('div');
30            buttonClose.appendChild(document.createTextNode('CLOSE'));
31            buttonClose.style.cssText = 'display: inline-block;border: 1px solid gray;border-radius: 5px;cursor: pointer;color: gray;margin-left: 1em;padding: 0.5em';
32            var removeAlert = function () {
33                document.body.removeChild(cookieAlert);
34            }
35            buttonClose.onclick = function () { removeAlert(); }
36            btnWrapper.appendChild(buttonClose);
37
38            cookieAlert.appendChild(btnWrapper);
39            document.body.appendChild(cookieAlert);
40        }
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.