1window.tp = window.tp || []; 2window.didomiOnReady = window.didomiOnReady || []; 3window.didomiEventListeners = window.didomiEventListeners || []; 4 5window.didomiEventListeners.push({ 6 event: 'consent.changed', 7 listener: function (context) { 8 location.reload(); 9 } 10}); 11 12window.didomiOnReady.push(function (Didomi) { 13 if (Didomi.isConsentRequired()) { 14 // Consent is required: your visitor is from the EU or you are an EU company 15 Didomi.getObservableOnUserConsentStatusForVendor('412') // Piano Software Inc. 16 .subscribe(function (consentStatusForVendor) { 17 if (consentStatusForVendor === true) { 18 setPianoProductsMode('opt-in'); // all data will be saved 19 } else { 20 setPianoProductsMode('opt-out'); // only mandatory cookies will be saved 21 } 22 console.log('status consent for vendor Piano Software Inc.: ', consentStatusForVendor); 23 }); 24 } else { 25 // Consent is not required, enable your vendor immediately 26 } 27}); 28 29function setPianoProductsMode(mode) { 30 tp.push(["init", function() { 31 tp.consent.set({DMP: {mode: mode}}); 32 tp.consent.set({COMPOSER: {mode: mode}}); 33 tp.consent.set({ID: {mode: mode}}); 34 tp.consent.set({VX: {mode: mode}}); 35 tp.consent.set({ESP: {mode: mode}}); 36 //tp.experience.init(); 37 }]); 38}
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.