1function initInputs(){for(var e=!0,t=!0,s=!0,l=[].concat(PlaceholderInput.convertToArray(document.getElementsByTagName("input")),PlaceholderInput.convertToArray(document.getElementsByTagName("textarea"))),n=0;n<l.length;n++)if(l[n].className.indexOf("default")<0){var i=PlaceholderInput.getInputType(l[n]);(e&&"text"===i||"email"===i||t&&"textarea"===i||s&&"password"===i)&&((l[n].getAttribute("value")||l[n].value)&&l[n].getAttribute("placeholder")&&l[n].removeAttribute("placeholder"),new PlaceholderInput({element:l[n],wrapWithElement:!1,showUntilTyping:!1,getParentByClass:!1,placeholderAttr:l[n].getAttribute("placeholder")?"placeholder":"value"}))}}!function(){var e=[];function t(e,t){return!!e.className&&e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function s(e,t){return function(){return e.apply(t,arguments)}}PlaceholderInput=function(){this.options={element:null,showUntilTyping:!1,wrapWithElement:!1,getParentByClass:!1,placeholderAttr:"value",inputFocusClass:"focus",inputActiveClass:"text-active",parentFocusClass:"parent-focus",parentActiveClass:"parent-active",labelFocusClass:"label-focus",labelActiveClass:"label-active",fakeElementClass:"input-placeholder-text"},e.push(this),this.init.apply(this,arguments)},PlaceholderInput.convertToArray=function(e){for(var t=[],s=0,l=t.length=e.length;s<l;s++)t[s]=e[s];return t},PlaceholderInput.getInputType=function(e){return(e.type?e.type:e.tagName).toLowerCase()},PlaceholderInput.refreshAllInputs=function(t){for(var s=0;s<e.length;s++)t!==e[s]&&e[s].refreshState()},PlaceholderInput.prototype={init:function(e){this.setOptions(e),this.element&&this.element.PlaceholderInst?this.element.PlaceholderInst.refreshClasses():(this.element.PlaceholderInst=this,"text"!=this.elementType&&"email"!=this.elementType&&"password"!=this.elementType&&"textarea"!=this.elementType||(this.initElements(),this.attachEvents(),this.refreshClasses()))},setOptions:function(e){for(var t in e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.options.element&&(this.element=this.options.element,this.elementType=PlaceholderInput.getInputType(this.element),this.wrapWithElement=!("password"!==this.elementType&&!this.options.showUntilTyping)||(this.options.wrapWithElement||"placeholder"===this.options.placeholderAttr),this.setOrigValue("value"==this.options.placeholderAttr?this.element.defaultValue:this.element.getAttribute(this.options.placeholderAttr)))},setOrigValue:function(e){this.origValue=e},initElements:function(){if(this.wrapWithElement&&(this.element.value="",this.element.removeAttribute(this.options.placeholderAttr),this.fakeElement=document.createElement("span"),this.fakeElement.className=this.options.fakeElementClass,this.fakeElement.innerHTML+=this.origValue,this.fakeElement.style.color=function(e,t){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(e,null)[t]:e.currentStyle?e.currentStyle[t]:e.style[t]}(this.element,"color"),this.fakeElement.style.position="absolute",this.element.parentNode.insertBefore(this.fakeElement,this.element)),this.element.id){this.labels=document.getElementsByTagName("label");for(var e=0;e<this.labels.length;e++)if(this.labels[e].htmlFor===this.element.id){this.labelFor=this.labels[e];break}}if(this.elementParent=this.element.parentNode,"string"==typeof this.options.getParentByClass)for(var s=this.element;s.parentNode;){if(t(s.parentNode,this.options.getParentByClass)){this.elementParent=s.parentNode;break}s=s.parentNode}},attachEvents:function(){this.element.onfocus=s(this.focusHandler,this),this.element.onblur=s(this.blurHandler,this),this.options.showUntilTyping&&(this.element.onkeydown=s(this.typingHandler,this),this.element.onpaste=s(this.typingHandler,this)),this.wrapWithElement&&(this.fakeElement.onclick=s(this.focusSetter,this))},togglePlaceholderText:function(e){this.wrapWithElement&&this.fakeElement&&(this.fakeElement.style.display=e?"":"none")},focusSetter:function(){this.element.focus()},focusHandler:function(){clearInterval(this.checkerInterval),this.checkerInterval=setInterval(s(this.intervalHandler,this),1),this.focused=!0,this.element.value.length&&this.element.value!==this.origValue||this.options.showUntilTyping||this.togglePlaceholderText(!1),this.refreshClasses()},blurHandler:function(){clearInterval(this.checkerInterval),this.focused=!1,this.element.value.length&&this.element.value!==this.origValue||this.togglePlaceholderText(!0),this.refreshClasses(),PlaceholderInput.refreshAllInputs(this)},typingHandler:function(){this.element.value.length&&(this.togglePlaceholderText(!1),this.refreshClasses())},intervalHandler:function(){void 0===this.tmpValue&&(this.tmpValue=this.element.value),this.tmpValue!=this.element.value&&PlaceholderInput.refreshAllInputs(this)},refreshState:function(){this.wrapWithElement&&(this.element.value.length&&this.element.value!==this.origValue?this.togglePlaceholderText(!1):this.element.value.length||this.togglePlaceholderText(!0)),this.refreshClasses()},refreshClasses:function(){this.textActive=this.focused||this.element.value.length&&this.element.value!==this.origValue,this.setStateClass(this.element,this.options.inputFocusClass,this.focused),this.setStateClass(this.elementParent,this.options.parentFocusClass,this.focused),this.setStateClass(this.labelFor,this.options.labelFocusClass,this.focused),this.setStateClass(this.element,this.options.inputActiveClass,this.textActive),this.setStateClass(this.elementParent,this.options.parentActiveClass,this.textActive),this.setStateClass(this.labelFor,this.options.labelActiveClass,this.textActive)},setStateClass:function(e,s,l){e&&(l?function(e,s){t(e,s)||(e.className+=" "+s)}(e,s):function(e,s){t(e,s)&&(e.className=e.className.replace(new RegExp("(\\s|^)"+s+"(\\s|$)")," "))}(e,s))}}}(),jQuery(document).ajaxComplete(initInputs),window.addEventListener?window.addEventListener("load",initInputs,!1):window.attachEvent&&window.attachEvent("onload",initInputs);
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.