PageSourceSearch

https://lybrae.nl/wp-content/cache/min/1/wp-content/themes/lybrae/…/clear_button.js?ver=1788429633

js lybrae.nl collected 2026-10-06 13:18:25 UTC 1,189 bytes, 7 lines download raw bytes

1(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.clear_button=factory())})(this,(function(){'use strict';const getDom=query=>{if(query.jquery){return query[0]}
2if(query instanceof HTMLElement){return query}
3if(isHtmlString(query)){var tpl=document.createElement('template');tpl.innerHTML=query.trim();return tpl.content.firstChild}
4return document.querySelector(query)};const isHtmlString=arg=>{if(typeof arg==='string'&&arg.indexOf('<')>-1){return!0}
5return!1};function plugin(userOptions){const self=this;const options=Object.assign({className:'clear-button',title:'Clear All',html:data=>{return `<div class="${data.className}" title="${data.title}">&#10799;</div>`}},userOptions);self.on('initialize',()=>{var button=getDom(options.html(options));button.addEventListener('click',evt=>{if(self.isLocked)return;self.clear();if(self.settings.mode==='single'&&self.settings.allowEmptyOption){self.addItem('')}
6evt.preventDefault();evt.stopPropagation()});self.control.appendChild(button)})}
7return plugin}))

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.