A PHP Error was encountered

Severity: Warning

Message: opendir(/tmp): failed to open dir: Permission denied

Filename: drivers/Session_files_driver.php

Line Number: 360

Backtrace:

File: /www/htdocs/w019f8f1/cookietrust.eu/application/core/MY_Loader.php
Line: 283
Function: library

File: /www/htdocs/w019f8f1/cookietrust.eu/application/controllers/Script.php
Line: 11
Function: __construct

File: /www/htdocs/w019f8f1/cookietrust.eu/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/htdocs/w019f8f1/cookietrust.eu/system/core/Exceptions.php:271)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /www/htdocs/w019f8f1/cookietrust.eu/application/core/MY_Loader.php
Line: 283
Function: library

File: /www/htdocs/w019f8f1/cookietrust.eu/application/controllers/Script.php
Line: 11
Function: __construct

File: /www/htdocs/w019f8f1/cookietrust.eu/index.php
Line: 315
Function: require_once

var cookieTrust = { setCookie: function(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; var cliCookie = name + "=" + value + expires + "; path=/; SameSite=None; Secure"; document.cookie = cliCookie; }, unblock: function() { if (navigator.doNotTrack == 1) { return; } var ctconsent = (getCategoryCookie("ct_consent")) ? getCategoryCookie("ct_consent") : 'no'; categoryScripts.forEach(function(item) { if (ctconsent == 'yes' && (getCategoryCookie("ct_" + item.name) == 'yes')) { Array.prototype.push.apply(ct_WHITELIST, item.list); Array.prototype.push.apply(patterns.whitelist, item.list); } }); if (backupRemovedScripts.blacklisted && backupRemovedScripts.blacklisted.length < 1) { observer.disconnect(); } observer.disconnect(); let indexOffset = 0; _toConsumableArray(backupRemovedScripts.blacklisted).forEach(function(script, index) { if (script.src) { if (isOnWhitelist(script.src)) { if (script.type == 'javascript/blocked') { window.TYPE_ATTRIBUTE = 'text/javascript'; script.type = 'text/javascript'; const scriptNode = document.createElement('script'); scriptNode.src = script.src; scriptNode.type = 'text/javascript'; document.head.appendChild(scriptNode); backupRemovedScripts.blacklisted.splice(index - indexOffset, 1); indexOffset++; } else { var frames = document.getElementsByClassName("wt-cli-iframe-placeholder"); for (var i = 0; i < frames.length; i++) { if (script.src == frames.item(i).getAttribute('data-src')) { if (isOnWhitelist(script.src)) { var iframe = document.createElement('iframe'); var width = frames.item(i).offsetWidth; var height = frames.item(i).offsetHeight; iframe.src = script.src; iframe.width = width; iframe.height = height; frames.item(i).insertAdjacentHTML("beforebegin", iframe); frames.item(i).parentNode.removeChild(frames.item(i)); } } } } } } }); } }; start(); function start() { var xmlhttp = new XMLHttpRequest(); xmlhttp.open('GET', 'https://ipapi.co/json/', true); xmlhttp.onload = function() { if (this.status >= 200 && this.status < 400) { var data = JSON.parse(this.response); var clientIP = data.ip; sessionStorage.setItem("isEU", data.in_eu); var info = { "ip": clientIP.substring(0, clientIP.lastIndexOf('.')) + '.0', "country_code": data.country_code, "city": data.city, "region": data.region, "in_eu": data.in_eu }; sessionStorage.setItem("info", JSON.stringify(info, null, 2)); setTimeout(function() { var in_EU = sessionStorage.getItem('isEU'); if (cliConfig.options.geoTarget && in_EU == 'false') { categoryScripts.forEach(function(item) { Array.prototype.push.apply(window.ct_WHITELIST, item.list); Array.prototype.push.apply(patterns.whitelist, item.list); }); window.TYPE_ATTRIBUTE = 'text/javascript'; window.ct_BLACKLIST = []; cookieTrust.setCookie('ct_action', 'yes', 365); cookieTrust.setCookie('ct_consent', 'yes', 365); cookieTrust.setCookie('ct_functional', 'yes', 365); cookieTrust.setCookie('ct_preference', 'yes', 365); cookieTrust.setCookie('ct_statistic', 'yes', 365); cookieTrust.setCookie('ct_marketing', 'yes', 365); cookieTrust.setCookie('ct_unclassified', 'yes', 365); cookieTrust.unblock(); } else if (cliConfig.options.geoTarget) { if (document.getElementById('ct-consent')) { document.getElementById('ct-consent').style.display = 'block'; } } }, 3000); } } xmlhttp.send(); var xmlhttp2 = new XMLHttpRequest(); var data1 = new FormData(); data1.append('key', '3c74ec9ee9cca33a2ee0cb8731f35d71'); xmlhttp2.open('POST', 'https://cookietrust.eu/app/count', true); xmlhttp2.onload = function() { if (this.status >= 200 && this.status < 400) { var resp = this.response; } } xmlhttp2.send(data1); }; function randomString(length) { var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz'.split(''); if (!length) { length = Math.floor(Math.random() * chars.length); } var str = ''; for (var i = 0; i < length; i++) { str += chars[Math.floor(Math.random() * chars.length)]; } return str; } var cliConfig = { "options": { "consentType": "explicit", "consentBarType": "standart", "showCategoryDirectly": false, "geoTarget": false, "template": { "detailType": "sticky", "css": ".ct-consent-bar,.ct-consent-bar *,.ct-consent-bar-trigger,.ct-consent-bar-trigger *,.ct-modal,.ct-modal *{box-sizing:border-box; font-size:14px; line-height: normal;}.ct-consent-bar :focus,.ct-consent-bar-trigger :focus,.ct-modal :focus{outline:0}.ct-consent-bar-trigger{position:fixed;right:30px;padding:2px 5px;cursor:pointer;animation:slide-up .4s ease;z-index:99997}.ct-consent-bar{font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';position:fixed;z-index:99997;font-size:14px}.ct-consent-bar .ct-banner-title{margin-top:0;margin-bottom:12px;font-weight:500}.ct-consent-bar p{margin-bottom:0;margin-top:0;text-align:left;}.ct-detail-wrapper{margin-top:15px}.ct-btn{cursor:pointer;display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;transition:all .15s ease-in-out;margin:0;min-height:auto;font-weight:400}.ct-btn-custom-accept{font-weight:600;float:right}.ct-consent-bar .ct-btn{margin-right:15px;border:1px solid;font-size:14px}.ct-button-wrapper .ct-btn:last-child{margin-right:0}.ct-btn-readMore{cursor:pointer;text-decoration:underline;margin-left:3px}.ct-category-direct{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-top:15px;margin-top:15px;border-top:1px solid #d4d8df}.ct-category-direct .ct-btn-custom-accept{margin:0 0 0 auto}.ct-category-direct-item{display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:32px;margin-bottom:15px}.ct-category-direct-item:last-child{margin-right:0}.ct-category-direct-item .ct-switch{margin-left:0}.ct-category-direct-item .ct-category-direct-name{margin-left:10px;font-weight:600}.ct-category-direct+.ct-detail-wrapper{margin-top:10px}.ct-container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.ct-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.ct-align-items-stretch{-ms-flex-align:stretch;align-items:stretch}.ct-d-flex{display:-ms-flexbox;display:flex}.ct-px-0{padding-left:0;padding-right:0}.ct-btn:hover{opacity:.8}.ct-btn:focus{outline:0}.ct-table-wrapper{width:100%;max-width:100%;overflow:auto}.ct-cookie-audit-table{border-collapse:collapse;width:100%;margin-top:10px}.ct-cookie-audit-table th{background-color:#efefef;border:1px solid #cbced6}.ct-cookie-audit-table td{border:1px solid #d5d8df}.ct-cookie-audit-table td,.ct-cookie-audit-table th{text-align:left;padding:10px;color:#000;word-break:normal}.ct-consent-bar{padding:15px;width:100%;box-shadow:0 -1px 10px 0 rgba(172,171,171,.3)}.ct-consent-title{font-weight:bold;margin-top:0;margin-bottom:10px;text-align:left;}.ct-content-wrapper{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;justify-content:space-between;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.ct-consent-bar p{font-weight:400;color:rgb(0,0,0);}.ct-consent-bar p a{color:rgb(0,0,0);}.ct-consent-bar p a:hover{color:rgb(0,0,0);}.ct-button-wrapper{margin-left:20px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;flex-wrap:nowrap}@media (max-width:991px){.ct-button-wrapper,.ct-consent-bar,.ct-consent-bar p,.ct-content-wrapper{display:block;color:rgb(0,0,0);}.ct-button-wrapper{margin-left:0;margin-top:20px}}.ct-btn{font-weight:500;padding:.5rem 1rem}@media (min-width:992px){.ct-consent-bar .ct-btn-reject{margin-right:85px}}.ct-col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.ct-col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.ct-btn-readMore{cursor:pointer;text-decoration:underline;margin-left:3px}.ct-modal-open{overflow:hidden}.ct-modal-open .ct-modal{overflow-x:hidden;overflow-y:auto}.ct-modal.ct-fade .ct-modal-dialog{transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-25%);transform:translate(0,-25%)}.ct-modal.ct-show .ct-modal-dialog{-webkit-transform:translate(0,0);transform:translate(0,0)}.ct-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;background-color:rgba(10,10,10,.22);display:none}.ct-modal-backdrop.ct-fade{opacity:0}.ct-modal-backdrop.ct-show{opacity:1;display:block}.ct-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;display:none;overflow:hidden;outline:0;min-height:calc(100% - (.5rem * 2))}.ct-modal.ct-show{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ct-modal a{text-decoration:none}.ct-modal .ct-modal-dialog{position:relative;max-width:calc(100% - 16px);width:calc(100% - 16px);margin:.5rem;pointer-events:none;font-weight:400;color:#212529;text-align:left;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;box-shadow:0 10px 20px 0 rgba(0,0,0,.17);-webkit-box-shadow:0 10px 20px 0 rgba(0,0,0,.17)}@media (min-width:576px){.ct-modal .ct-modal-dialog{max-width:500px;width:500px;margin:1.75rem auto}.ct-modal{min-height:calc(100% - (1.75rem * 2))}}@media (min-width:992px){.ct-modal .ct-modal-dialog{max-width:900px;width:900px}}.ct-modal-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;pointer-events:auto;background-clip:padding-box;border:0;overflow:hidden;outline:0;margin:30px}.ct-modal .ct-row{margin:0 -15px}.ct-modal .ct-modal-close{z-index:1;padding:0;background-color:transparent;border:0;-webkit-appearance:none;color:#9a9a9a;cursor:pointer;min-height:auto;position:absolute;top:12px;right:20px}.ct-modal .ct-close:focus{outline:0}.ct-switch-wrapper{margin-top:30px;padding-top:22px;border-top:1px solid #f3f4f8;display:-ms-flexbox;display:flex;align-items:center;-webkit-align-items:center;justify-content:space-between;height:90px}.ct-switch{position:relative;min-height:13px;padding-left:25px;margin-left:10px;margin-bottom:0;display:inline-block}.ct-switch input[type=checkbox]{display:none!important}.ct-switch .ct-slider{background-color:#e3e1e8;height:13px;width:25px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;transition:.4s}.ct-switch .ct-slider:before{background-color:#fff;bottom:2px;content:'';height:9px;left:2px;position:absolute;transition:.4s;width:9px}.ct-switch input:checked+.ct-slider{background-color:#09b439}.ct-switch input:disabled+.ct-slider{cursor:initial}.ct-switch input:checked+.ct-slider:before{transform:translateX(12px)}@media (max-width:767px){.ct-tab-content{padding-left:15px}}.ct-fade{transition:opacity .15s linear}.ct-tab{border-radius:6px;border:1px solid #efefef;display:-ms-flexbox;display:flex;overflow:hidden}.ct-tab-menu{flex:0 0 25%;max-width:25%}@media (max-width:991px){.ct-tab-menu{flex:0 0 40%;max-width:40%}}.ct-tab-content{flex:0 0 75%;max-width:75%;background:0 0;padding:0 20px 0}@media (max-width:991px){.ct-tab-content{flex:0 0 60%;max-width:60%}}@media (max-width:767px){.ct-tab-content{padding:15px}}.ct-tab-content .ct-tab-content-item{width:100%}.ct-tab-content .ct-tab-content-item:not(.ct-tab-content-active){display:none}.ct-fade{transition:opacity .15s linear}.ct-tab-item{padding:.5rem 1.5rem;cursor:pointer;font-weight:400;border-bottom:1px solid;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.ct-tab-item{padding:.75rem .75rem}}.ct-tab-item-active{cursor:initial;border-right:0;text-align:left;}.ct-tab-content .ct-tab-desc{height:210px;max-height:210px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:15px 0}.ct-tab-title{margin-top:0;margin-bottom:11px;font-weight:700;display:flex;align-items:center;color:rgb(0,0,0);}.ct-modal .ct-powered-link{background:#efefef;padding:13px 32px;color:#a1a1a1;font-weight:500}.ct-modal .ct-powered-link a{font-weight:700;color:#a1a1a1}.p10{padding:10px;height:212px;max-height:212px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;border:1px solid #efefef;border-radius:6px}.tab-menu{margin-bottom:1rem;border-bottom:1px solid #efefef;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.tab-menu li{border:1px solid transparent;border-top-left-radius:6px;border-top-right-radius:6px;padding:8px 15px;margin-bottom:-1px;font-weight:500}.tab-menu li.tab-menu-item-active{color:#495057;background-color:#fff;border-color:#efefef #efefef #fff}.tab-content{display:none;padding:15px}.tab-menu-content-active{display:block}.accept-button{display:inline-block;text-align:right}.poweredby{float:left}#ct-footer{margin:10px 0}.ct-btn-privacy{margin-top:15px}.ct-modal-close{font-weight:700}.ctt-tab-menu{margin-bottom:1rem;border-bottom:1px solid #efefef;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none;color:rgb(0,0,0);}.ctt-tab-menu li{border:1px solid transparent;border-top-left-radius:6px;border-top-right-radius:6px;padding:8px 15px;margin-bottom:-1px;font-weight:500;margin-left:0}.ctt-tab-menu li.ctt-tab-menu-item-active{color:#495057;background-color:#fff;border-color:#efefef #efefef #fff}.ctt-tab-content{display:none;padding:15px}.ctt-tab-menu-content-active{display:block;text-align:left;}.ct-consent-bar .ct-consent-bar-close{z-index:1;padding:0;background-color:transparent;border:0;-webkit-appearance:none;cursor:pointer;min-height:auto;position:absolute;top:12px;right:20px;font-weight:700}.poweredby {display: flex; align-items: center;} .poweredby a{vertical-align: -webkit-baseline-middle;}.ct-consent-bar, .ct-modal-dialog{ background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border-width: 1px; border-style: solid; border-color: rgb(255, 255, 255) } .ct-modal .ct-modal-close {color: rgb(0, 0, 0);}.ctt-tab-menu {border-color:rgb(239, 239, 239)} .ctt-tab-menu li.ctt-tab-menu-item-active{color: rgb(73, 80, 87); background-color: rgb(255, 255, 255); border-color:rgb(239, 239, 239) rgb(239, 239, 239) rgb(255, 255, 255);}.ctt-tab-container { background-color: rgb(255, 255, 255); border: 1px solid rgb(239, 239, 239); border-top: none; color: rgb(73, 80, 87); }.ct-tab, .p10 { border-color: rgb(239, 239, 239) } .ct-tab-item { border-color: rgb(239, 239, 239); }.ct-category-direct{border-color: rgb(239, 239, 239)}.ct-cookie-audit-table td, .ct-cookie-audit-table th{ background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border-color: rgb(225, 225, 225)}.ct-btn-accept{background-color: rgb(116, 119, 124); border-color:rgb(116, 119, 124) !important; color: rgb(255, 255, 255);}.ct-btn-reject{background-color: rgb(116, 119, 124); border-color:rgb(116, 119, 124) !important; color: rgb(255, 255, 255);}.ct-btn-settings{background-color: rgba(255, 255, 255, 0); border-color:rgba(255, 255, 255, 0) !important; color: rgb(127, 127, 127);}.ct-btn-custom-accept{background-color: rgb(116, 119, 124); border-color:rgb(116, 119, 124) !important; color: rgb(255, 255, 255);}.ct-btn-privacy, .ct-btn-privacy:hover, .ct-btn-privacy:active, .ct-btn-privacy:visited {background-color: transparent; border-color:transparent !important; color: rgb(0, 0, 0) !important; text-decoration: underline; margin-top: 20px; padding: 0; font-weight: 400;}.ct-tab-menu{ background-color: rgb(237, 237, 237); color: rgb(0, 0, 0); } .ct-cookie-audit-table th { background-color: rgb(237, 237, 237); color: rgb(0, 0, 0); border-color: rgb(225, 225, 225) }.ct-tab-content{ background-color: rgb(255, 255, 255); color: rgb(0, 0, 0) }.ct-tab-item-active{ background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);border-color: rgb(255, 255, 255) }.ct-btn-readMore{color: rgb(127, 127, 127);}.ct-modal.ct-show{ background-color: rgba(0, 0, 0, 0.5); }" }, "customCss": "", "position": "bottom", "content": {"title":{en:"Cookie consent",de:"Cookie Zustimmung",tr:"\u00c7erez Onay\u0131"},"description":{en:"We use cookies on our website to optimize content and offers. Some functions of this website require your consent in order to function properly. You can accept all cookies by clicking on \"Accept all Cookies\", only accept necessary cookies by clicking on \"Necessary Cookies Only\", or make individual settings by clicking on \"Settings\". By using this website, you give your consent to the necessary cookies in any case. You can change your cookie settings at any time by clicking on the lock symbol button on the side of the page.",de:"Auf unserer Website verwenden wir Cookies, um Inhalte und Angebote zu optimieren. Einige Funktionen dieser Website ben\u00f6tigen Ihre Zustimmung, um einwandfrei zu funktionieren. Sie k\u00f6nnen durch Klick auf \u201eAlle Cookies zulassen\u201c alle Cookies akzeptieren, durch Klick auf \u201eNur notwendige Cookies akzeptieren\u201c nur notwendige Cookies akzeptieren, oder durch Klick auf \"Einstellungen\" individuelle Einstellungen vornehmen. Durch Nutzung dieser Website geben Sie in jedem Fall Ihre Einwilligung zu den notwendigen Cookies. Die Einwilligungserkl\u00e4rung (des Nutzers, bzw. dessen Ger\u00e4t) wird gespeichert, um deren Abfrage nicht erneut wiederholen zu m\u00fcssen und die Einwilligung entsprechend der gesetzlichen Verpflichtung nachweisen zu k\u00f6nnen. Sie k\u00f6nnen Ihre Cookie Einstellungen jederzeit durch Klick auf das Schloss Symbol Button am Seitenrand anpassen, verwalten und widerrufen. ",tr:"\u0130\u00e7eri\u011fi ve reklamlar\u0131 ki\u015fiselle\u015ftirmek, sosyal medya \u00f6zellikleri sunmak ve trafi\u011fi analiz etmek i\u00e7in \u00e7erezler kullan\u0131yoruz. Sitemizi kullan\u0131m\u0131n\u0131zla ilgili bilgileri ayr\u0131ca sosyal medya, reklamc\u0131l\u0131k ve analiz i\u015f ortaklar\u0131m\u0131zla payla\u015fabiliriz. \u0130\u015f ortaklar\u0131m\u0131z, bu bilgileri kendilerine sa\u011flad\u0131\u011f\u0131n\u0131z veya hizmetlerini kullan\u0131rken toplad\u0131klar\u0131 di\u011fer bilgilerle birle\u015ftirebilir. Web sitemizi kullanmaya devam ederseniz \u00e7erezlerimizi kabul edersiniz."},"button_save":{en:"Save",de:"Speichern",tr:"Kabul Ediyorum"},"button_custom_accept":{en:"Save",de:"Speichern",tr:"Kaydet"},"notice_toggler":{en:"Privacy Details",de:"Details zum Datenschutz",tr:"\u00c7erez Ayarlar\u0131"},"tab_cookies":{en:"Cookie Preferences",de:"Cookie-Einstellungen",tr:"\u00c7erezler"},"tab_privacy_policy":{"title":{en:"Privacy Policy",de:"Datenschutz",tr:"Gizlilik Politikas\u0131"},"description":{en:"You can see more information in our privacy policy.",de:"N\u00e4here Hinweise erhalten Sie in unserer Datenschutzerkl\u00e4rung.",tr:"Gizlilik s\u00f6zle\u015fmesi sayfas\u0131m\u0131zda daha fazla bilgi bulabilirsiniz."},"link":"https:\/\/www.schwanen-apotheke-ab.de\/datenschutz\/"},"buttons":{"accept":{en:"Accept All Cookies",de:"Alle Cookies zulassen",tr:"T\u00fcm \u00c7erezleri Onayla"},"reject":{en:"Accept Only Necessary Cookies",de:"Nur notwendige Cookies akzeptieren",tr:"Sadece Gerekli \u00c7erezleri Onayla"},"settings":{en:"Preferences",de:"Einstellungen",tr:"Tercihler"},"read_more":{en:"read more",de:"noch mehr",tr:"daha fazla g\u00f6ster"}},"links":{"privacy":{"title":{en:"Privacy Policy",de:"Datenschutz",tr:"Gizlilik Politikas\u0131"},"link":"https:\/\/www.schwanen-apotheke-ab.de\/datenschutz\/"},"imprint":{"title":{en:"Imprint",de:"Impressum",tr:"K\u00fcnye"},"link":"https:\/\/www.schwanen-apotheke-ab.de\/impressum\/"}},"disabled_category":{en:"This category must be selected. Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.",de:"Diese Kategorie kann nicht geschlossen werden. Die erforderlichen Cookies helfen einer Website, verf\u00fcgbar zu werden, indem grundlegende Funktionen wie die Seitennavigation und der Zugriff auf die sicheren Bereiche der Website aktiviert werden. Die Website kann ohne diese Cookies nicht richtig funktionieren.",tr:"Bu kategoriyi kapatamazs\u0131n\u0131z. Gerekli \u00e7erezler, sayfa gezintisi ve web sitesinin g\u00fcvenli alanlar\u0131na eri\u015fim gibi temel i\u015flevleri etkinle\u015ftirerek bir web sitesini kullan\u0131labilir hale getirmeye yard\u0131mc\u0131 olur. Web sitesi bu \u00e7erezler olmadan d\u00fczg\u00fcn \u00e7al\u0131\u015famaz."},"blocked_content":{en:"This content is only displayed \u003Cbr\u003E when you accept the relevant cookies.",de:"Dieser Inhalt wird erst angezeigt,\u003Cbr\u003E sobald Sie die entsprechenden Cookies akzeptieren.",tr:"Bu i\u00e7erik yaln\u0131zca ilgili \u00e7erezleri \u003Cbr\u003Ekabul etti\u011finizde g\u00f6r\u00fcnt\u00fclenir."},"table":{"column_name":{en:"Name",de:"Name",tr:"Ad"},"column_description":{en:"Description",de:"Beschreibung",tr:"A\u00e7\u0131klama"},"column_provider":{en:"Provider",de:"Anbieter",tr:"Sa\u011flay\u0131c\u0131"},"column_expiry":{en:"Duration",de:"Dauer",tr:"S\u00fcre"},"column_type":{en:"Type",de:"Typ",tr:"T\u00fcr\u00fc"}}}, "display": { "notice": true, "buttons": { "accept": true, "settings": true, "reject": true, }, "links": { "privacy_policy": true, "imprint": true, }, "noticeToggler": true }, "behaviour": { "reload": true, "acceptOnScroll": false, "defaultConsent": false, "showLogo": true, "showAuditTable": true, "selectedLanguage": "de" } }, "info": {"categories": [{"id":1,"slug":"necessary","order":1,"name":{en:"Necessary",de:"Notwendig",tr:"Gerekli"},"description":{en:"Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.",de:"Diese Cookies sind f\u00fcr das Funktionieren der Website erforderlich und k\u00f6nnen nicht ausgeschaltet werden.",tr:"Gerekli \u00e7erezler, sayfada gezinme ve web sitesinin g\u00fcvenli alanlar\u0131na eri\u015fim gibi temel i\u015flevleri sa\u011flayarak web sitesinin daha kullan\u0131\u015fl\u0131 hale getirilmesine yard\u0131mc\u0131 olur. Web sitesi bu \u00e7erezler olmadan do\u011fru bir \u015fekilde i\u015flev g\u00f6steremez."},"cookies":[{"id":937,"cookie_id":"fe_typo_user","description":{en:"This session cookie is used to determine frontend user and enables you to visit all pages in a login area.",de:"Session-Cookie f\u00fcr das Typo3-Benutzer-Management. Dieser Cookie ist nur f\u00fcr die Webadministratoren relevant. Es werden keine personenbezogenen Daten verarbeitet.",tr:"Bu oturum \u00e7erezi, \u00f6n u\u00e7 kullan\u0131c\u0131s\u0131n\u0131 belirlemek i\u00e7in kullan\u0131l\u0131r ve bir giri\u015f alan\u0131ndaki t\u00fcm sayfalar\u0131 ziyaret etmenizi sa\u011flar."},"duration":{en:"Session",de:"Session",tr:"Oturum"},"type":"https","domain":"www.schwanen-apotheke-ab.de"},{"id":1,"cookie_id":"ct_consent","description":{en:"Unique identifier for visitors used by Cookit Trust with respect to the consent.\u003Cbr\u003E\r\nipapi.co for geotargeting purposes.",de:"Eindeutige Kennung f\u00fcr Besucher, die von Cookie Trust in Bezug auf die Einwilligung verwendet werden. \u003Cbr\u003E\r\nipapi.co f\u00fcr Geotargeting-Zwecke.",tr:"Bu \u00e7erez Cookit Trust taraf\u0131ndan kullan\u0131l\u0131r ve ziyaret\u00e7iler i\u00e7in benzersiz tan\u0131mlay\u0131c\u0131 olarak kullan\u0131l\u0131r."},"duration":{en:"1 year",de:"1 Jahr",tr:"1 y\u0131l"},"type":"https","domain":"schwanen-apotheke-ab.deaa"},{"id":2,"cookie_id":"ct_id","description":{en:null,de:"Dieses Cookie wird von Cookie Trust gesetzt, um die Zustimmung des Benutzers zur Verwendung von Cookies auf der Website zu speichern.",tr:"Bu \u00e7erez Cookie Trust taraf\u0131ndan ayarlan\u0131r ve kullan\u0131c\u0131n\u0131n web sitesinde \u00e7erez kullan\u0131m\u0131na ili\u015fkin onay\u0131n\u0131 hat\u0131rlayacak \u015fekilde kullan\u0131l\u0131r."},"duration":{en:null,de:"1 Jahr",tr:"1 y\u0131l"},"type":"https","domain":"schwanen-apotheke-ab.deaa"},{"id":3,"cookie_id":"ct_necessary","description":{en:null,de:"Dieses Cookie wird von Cookie Trust gesetzt und dient dazu, die Zustimmung der Benutzer zur Verwendung von Cookies in der Kategorie \"Notwendig\" zu speichern.",tr:"Bu \u00e7erez Cookie Trust taraf\u0131ndan ayarlan\u0131r ve \"Gerekli\" kategorisindeki \u00e7erezlerin kullan\u0131m\u0131na ili\u015fkin kullan\u0131c\u0131 onay\u0131n\u0131 saklamak i\u00e7in kullan\u0131l\u0131r."},"duration":{en:null,de:"1 Jahr",tr:"1 y\u0131l"},"type":"https","domain":"schwanen-apotheke-ab.deaa"},{"id":4,"cookie_id":"ct_functional","description":{en:null,de:"Dieses Cookie wird von Cookie Trust gesetzt und dient dazu, die Zustimmung der Benutzer zur Verwendung von Cookies in der Kategorie \"Funktional\" zu speichern.",tr:"Bu \u00e7erez Cookie Trust taraf\u0131ndan ayarlan\u0131r ve \"Fonksiyonel\" kategorisindeki \u00e7erezlerin kullan\u0131m\u0131na ili\u015fkin kullan\u0131c\u0131 onay\u0131n\u0131 saklamak i\u00e7in kullan\u0131l\u0131r."},"duration":{en:null,de:"1 Jahr",tr:"1 y\u0131l"},"type":"https","domain":"schwanen-apotheke-ab.deaa"}],"scripts":[],"type":1,"active":1,"defaultConsent":1},{"id":2,"slug":"functional","order":2,"name":{en:"Functional",de:"Funktional",tr:"Fonksiyonel"},"description":{en:"Functional cookies enable a website to improve functionality and personalization. They can be determined by us or by third parties whose services we have added to our pages. If you do not allow these cookies, some or all of these services may not work properly.",de:"Diese Cookies erm\u00f6glichen der Website eine verbesserte Funktionalit\u00e4t und Personalisierung. Sie k\u00f6nnen von uns oder von Drittanbietern festgelegt werden, deren Dienste wir unseren Seiten hinzugef\u00fcgt haben. Wenn Sie diese Cookies nicht zulassen, funktionieren einige oder alle dieser Dienste m\u00f6glicherweise nicht ordnungsgem\u00e4\u00df.",tr:"Bu \u00e7erezler web sitesinin i\u015flevselli\u011fi ve ki\u015fiselle\u015ftirmeyi geli\u015ftirmesini sa\u011flar. Bunlar bizim taraf\u0131m\u0131zdan veya sayfalar\u0131m\u0131za hizmetlerini ekledi\u011fimiz \u00fc\u00e7\u00fcnc\u00fc taraflarca belirlenebilir. Bu \u00e7erezlere izin vermezseniz, bu hizmetlerin baz\u0131lar\u0131 veya t\u00fcm\u00fc d\u00fczg\u00fcn \u00e7al\u0131\u015fmayabilir."},"cookies":[{"id":847,"cookie_id":"Google Maps","description":{en:"Google set a number of cookies on any page that includes a Google Map. While we have no control over the cookies set by Google, they appear to include a mixture of pieces of information to measure the number and behaviour of Google Maps users.",de:"Google setzt auf jeder Seite, die eine Google Map enth\u00e4lt, eine Reihe von Cookies. Wir haben keine Kontrolle \u00fcber die von Google gesetzten Cookies, sie scheinen jedoch eine Mischung aus Informationen zu enthalten, um die Anzahl und das Verhalten von Google Maps-Nutzern zu messen.",tr:"-"},"duration":{en:"10 years",de:"10 Jahre",tr:"10 y\u0131l"},"type":null,"domain":"google.com"}],"scripts":[],"type":0,"active":1,"defaultConsent":0}]} }; var cookieTrustID = btoa(randomString(32)); window.addEventListener('load', function() { Element.prototype.remove = function() { this.parentElement.removeChild(this); } NodeList.prototype.remove = HTMLCollection.prototype.remove = function() { for (var i = this.length - 1; i >= 0; i--) { if (this[i] && this[i].parentElement) { this[i].parentElement.removeChild(this[i]); } } } var options = cliConfig.options; var content = options.content; var display = options.display; var info = cliConfig.info; var categories = info.categories; var template = options.template; var colors = options.colors; var behaviour = options.behaviour; var selectedLanguage = behaviour.selectedLanguage; if (document.documentElement.lang == "de") { if ((document.documentElement.lang !== '') || (document.documentElement.lang !== undefined) || (document.documentElement.lang !== null)) { var siteLanguage = document.documentElement.lang; var remove_after = siteLanguage.indexOf('-'); if (remove_after >= 1) { siteLanguage = siteLanguage.substring(0, remove_after); } if (content.title[siteLanguage] !== undefined) { var selectedLanguage = siteLanguage; } } } var position = options.position; var head = document.head || document.getElementsByTagName('head')[0]; var body = document.body || document.getElementsByTagName('body')[0]; var css = template.css + options.customCss; var style = document.createElement('style'); head.appendChild(style); style.type = 'text/css'; style.setAttribute('id', 'ct-style'); if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } var cookie = { ACCEPT_COOKIE_EXPIRE: 365, set: function(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; var cliCookie = name + "=" + value + expires + "; path=/; SameSite=None; Secure"; document.cookie = cliCookie; }, read: function(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; }, erase: function(name) { this.set(name, "", -1); }, exists: function(name) { return (this.read(name) !== null); } }; var bannerFunctions = { "accept": function() { acceptCookies("all"); }, "reject": function() { rejectCookies(); }, "settings": function() { switch (template.detailType) { case "sticky": showHideStickyDetail(); break; case "popup": showPopupDetail(); } } } var positionValue = { "bottom": { "top": "auto", "right": "0", "bottom": "0", "left": "auto" }, "top": { "top": "0", "right": "0", "bottom": "auto", "left": "auto" }, "bottom-left": { "top": "auto", "right": "auto", "bottom": "20px", "left": "20px" }, "bottom-right": { "top": "auto", "right": "20px", "bottom": "20px", "left": "auto" }, "top-left": { "top": "20px", "right": "auto", "bottom": "auto", "left": "20px" }, "top-right": { "top": "20px", "right": "20px", "bottom": "auto", "left": "auto" } } function getById(element) { return document.getElementById(element); } function getByClass(element) { return document.getElementsByClassName(element); } if (options.display.notice) { if (cookie.read("ct_action") === '') { if (cookie.read('ct_id') === '') { cookie.set('ct_id', cookieTrustID, cookie.ACCEPT_COOKIE_EXPIRE); } renderBanner(); setInitialCookies(); } else { if (display.noticeToggler) { showToggler(); } } } if ((cookie.read("ct_consent") === 'yes')) { checkAndInsertScripts(info.categories); } function renderBanner() { if(document.getElementById("ct-consent-toggler")) { removeElement("ct-consent-toggler"); body.insertAdjacentHTML('beforeend', '
'); } createBanner(); appendText(); if (options.showCategoryDirectly) { renderCategoryBar(); } renderButtons(); } function createBanner() { var closeBar = ''; if(document.getElementById("ctconsenttoggler")) { closeBar = closeBar; var consentBar = ''; body.insertAdjacentHTML('beforeend', consentBar); getById("ctBarClose").onclick = closectBar; } else { var consentBar = ''; body.insertAdjacentHTML('beforeend', consentBar); } document.getElementById('ct-consent').style.display = 'block'; ctConsentBar = getById("ct-consent"); ctConsentBar.style.top = positionValue[position].top; ctConsentBar.style.right = positionValue[position].right; ctConsentBar.style.bottom = positionValue[position].bottom; ctConsentBar.style.left = positionValue[position].left; if (cliConfig.options.geoTarget && cookie.read("ct_action") !== 'yes') { document.getElementById('ct-consent').style.display = 'none'; } } function closectBar(){ showToggler(); } function appendText() { if ((content.title[selectedLanguage] !== null) && (/\S/.test(content.title[selectedLanguage]))) { var consentTitle = ''; getById("ct-consent").insertAdjacentHTML('afterbegin', consentTitle); } var show_privacy_policy = ''; var show_imprint = ''; if(display.links.privacy_policy) { if(content.links.privacy.link) { show_privacy_policy = ''+content.links.privacy.title[selectedLanguage]+''; } } if(display.links.imprint) { if(content.links.imprint.link) { show_imprint = ''+content.links.imprint.title[selectedLanguage]+''; } } var consentText = '

' + content.description[selectedLanguage] + ' '+ show_privacy_policy + ' '+ show_imprint +'

'; getById("ct-consent").getElementsByClassName("ct-content-wrapper")[0].insertAdjacentHTML('beforeend', consentText); } function renderCategoryBar() { var categoryDirectList = '
'; if (options.consentBarType === 'boxed') { getById("ct-consent").getElementsByClassName("ct-bar-text")[0].insertAdjacentHTML('afterend', categoryDirectList); } else { getById("ct-consent").getElementsByClassName("ct-content-wrapper")[0].insertAdjacentHTML('afterend', categoryDirectList); } for (var i = 0; i < categories.length; i++) { var category = categories[i]; var categoryBarItem = '
' + category.name[selectedLanguage] + '
' getById("ct-category-direct").insertAdjacentHTML('beforeend', categoryBarItem); createSwitches(category); } } function renderButtons() { ctConsentBar.getElementsByClassName("ct-content-wrapper")[0].insertAdjacentHTML('beforeend', '
'); for (var key in display.buttons) { if (display.buttons[key]) { if (key === "readMore") { var privacyLink = content.privacy_policy_link.trim().replace(/\s/g, ''); if (/^(:\/\/)/.test(privacyLink)) { privacyLink = 'http' + privacyLink + ''; } if (!/^(f|ht)tps?:\/\//i.test(privacyLink)) { privacyLink = 'http://' + privacyLink + ''; } if(privacyLink == null) { privacyLink = '/datenschutz/'; } var button = '' + content.buttons.read_more[selectedLanguage] + ''; getByClass("ct-bar-text")[0].insertAdjacentHTML('beforeend', button); } else { var button = ''; if (key === "settings") { getById("ct-btn-accept").insertAdjacentHTML('beforebegin', button); } else { getByClass("ct-button-wrapper")[0].insertAdjacentHTML('beforeend', button); } getById("ct-btn-" + key + "").onclick = bannerFunctions[key]; } if (key === "settings") { switchStickyOrPopup(); } } } } function switchStickyOrPopup() { switch (template.detailType) { case "sticky": getById("ct-btn-settings").style.borderColor = "transparent"; renderStickyDetail(); break; case "popup": renderPopupDetail(); } } function renderStickyDetail() { var privacyLink = content.tab_privacy_policy.link; if(privacyLink == null) { privacyLink = '/datenschutz/'; } var tabmenuitemActive = 'ctt-tab-menu-item-active'; var tabmenucontentActive = 'ctt-tab-menu-content-active'; var ctDetailWrapper = '
\ \
\
\
\
\ \
'; getById("ct-consent").insertAdjacentHTML('beforeend', ctDetailWrapper); var tab1 = '
\
\
'; var tab2 = '
\
' + content.tab_privacy_policy.description[selectedLanguage] + '
\ ' + content.tab_privacy_policy.title[selectedLanguage] + '\
'; getById("ctt-tab1").insertAdjacentHTML('beforeend', tab1); getById("ctt-tab2").insertAdjacentHTML('beforeend', tab2); var ctTabmenu = getByClass('ctt-tab-menu-item'); for (var i = 0; i < ctTabmenu.length; i++) { ctTabmenu[i].onclick = function() { currentActiveTabmenu = getByClass("ctt-tab-menu-item-active")[0]; currentActiveTabmenu.classList.remove("ctt-tab-menu-item-active"); this.classList.add("ctt-tab-menu-item-active"); getByClass("ctt-tab-menu-content-active")[0].classList.remove("ctt-tab-menu-content-active"); var tabmenuId = this.getAttribute("tab-target"); getById(tabmenuId).className += ' ctt-tab-menu-content-active'; } } for (var i = 0; i < categories.length; i++) { var category = categories[i]; var itemActive = (i === 0) ? 'ct-tab-item-active' : ''; var contentActive = (i === 0) ? 'ct-tab-content-active' : ''; var ctTabItem = '
' + category.name[selectedLanguage] + '
'; var ctTabContentItem = '
\
\

' + category.name[selectedLanguage] + '

\ ' + category.description[selectedLanguage] + '
\
'; getById("ct-tab-menu").insertAdjacentHTML("beforeend", ctTabItem); getById("ct-tab-content").insertAdjacentHTML("beforeend", ctTabContentItem); if (!options.showCategoryDirectly) { createSwitches(category); } if (behaviour.showAuditTable) { renderAuditTable(category); } } var ctTabs = getByClass('ct-tab-item'); for (var i = 0; i < ctTabs.length; i++) { ctTabs[i].onclick = function() { currentActiveTab = getByClass("ct-tab-item-active")[0]; currentActiveTab.classList.remove("ct-tab-item-active"); this.classList.add("ct-tab-item-active"); getByClass("ct-tab-content-active")[0].classList.remove("ct-tab-content-active"); var tabId = this.getAttribute("tab-target"); getById(tabId).className += ' ct-tab-content-active'; } } if (behaviour.showLogo) { var ctPoweredLink = '
Powered by Cookie Trust
'; getById("ct-footer").insertAdjacentHTML('beforeend', ctPoweredLink); } var customAcceptButton = ''; if (options.showCategoryDirectly) { getById("ct-category-direct").insertAdjacentHTML('beforeend', customAcceptButton); } else { getById("ct-footer").insertAdjacentHTML('beforeend', customAcceptButton); } getById("ct-btn-custom-accept").onclick = function() { acceptCookies("customAccept"); if(display.noticeToggler === false) { getByClass("ct-modal-backdrop")[0].classList.remove("ct-show"); } } getById("ct-detail-wrapper").style.display = "none"; } function createSwitches(category) { var cookieStatus = cookie.read('ct_' + category.slug); var ctSwitchStatus; if (cookieStatus === '') { if (JSON.parse(category.defaultConsent)) { ctSwitchStatus = "checked"; } else { ctSwitchStatus = ''; } } else { if (cookieStatus === "yes") { ctSwitchStatus = "checked"; } else { ctSwitchStatus = ''; } } if (category.type === 1) { var onclickfunc = "alert('" + content.disabled_category[selectedLanguage] + "');" } else { var onclickfunc = "event.stopPropagation();" } var categoryCheckbox = '\ '; if (options.showCategoryDirectly) { getById("ct-category-direct-" + category.name[selectedLanguage] + "").insertAdjacentHTML('beforebegin', categoryCheckbox); } else { getById("ct-tab-title-" + category.name[selectedLanguage] + "").insertAdjacentHTML('beforeend', categoryCheckbox); } if (category.type === 1) { getById("ct-checkbox-category" + category.name[selectedLanguage] + "").setAttribute("disabled", false); } } function renderPopupDetail() { var tabmenuitemActive = 'ctt-tab-menu-item-active'; var tabmenucontentActive = 'ctt-tab-menu-content-active'; var detailPopupOverlay = '
' var detailPopup = '
\
\
\ \
    \
  • ' + content.tab_cookies[selectedLanguage] + '
  • \
  • ' + content.tab_privacy_policy.title[selectedLanguage] + '
  • \
\
\
\
\
\ \
\
\
'; body.insertAdjacentHTML('beforeend', detailPopupOverlay); body.insertAdjacentHTML('beforeend', detailPopup); var tab1 = '
\
\
\
'; var tab2 = '
\
' + content.tab_privacy_policy.description[selectedLanguage] + '
\
'; getById("ctt-tab1").insertAdjacentHTML('beforeend', tab1); getById("ctt-tab2").insertAdjacentHTML('beforeend', tab2); var ctTabmenu = getByClass('ctt-tab-menu-item'); for (var i = 0; i < ctTabmenu.length; i++) { ctTabmenu[i].onclick = function() { currentActiveTabmenu = getByClass("ctt-tab-menu-item-active")[0]; currentActiveTabmenu.classList.remove("ctt-tab-menu-item-active"); this.classList.add("ctt-tab-menu-item-active"); getByClass("ctt-tab-menu-content-active")[0].classList.remove("ctt-tab-menu-content-active"); var tabmenuId = this.getAttribute("tab-target"); getById(tabmenuId).className += ' ctt-tab-menu-content-active'; } } for (var i = 0; i < categories.length; i++) { var category = categories[i]; var itemActive = (i === 0) ? 'ct-tab-item-active' : ''; var contentActive = (i === 0) ? 'ct-tab-content-active' : ''; var ctTabItem = '
' + category.name[selectedLanguage] + '
'; var ctTabContentItem = '
\
\

' + category.name[selectedLanguage] + '

\ ' + category.description[selectedLanguage] + '\
'; getById("ct-tab-menu").insertAdjacentHTML("beforeend", ctTabItem); getById("ct-tab-content").insertAdjacentHTML("beforeend", ctTabContentItem); if (!options.showCategoryDirectly) { createSwitches(category); } if (behaviour.showAuditTable) { renderAuditTable(category); } } var ctTabs = getByClass('ct-tab-item'); for (var i = 0; i < ctTabs.length; i++) { ctTabs[i].onclick = function() { currentActiveTab = getByClass("ct-tab-item-active")[0]; currentActiveTab.classList.remove("ct-tab-item-active"); this.classList.add("ct-tab-item-active"); getByClass("ct-tab-content-active")[0].classList.remove("ct-tab-content-active"); var tabId = this.getAttribute("tab-target"); getById(tabId).className += ' ct-tab-content-active'; } } if (behaviour.showLogo) { var ctPoweredLink = '
Powered by Cookie Trust
'; getById("ct-footer").insertAdjacentHTML('beforeend', ctPoweredLink); } var customAcceptButton = ''; if (options.showCategoryDirectly) { getById("ct-category-direct").insertAdjacentHTML('beforeend', customAcceptButton); } else { getById("ct-footer").insertAdjacentHTML('beforeend', customAcceptButton); } getById("ct-btn-custom-accept").onclick = function() { acceptCookies("customAccept"); getByClass("ct-modal-backdrop")[0].classList.remove("ct-show"); } getByClass("ct-modal-backdrop")[0].onclick = closectModal; getById("ctModalClose").onclick = closectModal; } function showHideStickyDetail() { if (!Element.prototype.toggleAttribute) { Element.prototype.toggleAttribute = function(name, force) { if (force !== void 0) force = !!force if (this.hasAttribute(name)) { if (force) return true; this.removeAttribute(name); return false; } if (force === false) return false; this.setAttribute(name, ""); return true; }; } getById('ct-btn-settings').toggleAttribute("expanded"); if (getById("ct-btn-settings").hasAttribute("expanded")) { getById("ct-detail-wrapper").style.display = "block"; } else { getById("ct-detail-wrapper").style.display = "none"; } } function showPopupDetail() { getById("ct-settings-popup").classList.add("ct-show"); getByClass("ct-modal-backdrop")[0].classList.add("ct-show"); } function closectModal() { getById("ct-settings-popup").classList.remove("ct-show"); getByClass("ct-modal-backdrop")[0].classList.remove("ct-show"); } function acceptCookies(choice) { updateCookies(choice); if (typeof ctLogCookies !== "undefined") { ctLogCookies(); } if (JSON.parse(behaviour.reload)) { location.reload(); } else { cookieTrust.unblock(); showToggler(); } cookie.set('ct_action', 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } function updateCookies(choice) { cookie.set('ct_consent', 'yes', cookie.ACCEPT_COOKIE_EXPIRE); for (var i = 0; i < info.categories.length; i++) { var category = info.categories[i]; if ((category.type !== 1) && choice === "customAccept") { var ctItemToSave = category; if (display.buttons.settings) { var ctSwitch = document.getElementById("ct-checkbox-category" + ctItemToSave.name[selectedLanguage] + ""); if (ctSwitch.checked) { cookie.set('ct_' + ctItemToSave.slug, 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } else { cookie.set('ct_' + ctItemToSave.slug, 'no', cookie.ACCEPT_COOKIE_EXPIRE); } } else { if (category.defaultConsent) { cookie.set('ct_' + ctItemToSave.slug, 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } else { cookie.set('ct_' + ctItemToSave.slug, 'no', cookie.ACCEPT_COOKIE_EXPIRE); } } } else { cookie.set('ct_' + category.slug, 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } } } function rejectCookies() { cookie.set('ct_action', 'yes', cookie.ACCEPT_COOKIE_EXPIRE); cookie.set('ct_consent', 'no', cookie.ACCEPT_COOKIE_EXPIRE); rejectAllCookies(); if (typeof ctLogCookies !== "undefined") { ctLogCookies(); } if (JSON.parse(behaviour.reload)) { location.reload(); } else { showToggler(); } } function rejectAllCookies() { for (var i = 0; i < info.categories.length; i++) { var category = info.categories[i]; if (category.type !== 1) { cookie.set('ct_' + category.slug, 'no', cookie.ACCEPT_COOKIE_EXPIRE); } else { cookie.set('ct_' + category.slug, 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } } } function setInitialCookies() { if (behaviour.defaultConsent) { cookie.set('ct_consent', 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } else { cookie.set('ct_consent', 'no', cookie.ACCEPT_COOKIE_EXPIRE); } for (var i = 0; i < info.categories.length; i++) { var category = info.categories[i]; if (category.type !== 1) { if (category.defaultConsent) { cookie.set('ct_' + category.slug, 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } else { cookie.set('ct_' + category.slug, 'no', cookie.ACCEPT_COOKIE_EXPIRE); } } else { cookie.set('ct_' + category.slug, 'yes', cookie.ACCEPT_COOKIE_EXPIRE); } } } function removeElement(id) { var elem = document.getElementById(id); return elem.parentNode.removeChild(elem); } function showToggler() { if (document.getElementById('ct-consent')) { document.getElementById("ct-consent").remove(); } if (document.getElementById('ct-settings-popup')) { document.getElementById('ct-settings-popup').remove(); } if (JSON.parse(display.noticeToggler)) { var renderBannerClick = "createBanner;" var cliConsentBarTrigger = ''; body.insertAdjacentHTML('beforeend', cliConsentBarTrigger); document.getElementById ("ct-consent-toggler").addEventListener ("click", renderBanner, false); } } function checkAndInsertScripts(categories) { for (var i = 0; i < categories.length; i++) { var category = categories[i]; var cookieStatus = cookie.read('ct_' + category.slug); if (category.type === 1) { insertScripts(category); } else { if (cookieStatus === 'yes') { insertScripts(category); } } } } function insertScripts(category) { if (typeof category.scripts != 'undefined') { for (var i = 0; i < category.scripts.length; i++) { var scriptItem = category.scripts[i]; if (scriptItem.head_script !== null) { var range = document.createRange(); range.selectNode(document.getElementsByTagName("body")[0]); var documentFragment = range.createContextualFragment(scriptItem.head_script); document.body.appendChild(documentFragment); } if (scriptItem.body_script !== null) { var range = document.createRange(); range.selectNode(document.getElementsByTagName("body")[0]); var documentFragment = range.createContextualFragment(scriptItem.body_script); document.body.appendChild(documentFragment); } } } } function renderAuditTable(category) { var auditTable = '\
\ \ \ \ \ \ \ \ \ \ \ \
'; var auditTableContent = []; if(category.cookies.length >= 1) { if (typeof category.cookies !== 'undefined') { getById("ct-tab-content-" + category.name[selectedLanguage] + "").getElementsByClassName("ct-tab-desc")[0].insertAdjacentHTML('beforeend', auditTable); for (var k = 0; k < category.cookies.length; k++) { var cookies = category.cookies[k]; var c_type = "https"; var auditTableRow = '\ ' + cookies.cookie_id + '\ ' + cookies.duration[selectedLanguage] + '\ ' + cookies.description[selectedLanguage] + '\ '; document.getElementById("ct-cookie-audit-table" + category.id + "").getElementsByTagName('tbody')[0].insertAdjacentHTML('beforeend', auditTableRow); } } } } if (JSON.parse(behaviour.acceptOnScroll)) { body.onscroll = function() { if (cookie.read("ct_consent") === '') { acceptCookies("all"); } } } var anywhereBanner = getByClass('ct-banner-element'); for (var i = 0; i < anywhereBanner.length; i++) { anywhereBanner[i].onclick = function() { if (!document.getElementById('ct-consent')) { renderBanner(); } } } }); function addPlaceholder(htmlElm) { var htmlElemName = htmlElm.getAttribute('data-cli-label'); var htmlElemContent = cliConfig.options.content.blocked_content[cliConfig.options.behaviour.selectedLanguage]; var htmlElemWidth = htmlElm.getAttribute('width'); var htmlElemHeight = htmlElm.getAttribute('height'); if (htmlElemWidth == null) { htmlElemWidth = htmlElm.offsetWidth; } if (htmlElemHeight == null) { htmlElemHeight = htmlElm.offsetHeight; } if (htmlElemHeight == 0 || htmlElemWidth == 0) { htmlElemContent = ''; } var htmlElemWidthPercent = htmlElemWidth.includes("%"); if(htmlElemWidthPercent) { htmlElemWidth = htmlElemWidth.replace('%',''); htmlElemWidthX = '%'; } else { htmlElemWidthX = 'px'; } var htmlElemHeightPercent = htmlElemHeight.includes("%"); if(htmlElemHeightPercent) { htmlElemHeight = htmlElemHeight.replace('%',''); htmlElemHeightX = '%'; } else { htmlElemHeightX = 'px'; } var Placeholder = '
' + htmlElemContent + '
'; Placeholder.width = htmlElemWidth; Placeholder.height = htmlElemHeight; if (htmlElm.tagName !== 'IMG') { htmlElm.insertAdjacentHTML('beforebegin', Placeholder); } } const categoryScripts = [{"name":"functional","list":[/youtube-nocookie.com/,/bing.com/,/vimeo.com/,/spotify.com/,/sharethis.com/,/yahoo.com/,/addtoany.com/,/dailymotion.com/,/slideshare.net/,/soundcloud.com/,/spotify.com/,/tawk.to/,/calendly.com/,/superchat.de/,/courseplan.noexcuse.io/,/ipapi.co/,/s3.cansativa.de/]}]; const backupRemovedScripts = { blacklisted: [] }; ct_BLACKLIST = []; ct_WHITELIST = []; var ctconsent = (getCategoryCookie("ct_consent")) ? getCategoryCookie("ct_consent") : 'no'; var TYPE_ATTRIBUTE = 'javascript/blocked'; categoryScripts.forEach(function(item) { if (ctconsent != 'yes') { Array.prototype.push.apply(ct_BLACKLIST, item.list); } else if (getCategoryCookie("ct_" + item.name) != 'yes') { Array.prototype.push.apply(ct_BLACKLIST, item.list); } }); if (cliConfig.options.consentType == 'info') { window.ct_BLACKLIST = []; } if (navigator.doNotTrack == 1) { categoryScripts.forEach(function(item) { Array.prototype.push.apply(window.ct_BLACKLIST, item.list); }); } const patterns = { blacklist: window.ct_BLACKLIST, whitelist: window.ct_WHITELIST }; var isOnBlacklist = function isOnBlacklist(src) { return src && (!patterns.blacklist || patterns.blacklist.some(function(pattern) { return pattern.test(src); })); }; var isOnWhitelist = function isOnWhitelist(src) { return src && (!patterns.whitelist || patterns.whitelist.some(function(pattern) { return pattern.test(src); })); }; function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } var observer = new MutationObserver(function(mutations) { mutations.forEach(function(_ref) { var addedNodes = _ref.addedNodes; Array.prototype.forEach.call(addedNodes, function(node) { if (node.nodeType === 1 && node.tagName === 'SCRIPT' || node.tagName === 'IFRAME') { var src = node.src || ''; var type = node.type; if (node.hasAttribute("data-cookietrust")) { if (getCategoryCookie(node.getAttribute("data-cookietrust")) != 'yes') { var cat = node.getAttribute("data-cookietrust"); var webdetail = new URL(node.src); Array.prototype.push.apply(window.ct_BLACKLIST, [new RegExp(webdetail.hostname)]); Array.prototype.push.apply(patterns.blacklist, [new RegExp(webdetail.hostname)]); categoryScripts.forEach(function(item, index) { if ("ct_" + item.name == cat) { Array.prototype.push.apply(this[index].list, [new RegExp(webdetail.hostname)]); } }, categoryScripts); } } if (isOnBlacklist(src)) { if (node.tagName === 'IFRAME') { addPlaceholder(node); } node.type = 'javascript/blocked'; node.parentElement.removeChild(node); backupRemovedScripts.blacklisted.push(node.cloneNode()); node.addEventListener("beforescriptexecute", function t(e) { e.preventDefault(); node.removeEventListener("beforescriptexecute", t); }); } } }); }); }); observer.observe(document.documentElement, { childList: true, subtree: true }) function getCategoryCookie(name) { var re = new RegExp(name + "=([^;]+)"); var value = re.exec(document.cookie); return (value != null) ? unescape(value[1]) : 'no'; } const createElementBackup = document.createElement document.createElement = function() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } if (args[0].toLowerCase() !== 'script') return createElementBackup.bind(document)(_toConsumableArray(args)) const scriptElt = createElementBackup.bind(document)(_toConsumableArray(args)) const originalSetAttribute = scriptElt.setAttribute.bind(scriptElt) Object.defineProperties(scriptElt, { 'src': { get: function() { return scriptElt.getAttribute('src') }, set: function(value) { if (isOnBlacklist(value)) { originalSetAttribute('type', TYPE_ATTRIBUTE) } originalSetAttribute('src', value) return true } }, 'type': { set: function(value) { const typeValue = isOnBlacklist(scriptElt.src) ? TYPE_ATTRIBUTE : value originalSetAttribute('type', typeValue) return true } } }) scriptElt.setAttribute = function(name, value) { if (name === 'type' || name === 'src') scriptElt[name] = value else HTMLScriptElement.prototype.setAttribute.call(scriptElt, name, value); } return scriptElt; }