1function ncmActivateCookieBar() { 2 3 // no data available 4 if (typeof NCM_COOKIE_INFO_DATA == "undefined" || !NCM_COOKIE_INFO_DATA.impressum_link) { 5 return; 6 } 7 8 // check cookie 9 function readC(k){return(document.cookie.match('(^|; )'+k+'=([^;]*)')||0)[2]}; 10 try { 11 var NCMCOOKIEINFOREAD = readC("NCMCOOKIEINFOREAD")?true:false; 12 } catch (e) { 13 NCMCOOKIEINFOREAD = false; 14 } 15 16 // alread read 17 if (NCMCOOKIEINFOREAD) { 18 return; 19 } 20 21 // already added 22 if (document.getElementById('cookieBar') != null) { 23 return; 24 } 25 26 // add body class 27 document.getElementsByTagName('body')[0].className+=' cookiebarActive'; 28 29 var cookieBar = document.createElement("div"); 30 var infoDetail = document.createElement("span"); 31 infoDetail.id = "infoDetailText"; 32 infoDetail.appendChild(document.createTextNode(NCM_COOKIE_INFO_DATA.infotext_detail)); 33 cookieBar.id = "cookieBar"; 34 cookieBar.appendChild(document.createTextNode(NCM_COOKIE_INFO_DATA.infotext)); 35 cookieBar.appendChild(infoDetail); 36 cookieBar.appendChild(document.createElement("br")); 37 38 var okLink = document.createElement("a"); 39 okLink.className = "cookeOk"; 40 okLink.href = "#"; 41 okLink.innerHTML = NCM_COOKIE_INFO_DATA.buttontext; 42 okLink.onclick = function(event) { 43 try { 44 //var cookieBar = event.target.parentElement; 45 cookieBar.parentElement.removeChild(cookieBar); // cookieBar is defined outside the function 46 //Thu, 18 Dec 2013 12:00:00 UTC 47 var expireDate = new Date(); 48 expireDate.setDate(expireDate.getDate() + 10000); 49 document.cookie="NCMCOOKIEINFOREAD=1; expires="+expireDate.toUTCString()+"; path=/"; 50 document.getElementsByTagName('body')[0].className = document.getElementsByTagName('body')[0].className.replace(/cookiebarActive/, ''); 51 //remove margin from body 1-8-2018 52 document.getElementById('header').style.marginTop = '0px' ; 53 //for animation 1-8-2018 54 var allMyStyle = { 55 transition: 'all 1s ease' 56 }; 57 for (i in allMyStyle){ 58 document.getElementById('header').style[i] = allMyStyle[i]; 59 } 60 61 } catch(e) { 62 } 63 event.stopPropagation(); 64 return false; 65 } 66 cookieBar.appendChild(okLink); 67 68 var imprLink = document.createElement("a"); 69 imprLink.className = "cookieImpr"; 70 imprLink.href = NCM_COOKIE_INFO_DATA.impressum_link+'#cookie'; 71 imprLink.innerHTML = NCM_COOKIE_INFO_DATA.impressumbuttontext; 72 cookieBar.appendChild(imprLink); 73 74 //insert cookiebar firstchild in beforeend section 75 document.getElementsByTagName('body')[0].appendChild(cookieBar); 76 77 78 79 //insert the first element afer body 80 //var parentDiv2 = document.getElementsByTagName('body')[0]; 81 // var parentDiv1 = document.getElementById('specialCookie'); 82 // var theFirstChild = parentDiv1.firstChild; 83 // parentDiv1.insertBefore(cookieBar,theFirstChild); 84 85 //new display for cookiebar 1-8-2018 86 try { 87 var heightHeader = document.getElementById('cookieBar').clientHeight; 88 var withPx = heightHeader + 'px'; 89 document.getElementById('header').style.marginTop = withPx ; 90 } catch(e) { 91 } 92 93 94 95} 96 97 98if (typeof window.ncmCookieInfo == "function") { 99 window.ncmCookieInfo(); 100} else { 101 window.ncmCookieInfo = true; 102}
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.