PageSourceSearch

https://www.connollymusic.com/hubfs/hub_generated/module_assets/1/…/1789971307136/module_cm-splash.min.js

js connollymusic.com collected 2026-10-02 11:05:14 UTC 2,917 bytes, 2 lines download raw bytes

1var module_222343143687=void function(){var KEY="cm_visitor_segment";function init(){var root=document.querySelector("[data-cm-splash]");if(root){var days=parseInt(root.getAttribute("data-cm-splash-days"),10);isNaN(days)&&(days=30);var stored=null;try{stored=localStorage.getItem(KEY)}catch(e){}if(stored){var rec=null;try{rec=JSON.parse(stored)}catch(e){}if(rec&&"number"==typeof rec.t&&(0===days||Date.now()-rec.t<864e5*days))return}var surface=root.querySelector("[data-cm-splash-surface]"),scrollEl=root.querySelector("[data-cm-splash-scroll]"),stepSegments=root.querySelector('[data-cm-splash-step="segments"]'),stepBrands=root.querySelector('[data-cm-splash-step="brands"]'),closing=!1;Array.prototype.forEach.call(root.querySelectorAll("[data-cm-splash-skip]"),function(btn){btn.addEventListener("click",skip)}),Array.prototype.forEach.call(root.querySelectorAll("[data-cm-splash-seg]"),function(link){link.addEventListener("click",function(){store(this.getAttribute("data-cm-splash-seg")),dismiss()})});var browse=root.querySelector("[data-cm-splash-browse]");browse&&browse.addEventListener("click",function(){showStep("brands")});var back=root.querySelector("[data-cm-splash-back]");back&&back.addEventListener("click",function(){showStep("segments")}),surface.addEventListener("click",function(e){e.target!==surface&&e.target!==scrollEl||skip()}),root.hidden=!1,root.classList.add("cm-splash--open"),document.documentElement.classList.add("cm-splash-lock"),document.addEventListener("keydown",onKey),focusFirst()}function store(v){try{localStorage.setItem(KEY,JSON.stringify({seg:v,t:Date.now()}))}catch(e){}}function focusables(){var list=surface.querySelectorAll('button, [href], input, [tabindex]:not([tabindex="-1"])');return Array.prototype.filter.call(list,function(el){return!el.disabled&&null!==el.offsetParent})}function focusFirst(){setTimeout(function(){var f=focusables();f[0]&&f[0].focus()},30)}function onKey(e){closing||("Escape"===e.key?skip():"Tab"===e.key&&function(e){var f=focusables();if(f.length){var first=f[0],last=f[f.length-1];e.shiftKey&&document.activeElement===first?(e.preventDefault(),last.focus()):e.shiftKey||document.activeElement!==last||(e.preventDefault(),first.focus())}}(e))}function dismiss(){closing||(closing=!0,document.removeEventListener("keydown",onKey),document.documentElement.classList.remove("cm-splash-lock"),root.classList.add("cm-splash--closing"),setTimeout(function(){root.hidden=!0,root.classList.remove("cm-splash--open","cm-splash--closing")},260))}function skip(){store("skipped"),dismiss()}function showStep(which){stepSegments.hidden="segments"!==which,stepBrands.hidden="brands"!==which,focusFirst()}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",init):init()}();
2//# sourceURL=https://474697.fs1.hubspotusercontent-na1.net/hubfs/474697/hub_generated/module_assets/1/222343143687/1789971307136/module_cm-splash.js

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.