PageSourceSearch

https://www.lampdirect.nl/static/version1790658255/frontend/Wwl/anylamp/nl_NL/Wwl_Catalog/js/dynamic-banner.js

js lampdirect.nl collected 2026-10-04 14:36:38 UTC 787 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".dynamic-banner");var n=function(){const e=localStorage.getItem("mage-cache-storage");if(!e)return null;const n=JSON.parse(e);if(!n||!n.hasOwnProperty("customer-preference"))return null;return n}(),a="";n&&n.customer&&(a=n.customer.organisation_type);var r=!1;switch(a){case"P":r=".dynamic-banner__banner--private";break;case"C":r=".dynamic-banner__banner--business";break;case"G":r=".dynamic-banner__banner--governmental";break;case"I":r=".dynamic-banner__banner--installer";break;default:r=!1}e.forEach(e=>{const n=document.querySelector(`#${e.id} .dynamic-banner__banner--unknown`);if(r){const a=document.querySelector(`#${e.id} ${r}`);a&&(a.style.display="block",n.style.display="none")}})});

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.