https://www.seturmarinas.com/js/advertisement-modal.js?v=44VDJgsLAFX4dGGhwcKoWJydixY7YCSqBFQ5fE74UnY
1(function () { 2 'use strict'; 3 4 var COOKIE_CONSENT_NAME = 'cookieConsent'; 5 var modalElement = document.getElementById('advertisementsModal'); 6 var modalInstance = null; 7 var shown = false; 8 9 function hasCookieConsent() { 10 return document.cookie.match(new RegExp('(^| )' + COOKIE_CONSENT_NAME + '=([^;]+)')) !== null; 11 } 12 13 function getModalInstance() { 14 if (!modalInstance && window.bootstrap && modalElement) { 15 modalInstance = new window.bootstrap.Modal(modalElement, { 16 backdrop: 'static', 17 keyboard: false 18 }); 19 } 20 return modalInstance; 21 } 22 23 function showAdvertisements() { 24 if (shown || !modalElement) return; 25 26 var instance = getModalInstance(); 27 if (!instance) return; 28 29 shown = true; 30 instance.show(); 31 } 32 33 function onConsentResolved(event) { 34 var justResolved = event && event.detail && event.detail.justResolved; 35 if (justResolved) { 36 window.setTimeout(showAdvertisements, 500); 37 } else { 38 showAdvertisements(); 39 } 40 } 41 42 function init() { 43 if (!modalElement) return; 44 45 document.addEventListener('cookieConsentResolved', onConsentResolved); 46 47 // Fallback: the consent script may have resolved before this listener was attached. 48 if (hasCookieConsent()) { 49 showAdvertisements(); 50 } 51 } 52 53 init(); 54})();
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.