PageSourceSearch

https://welcomebreak.co.uk/wp-content/themes/cn-core-theme/dist/js/slideout-toggle.js

js welcomebreak.co.uk collected 2026-09-25 18:41:52 UTC 855 bytes, 1 lines download raw bytes

1var CN=CN||{};CN.SlideoutToggle=function(t){this.elements={base:t},this.customOptions=t.data("module-options"),"object"==typeof this.customOptions&&(this.target=this.customOptions.target,this.targetClass=this.customOptions.class),this.init()},CN.SlideoutToggle.prototype.init=function(){var e=this;void 0!==e.target&&void 0!==e.targetClass&&($(e.target)[0].style.setProperty("--js-slideout-content-height",$(e.target)[0].scrollHeight+"px"),$(e.elements.base).on("click",function(t){t.preventDefault(),$(e.target)[0].style.setProperty("--js-slideout-content-height",$(e.target)[0].scrollHeight+"px"),$(e.target).siblings().not(e.elements.base).removeClass(e.targetClass),$(e.target).toggleClass(e.targetClass),$(e.elements.base).toggleClass(e.targetClass),t.target===e.elements.base[0]&&$(t.target)[0].scrollIntoView({behavior:"smooth",block:"start"})}))};

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.