function loadScript(src) { return new Promise(function(resolve, reject) { let r = false; const script = document.createElement('script'); script.type = 'text/javascript'; script.src = src; script.async = true; // script.onerror = function(err) { reject(err, s); }; script.onload = script.onreadystatechange = function() { if (!r && (!this.readyState || this.readyState == 'complete')) { r = true; resolve(); } script.onerror = () => reject(new Error(`Script load error for ${src}`)); }; const t = document.getElementsByTagName('script')[0]; t.parentElement.insertBefore(script, t); }); } function loadStyle(src) { return new Promise(function (resolve, reject) { let link = document.createElement('link'); link.href = src; link.rel = 'stylesheet'; link.onload = () => resolve(link); link.onerror = () => reject(new Error(`Style load error for ${src}`)); document.head.append(link); }); } if (typeof cc_showSettings === 'undefined' || cc_showSettings === null) { var cc_showSettings = []; } var cc; var im; window.addEventListener('load', function(){ loadStyle("https://www.labiennale.at/js/iframemanager/iframemanager.css") .then(() => loadStyle("https://www.labiennale.at/js/iframemanager/iframemanager.next.css")) .then(() => loadScript("https://www.labiennale.at/js/iframemanager/iframemanager.next.js")) .then(() => loadIframemanager()) .then(() => loadStyle("https://www.labiennale.at/js/cookieconsent/cookieconsent.css")) .then(() => loadStyle("https://www.labiennale.at/js/cookieconsent/cookieconsent.next.css")) .then(() => loadScript("https://www.labiennale.at/js/cookieconsent/cookieconsent.next.js")) .then(() => addPrivacyLink()) .then(() => loadCookieConsent()) .catch(err => alert(err)); }); function addPrivacyLink() { //document.body.style.paddingBottom = "100px"; var div = document.createElement("div"); div.style.zIndex = "99999999999"; div.style.position = "fixed"; div.style.borderRadius = "0px"; div.style.right = "0px"; div.style.bottom = "0px"; div.style.padding = "10px"; div.style.fontSize = "20px"; div.style.background = "lightgrey"; div.innerHTML = ""; var lastChild = document.body.lastChild; document.body.insertBefore(div, lastChild.nextSibling); var link = document.createTextNode("Datenschutzerklärung");     var a = document.createElement('a');  a.appendChild(link);  a.title = "Datenschutzerklärung/Privacy Policy";  a.style.padding = "5px"; a.style.color = "black"; a.style.textDecoration = "none"; a.href = "https://www.labiennale.at/page.php?id=643"; a.setAttribute('data-ajax', false) a.setAttribute('rel', "external") div.appendChild(a);  var link = document.createTextNode("Datenschutzeinstellungen");     var a = document.createElement('a');  a.appendChild(link);  a.title = "Datenschutzeinstellungen/Settings";  a.style.padding = "5px"; a.style.color = "black"; a.style.textDecoration = "none"; a.href = "#"; a.setAttribute('data-cc', "c-settings") a.setAttribute('data-ajax', false) a.setAttribute('rel', "external") div.appendChild(a);  } function loadIframemanager() { // obtain plugin im = iframemanager(); im.run({ currLang: 'de', onAccept: function (cookie) { console.log('IFRAM onAccept fired! '+ cookie) document.querySelector('#c-'+ cookie).checked = true; cc.accept(); }, services : { soundcloud : { embedUrl: 'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{data-id}&color=%230fde5a&auto_play=false&hide_related=true&show_comments=true&show_user=true&show_reposts=false&show_teaser=false', thumbnailUrl: '', iframe : { allow : 'accelerometer; encrypted-media; gyroscope; picture-in-picture; fullscreen;', }, cookie : { name : 'cc_soundcloud' }, languages : { de : { notice: 'Der Inhalt wird auf einem externen Server gehostet. Mit dem anzeigen/abspielen des Inhaltes akzeptieren sie die Nutzungsbedingungen von soundcloud.com.', loadBtn: '▶ abspielen', loadAllBtn: 'akzeptieren', }, en : { notice: 'This content is hosted by a third party. By showing the external content you accept the terms and conditions of soundcloud.com.', loadBtn: '▶ Load', loadAllBtn: 'accept', } } }, vimeo : { embedUrl: 'https://player.vimeo.com/video/{data-id}', thumbnailUrl: function(id, setThumbnail){ var url = "https://vimeo.com/api/v2/video/" + id + ".json"; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var src = JSON.parse(this.response)[0].thumbnail_large; setThumbnail(src); } }; xhttp.open("GET", url, true); xhttp.send(); }, iframe : { allow : 'accelerometer; encrypted-media; gyroscope; picture-in-picture; fullscreen;', }, cookie : { name : 'cc_vimeo' }, languages : { de : { notice: 'Der Inhalt wird auf einem externen Server gehostet. Mit dem anzeigen/abspielen des Inhaltes akzeptieren sie die Nutzungsbedingungen von vimeo.com.', loadBtn: '▶ abspielen', loadAllBtn: 'akzeptieren', }, 'en' : { notice: 'This content is hosted by a third party. By showing the external content you accept the terms and conditions of vimeo.com.', loadBtn: 'Load video', loadAllBtn: 'Don\'t ask again' } } }, youtube : { embedUrl: 'https://www.youtube-nocookie.com/embed/{data-id}', thumbnailUrl: 'https://i3.ytimg.com/vi/{data-id}/hqdefault.jpg', iframe : { allow : 'accelerometer; encrypted-media; gyroscope; picture-in-picture; fullscreen;', }, cookie : { name : 'cc_youtube' }, languages : { de : { notice: 'Der Inhalt wird auf einem externen Server gehostet. Mit dem anzeigen/abspielen des Inhaltes akzeptieren sie die Nutzungsbedingungen von youtube.com.', loadBtn: '▶ abspielen', loadAllBtn: 'akzeptieren', }, en : { notice: 'This content is hosted by a third party. By showing the external content you accept the terms and conditions of youtube.com.', loadBtn: '▶ Load', loadAllBtn: 'accept', } } } } }); } function loadCookieConsent() { // obtain plugin cc = initCookieConsent(); // run plugin with your configuration cc.run({ revision: 1, current_lang: 'de', autoclear_cookies: true, // default: false page_scripts: true, // default: false force_consent: false, // default: false auto_language: "browser", // default: null; could also be 'browser' or 'document' //cookie_domain: "nextroom.at", // mode: 'opt-in' // default: 'opt-in'; value: 'opt-in' or 'opt-out' // delay: 0, // default: 0 // autorun: true, // default: true // hide_from_bots: false, // default: false // remove_cookie_tables: false // default: false // cookie_name: 'cc_cookie', // default: 'cc_cookie' // cookie_expiration: 182, // default: 182 (days) // cookie_necessary_only_expiration: 182 // default: disabled // cookie_domain: location.hostname, // default: current domain // cookie_path: '/', // default: root // cookie_same_site: 'Lax', // default: 'Lax' // use_rfc_cookie: false, // default: false // revision: 0, // default: 0 onFirstAction: function(user_preferences, cookie){ // callback triggered only once }, onAccept: function (cookie) { console.log('onAccept fired!') if(cc.allowedCategory('youtube')) { im.acceptService('youtube'); } if(cc.allowedCategory('vimeo')) { im.acceptService('vimeo'); } if(cc.allowedCategory('soundcloud')) { im.acceptService('soundcloud'); } }, onChange: function (cookie, changed_preferences) { console.log('onChange fired!'); reload_page = false; cc_showSettings.forEach(function(item, index) { if (cc.allowedCategory( item ) && changed_preferences.includes( item ) ) { reload_page = true; } }); if(!cc.allowedCategory('youtube')) { im.rejectService('youtube'); } else if(cc.allowedCategory('youtube')) { im.acceptService('youtube'); } // If analytics category is disabled => disable google analytics if (!cc.allowedCategory('analytics')) { typeof gtag === 'function' && gtag('consent', 'update', { 'analytics_storage': 'denied' }); } if (reload_page) { console.log("reload"); window.location.reload(); } }, gui_options: { consent_modal: { layout: 'box', // box/cloud/bar position: 'middle center', // bottom/middle/top + left/right/center transition: 'slide', // zoom/slide swap_buttons: false // enable to invert buttons }, settings_modal: { layout: 'box', // box/bar // position: 'left', // left/right transition: 'slide' // zoom/slide } }, languages: { 'de': { consent_modal: { title: 'Einsatz von Cookies und Einbindung externer Inhalte', description: 'Auf der Webseite werden Cookies und Services eingesetzt, welche zur Verarbeitung von Endgeräteinformationen und personenbezogenen Daten verwendet werden. Die Verarbeitung dient der Einbindung von Inhalten, externen Diensten und Elementen Dritter, der statistischen Analyse/Messung, der personalisierten Werbung. Je nach Funktion werden dabei Daten an Dritte weitergegeben und von diesen verarbeitet.
Mehr dazu erfahren Sie in der Datenschutzerklärung.', primary_btn: { text: 'Alle akzeptieren', role: 'accept_all' // 'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Einstellungen verwalten', role: 'settings' // 'settings' or 'accept_necessary' } }, settings_modal: { title: 'Einsatz von Cookies und Einbindung externer Inhalte', save_settings_btn: 'Einstellungen speichern', accept_all_btn: 'Alle akzeptieren', reject_all_btn: 'Alle ablehnen', close_btn_label: 'Schließen', cookie_table_headers: [ {col1: 'Cookie Bezeichner'}, ], blocks: [ { title: '', description: 'Auf der Webseite werden Cookies und Services eingesetzt, welche zur Verarbeitung von Endgeräteinformationen und personenbezogenen Daten verwendet werden. Die Verarbeitung dient der Einbindung von Inhalten, externen Diensten und Elementen Dritter, der statistischen Analyse/Messung, der personalisierten Werbung. Je nach Funktion werden dabei Daten an Dritte weitergegeben und von diesen verarbeitet.', }, { title: 'Notwendige Cookies', description: 'Wir setzen ausschließlich Cookies, die unbedingt erforderlich sind und benutzen diese nur um spezielle Features (Login, Auswahlen, Merkfunktionen, etc.) umsetzen zu können.', show: false, toggle: { value: 'necessary', enabled: true, readonly: true, } }, { title: '
Adobe Web Fonts / Typekit (empfohlen)
', description: 'Über Adobe Web Fonts wird der Schriftzug eingebunden. Durch die Aktivierung werden Inhalte von Adobe abgerufen und dabei Daten an Adobe übermittelt. Ohne Zustimmung wird die Seite nicht korrekt dargestellt.', toggle: { value: 'webfonts', enabled: false, readonly: false, reload: 'on_disable', }, }, { title: '
Soundcloud (empfohlen)
', description: 'Soundcloud wird zur Darstellung von Videoes verwendet. Durch die Aktivierung werden Inhalte von Soundcloud abgerufen und dabei Daten an Soundcloud übermittelt. Ohne Zustimmung können keine Videoes dargestellt werden.', toggle: { value: 'soundcloud', enabled: false, readonly: false, reload: 'on_enable', }, }, { title: '
Vimeo (empfohlen)
', description: 'Vimeo wird zur Darstellung von Videoes verwendet. Durch die Aktivierung werden Inhalte von Vimeo abgerufen und dabei Daten an Vimeo übermittelt. Ohne Zustimmung können keine Videoes dargestellt werden.', toggle: { value: 'vimeo', enabled: false, readonly: false, reload: 'on_enable', }, }, { title: '
Youtube (empfohlen)
', description: 'Youtube wird zur Darstellung von Videoes verwendet. Durch die Aktivierung werden Inhalte von Youtube abgerufen und dabei Daten an Youtube übermittelt. Ohne Zustimmung können keine Videoes dargestellt werden.', toggle: { value: 'youtube', enabled: false, readonly: false, reload: 'on_enable', }, }, { title: '', description: 'Mehr dazu erfahren Sie in der Datenschutzerklärung.', } ] } }, 'en': { consent_modal: { title: 'Use of cookies and integration of external content', description: 'We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.
You can find out more about this in the Privacy Policy.', primary_btn: { text: 'Allow all', role: 'accept_all' // 'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Customize', role: 'settings' // 'settings' or 'accept_necessary' } }, settings_modal: { title: 'Use of cookies and integration of external content', save_settings_btn: 'Save Settings', accept_all_btn: 'Allow all', reject_all_btn: 'Deny all', close_btn_label: 'Close', cookie_table_headers: [ {col1: 'Cookie Name'}, ], blocks: [ { title: '', description: 'Cookies and services are used on the website, which are used to process end device information and personal data. The processing serves to integrate content, external services and elements of third parties, statistical analysis/measurement, personalized advertising. Depending on the function, data is passed on to third parties and processed by them.', }, { title: 'Necessary Cookies', description: '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.', show: false, toggle: { value: 'necessary', enabled: true, readonly: true, } }, { title: '
Adobe Web Fonts / Typekit (recommended)
', description: 'The lettering is integrated using Adobe Web Fonts. Activation causes content to be retrieved from Adobe and data is transmitted to Adobe in the process. The page will not be displayed correctly without consent.', toggle: { value: 'webfonts', enabled: false, readonly: false, reload: 'on_disable', }, }, { title: '
Youtube (empfohlen)
', description: 'Youtube wird zur Darstellung von Videoes verwendet. Durch die Aktivierung werden Inhalte von Youtube abgerufen und dabei Daten an Youtube übermittelt. Ohne Zustimmung können keine Videoes dargestellt werden.', toggle: { value: 'youtube', enabled: false, readonly: false, reload: 'on_enable', }, }, { title: '', description: 'You can find out more about this in the Privacy Policy.', } ] } }, } }); if (cc_showSettings.length > 0) { cc_showSettings.forEach( function( activateElement ) { document.querySelector( '#s-ttl' ).innerHTML = document.querySelector( "#cc_ask_"+ activateElement ).dataset.title; document.querySelector( '#s-bl>.c-bl>.desc>.p' ).innerHTML = document.querySelector( "#cc_ask_"+ activateElement ).dataset.text; document.querySelector( "#cc_ask_"+ activateElement ).parentNode.style.backgroundColor = "lightgreen"; }); cc.showSettings(); } }