1Type.registerNamespace("Telerik.Web.UI"); 2(function(){Telerik.Web.UI.RadCaptcha=function(a){Telerik.Web.UI.RadCaptcha.initializeBase(this,[a]); 3this._audioElement=null; 4this._objectElement=null; 5this._audioUrl=null; 6this._enableAudio=false; 7this._persistCode=false; 8this._focusCssClass="rcFocusTxt"; 9}; 10$telerik.toCaptcha=function(a){return a; 11}; 12$telerik.findCaptcha=$find; 13Telerik.Web.UI.RadCaptcha.prototype={initialize:function(){Telerik.Web.UI.RadCaptcha.callBaseMethod(this,"initialize"); 14var a=this.get_textBox(); 15if(a){a.setAttribute("autoComplete","off"); 16this._focusTxtDelegate=Function.createDelegate(this,this._focusTxtHandler); 17$addHandler(a,"focus",this._focusTxtDelegate); 18this._blurTxtDelegate=Function.createDelegate(this,this._blurTxtHandler); 19$addHandler(a,"blur",this._blurTxtDelegate); 20}if(this.get_enableAudio()){this._createAudioElements(); 21this._setAudioUrlDelegate=Function.createDelegate(this,this._setAudioUrl); 22Sys.WebForms.PageRequestManager.getInstance().add_endRequest(this._setAudioUrlDelegate); 23}this.raiseEvent("load",Sys.EventArgs.Empty); 24},dispose:function(){if(this.get_audioLink()){$clearHandlers(this.get_audioLink()); 25}if(this._setAudioUrlDelegate){Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._setAudioUrlDelegate); 26}var a=this.get_textBox(); 27if(a){$removeHandler(a,"focus",this._focusTxtDelegate); 28$removeHandler(a,"blur",this._blurTxtDelegate); 29delete this._focusTxtDelegate; 30delete this._blurTxtDelegate; 31}Telerik.Web.UI.RadCaptcha.callBaseMethod(this,"dispose"); 32},get_textBox:function(){if(!this._txt){this._txt=this._getChildElement("CaptchaTextBox"); 33}return this._txt; 34},_focusTxtHandler:function(a){Sys.UI.DomElement.addCssClass(this._txt,this._focusCssClass); 35},_blurTxtHandler:function(a){Sys.UI.DomElement.removeCssClass(this._txt,this._focusCssClass); 36},setFocusTxtCssClass:function(a){this._focusCssClass=a; 37},get_audioUrl:function(){return this._audioUrl; 38},set_audioUrl:function(a){this._audioUrl=a; 39},get_enableAudio:function(){return this._enableAudio; 40},set_enableAudio:function(a){this._enableAudio=a; 41},get_audioLink:function(){var a=this._getChildElement("CaptchaAudioCode"); 42if(!a){a=this._getChildElement("CaptchaAudioCodeUP"); 43}return a; 44},_supportsAudio:function(){return this._audioElement&&(this._audioElement.play||this._audioElement.canPlayType); 45},_createAudioElements:function(){var b=this.get_audioUrl(); 46var a=this.get_audioLink(); 47a.setAttribute("href","#"); 48$addHandlers(a,{click:this.onAudioPlay},this); 49var c=a.parentNode; 50this._audioElement=this._createAudioElement(b); 51c.appendChild(this._audioElement); 52if(!this._supportsAudio()||(this._audioElement&&this._audioElement.canPlayType&&!this._audioElement.canPlayType("audio/wav"))){this._objectElement=this._createObjectElement(b); 53c.appendChild(this._objectElement); 54this._objectElement.blur(); 55}},_createAudioElement:function(b){var a=document.createElement("audio"); 56a.setAttribute("src",b); 57a.style.position="absolute"; 58a.style.top=0; 59a.style.left=0; 60return a; 61},_createObjectElement:function(b){var a=document.createElement("embed"); 62a.setAttribute("id",this.get_id()+"_playAudio"); 63a.setAttribute("src",b); 64a.setAttribute("autostart","false"); 65a.setAttribute("pluginspage","http://www.apple.com/quicktime/download/"); 66a.setAttribute("name","CaptchaAudio"); 67a.setAttribute("enablejavascript","true"); 68a.setAttribute("type","audio/wav"); 69a.setAttribute("tabIndex","-1"); 70a.style.width="0px"; 71a.style.hegiht="0px"; 72a.style.position="absolute"; 73a.style.top=0; 74a.style.left=0; 75return a; 76},onAudioPlay:function(a){if(this._objectElement){this._objectElement.Play(); 77}else{if(this._audioElement&&this._audioElement.play){if($telerik.isChrome||this._persistCode){this._audioElement.load(); 78}this._audioElement.play(); 79}}return $telerik.cancelRawEvent(a); 80},_setAudioUrl:function(d,a){var b=this.get_audioLink(); 81if(b){var c=b.getAttribute("href",2); 82if(c&&c!="#"){this.set_audioUrl(c); 83this._audioElement=null; 84this._objectElement=null; 85this._createAudioElements(); 86}}},add_load:function(a){this.get_events().addHandler("load",a); 87},remove_load:function(a){this.get_events().removeHandler("load",a); 88}}; 89Telerik.Web.UI.RadCaptcha.registerClass("Telerik.Web.UI.RadCaptcha",Telerik.Web.UI.RadWebControl); 90})();
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.