Adresse: Lokales Dienstleistungsgebiet in Wiesbaden
Telefon: +49 611 1435489472
Webseite: Zur Seite gehen
E-Mail: ', 'tel:'] var shouldNavigate = function(link) { var isExcluded = false, matchesRegex = false // First exclude non http schemes excludedSchemas.forEach(function (scheme) { if (link.indexOf(scheme) === 0) isExcluded = true }) if (isExcluded) { return true } PL_URLArray.forEach(function(url) { let a = new RegExp('^(https?://)?([^.]+\.){0,2}' + url + '/?.*$'); if (a.test(link)) { matchesRegex = true } }) // Only navigate if the url matches a given regex, or if it's excluded by scheme return matchesRegex } $('a').on('click', function(event) { var link = this.href || null // See if we should navigate normally, true means no interstitial if (!link || shouldNavigate(link)) { return true; } event.preventDefault(); let popup = $('#interstitial-popup-overlay'); popup.toggleClass('active'); let targetHref = $(this).attr('href'); popup.find('a.target-interstitial-link').attr('href', targetHref).html(targetHref); popup.find('.interstitial-continue, .target-interstitial-link').unbind('click').on('click', function(event) { event.preventDefault(); window.open(targetHref, '_blank'); popup.removeClass('active'); }); popup.find('.close-button, .interstitial-cancel').on('click', function() { popup.removeClass('active'); }); }); });