PageSourceSearch

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

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

1var CN=CN||{};CN.ShareIntent=function(t){this.elements={base:t,body:"body",copyButton:".drop-a-hint__copy-button",closeButton:".drop-a-hint__close-button",overlay:".drop-a-hint__overlay"},this.customOptions=t.data("module-options"),"object"==typeof this.customOptions&&(this.target=this.customOptions.target,this.targetClass=this.customOptions.class),this.init()},CN.ShareIntent.prototype.init=function(){var e=this;void 0!==e.target&&void 0!==e.targetClass&&($(e.elements.base).on("click",function(t){t.preventDefault(),$(e.elements.body).addClass("dropping-a-hint").trigger("revealOffcanvas"),$(e.target).toggleClass(e.targetClass)}),$(e.elements.closeButton).on("click",function(t){t.preventDefault(),$(e.elements.body).removeClass("dropping-a-hint"),$(e.target).removeClass(e.targetClass)}),$(e.elements.overlay).on("click",function(t){t.target==this&&(t.preventDefault(),$(e.elements.body).removeClass("dropping-a-hint"),$(e.target).removeClass(e.targetClass))}),$(e.elements.copyButton).on("click",function(t){t.preventDefault(),$(e.elements.copyButton).addClass("copied"),setTimeout(()=>{$(e.elements.copyButton).removeClass("copied")},1e3),navigator.clipboard.writeText(window.location.href)}))};

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.