PageSourceSearch

https://www.lanaplanet.it/media/mod_jbcookies/js/consent.min.js?dcc2e4

js lanaplanet.it collected 2026-10-07 08:51:32 UTC 4,342 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){function e(e){e?s():C.show()}function t(){jQuery(document).on("click",".jb-accept, .jb-accept-all",function(){n(!0),a("allow"),m(),C.hide(),s()}),jQuery(document).on("click",".jb-deny, .jb-reject-all",function(){n(!1),a("deny"),p(),m(),C.hide(),s()}),jQuery(document).on("click",".jb-save-selection",function(){a("custom"),m(),C.hide(),s()}),jQuery(".jb-privacy-reopen").on("click",function(){f("jbcookies"),S.fadeOut("slow",function(){C.show()})})}function n(e){document.querySelectorAll(".jb-privacy-toggle").forEach(function(t){t.disabled||(t.checked=e)})}function o(){var e={};return document.querySelectorAll(".jb-privacy-toggle").forEach(function(t){var n=t.getAttribute("data-group");e[n]=t.checked?1:0}),e}function r(){var e=l("jbcookies");if(!e)return{status:"",preferences:{}};try{var t=JSON.parse(e);if(t&&"object"==typeof t&&"string"==typeof t.status)return{status:t.status,preferences:t.preferences&&"object"==typeof t.preferences?t.preferences:{}}}catch(e){}return"allow"===e||"deny"===e||"custom"===e?{status:e,preferences:{}}:{status:"",preferences:{}}}function c(e){document.querySelectorAll(".jb-privacy-toggle").forEach(function(t){var n=t.getAttribute("data-group");Object.prototype.hasOwnProperty.call(e,n)&&!t.disabled&&(t.checked=!!e[n])})}function i(e,t){var n=JSON.stringify({status:e,preferences:t||{}});d("jbcookies",n),u(e,t||{})}function a(e){i(e,o())}function u(e,t){if("function"==typeof window.CustomEvent){var n=new CustomEvent("jbcookies:update",{detail:{status:e,preferences:t}});document.dispatchEvent(n)}}function s(){S.fadeIn("slow")}function d(e,t,n){var o="number"==typeof n?n:k,r=new Date;r.setDate(r.getDate()+o);var c=e+"="+encodeURIComponent(t)+"; expires="+r.toUTCString()+"; path=/";g&&(c+="; domain="+g),document.cookie=c}function f(e){d(e,"",-365)}function l(e){if(!e)return"";var t=e.replace(/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),n=new RegExp("(?:^|;\\s*)"+t+"\\s*=\\s*([^;]+)"),o=document.cookie.match(n);return o?decodeURIComponent(o[1]):""}
1function p(){Object.keys(E).forEach(function(e){if("necessary"!==String(e||"").toLowerCase()){var t=E[e]||[];t.forEach(function(e){if(e&&e.name){var t=String(e.name).toLowerCase();if(0!==t.indexOf("jbcookies"))if("*"!==e.name.slice(-1))f(e.name);else{var n=String(e.name.slice(0,-1)).toLowerCase();if(!n||!document.cookie)return;document.cookie.split(";").forEach(function(e){var t=e.split("=")[0].trim();if(t){var o=t.toLowerCase();0!==o.indexOf("jbcookies")&&0===o.indexOf(n)&&f(t)}})}}})}})}function m(){var e=document.getElementById("jb-privacy-preferences");e&&(window.bootstrap&&window.bootstrap.Modal?window.bootstrap.Modal.getOrCreateInstance(e).hide():"undefined"!=typeof jQuery&&"function"==typeof jQuery(e).modal&&jQuery(e).modal("hide"))}function v(){var e=document.getElementById("jb-privacy-preferences"),t=document.querySelector(".jb-privacy");e&&(e.addEventListener("shown.bs.modal",function(){e.removeAttribute("aria-hidden"),e.focus({preventScroll:!0})}),e.addEventListener("hidden.bs.modal",function(){document.activeElement&&e.contains(document.activeElement)&&document.activeElement.blur()})),t&&(t.addEventListener("shown.bs.modal",function(){t.removeAttribute("aria-hidden"),t.focu
1s({preventScroll:!0})}),t.addEventListener("hidden.bs.modal",function(){document.activeElement&&t.contains(document.activeElement)&&document.activeElement.blur()}))}function y(){return document.cookie?document.cookie.split(";").map(function(e){var t=e.split("=")[0].trim();return t&&0!==t.toLowerCase().indexOf("jbcookies")?{name:t,source:window.location.hostname,category:"unassigned"}:null}).filter(function(e){return null!==e}):[]}function b(){if(h&&!w()&&O.url&&O.token){var e=y();if(e.length){var t=new FormData;t.append(O.token,"1"),t.append("mode","register"),t.append("cookies",JSON.stringify(e));try{fetch(O.url,{method:"POST",body:t,credentials:"same-origin"})}catch(e){}}}}function w(){var e=window.location&&window.location.pathname?window.location.pathname.toLowerCase():"";return 0===e.indexOf("/administrator")}var j=window.JBCOOKIES_CONFIG||{},h=!1!==j.allowBrowserCapture,g=j.domain||"",k=parseInt(j.duration||90,10),E=j.inventory||{},O=j.ajax||{},C=new bootstrap.Modal(".jb-privacy",{}),S=jQuery(".jb-privacy-reopen"),L=r();c(L.preferences||{}),e(L.status),t(),v(),h&&b()});

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.