PageSourceSearch

https://www.floristik24.ch/templates/xt_floristik/javascript/superplaceholder.min.js

js floristik24.ch collected 2026-10-09 01:28:17 UTC 2,950 bytes, 1 lines download raw bytes

1!function(){var t="placeholder"in document.createElement("input");var o=Object.freeze({START:"start",STOP:"stop",NOTHING:!1}),e={letterDelay:90,sentenceDelay:1e3,loop:!0,startOnFocus:!1,shuffle:!1,showCursor:!0,cursor:"|",autoStart:!0,onFocusAction:o.STOP,onBlurAction:o.START};function s(t,s,i){var n,r;if(this.el=t,this.texts=s,i=i||{},this.options=function(t,o){var e={};for(var s in t)e[s]=void 0===o[s]?t[s]:o[s];return e}(e,i),this.options.startOnFocus&&(console.warn("Superplaceholder.js: `startOnFocus` option has been deprecated. Please use `onFocusAction`, `onBlurAction` and `autoStart`"),this.options.autoStart=!0,this.options.onFocusAction=o.NOTHING,this.options.onBlurAction=o.NOTHING),this.timeouts=[],this.isPlaying=!1,this.options.shuffle)for(var l=this.texts.length;l--;)r=~~(Math.random()*l),n=this.texts[r],this.texts[r]=this.texts[l],this.texts[l]=n;this.begin()}s.prototype.begin=function(){this.originalPlaceholder=this.el.getAttribute("placeholder"),(this.options.onFocusAction||this.options.onBlurAction)&&(this.listeners={focus:this.onFocus.bind(this),blur:this.onBlur.bind(this)},this.el.addEventListener("focus",this.listeners.focus),this.el.addEventListener("blur",this.listeners.blur)),this.options.autoStart&&this.processText(0)},s.prototype.onFocus=function(){if(this.options.onFocusAction===o.START){if(this.isInProgress())return;this.processText(0)}else this.options.onFocusAction===o.STOP&&this.cleanUp()},s.prototype.onBlur=function(){if(this.options.onBlurAction===o.STOP)this.cleanUp();else if(this.options.onBlurAction===o.START){if(this.isInProgress())return;this.processText(0)}},s.prototype.cleanUp=function(){for(var t=this.timeouts.length;t--;)clearTimeout(this.timeouts[t]);null===this.originalPlaceholder?this.el.removeAttribute("placeholder"):this.el.setAttribute("placeholder",this.originalPlaceholder),this.timeouts.length=0,this.isPlaying=!1},s.prototype.isInProgress=function(){return this.isPlaying},s.prototype.typeString=function(t,o){var e,s=this;if(!t)return!1;function i(e){s.el.setAttribute("placeholder",t.substr(0,e+1)+(e!==t.length-1&&s.options.showCursor?s.options.cursor:"")),e===t.length-1&&o()}for(var n=0;n<t.length;n++)e=setTimeout(i,n*s.options.letterDelay,n),s.timeouts.push(e)},s.prototype.processText=function(t){var o,e=this;this.isPlaying=!0,e.typeString(e.texts[t],function(){e.timeouts.length=0,e.options.loop||e.texts[t+1]||(e.isPlaying=!1),o=setTimeout(function(){e.processText(e.options.loop?(t+1)%e.texts.length:t+1)},e.options.sentenceDelay),e.timeouts.push(o)})};var i=function(o){if(t){var e=new s(o.el,o.sentences,o.options);return{start:function(){e.isInProgress()||e.processText(0)},stop:function(){e.cleanUp()},destroy:function(){for(var t in e.cleanUp(),e.listeners)e.el.removeEventListener(t,e.listeners[t])}}}};i.Actions=o,"object"==typeof exports?module.exports=i:"function"==typeof define&&define.amd?define(function(){return i}):window.superplaceholder=i}();

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.