PageSourceSearch

https://www.asienda.ru/js/bb.min.js

js asienda.ru collected 2026-10-01 12:01:05 UTC 24,097 bytes, 13 lines download raw bytes

1var form_name="post";var text_name="tex";var load_draft=false;var upload=false;var bbcode=new Array();var bbtags=new Array("[b]","[/b]","[i]","[/i]","[s]","[/s]","[quote]","[/quote]","[code]","[/code]","[list]","[/list]","[list=]","[/list]","[img]","[/img]","[url]","[/url]");var imageTag=false;var imageTag=false;var theSelection=false;var clientPC=navigator.userAgent.toLowerCase();var clientVer=parseInt(navigator.appVersion);var is_ie=((clientPC.indexOf("msie")!=-1)&&(clientPC.indexOf("opera")==-1));var is_win=((clientPC.indexOf("win")!=-1)||(clientPC.indexOf("16bit")!=-1));var baseHeight=100;window.onload=initInsertions;function moderation(a){var b=$("#comment_tex_"+a).val();$("#comment_tex_"+a).val("[m]"+b+"[/m]")}var bb_filename="";var bb_filename_side="";function uploadByUrl(){var url=$("#photo_url").val();if(!url.match(/^http/)){alert("Âñòàâüòå àäðåñ êàðòèíêè â ïîëå ñëåâà îò ýòîé êíîïêè.");return}$.post("/ajax/bb/photourl/",{url:url},function(data){data=ajaxBBclearJSON(data);data=eval(data);if(data.status=="ok"){bb_filename=data.code;bb_filename_side=data.sidecode;$("#bbphoto_done_textarea").val("[img]"+data.code+"[/img]\n");$("#bbphoto_done_img").attr("src",data.thumb);$("#bbphoto_1_form").hide();$("#bbphoto_1_done").show();$("#photo_url").val("")}else{alert(data.content)}$("#saveBbForm2").val("Çàãðóçèòü").attr("disabled",false);$("#new_foto").val("")})}function refreshBBcode(){var b=bb_filename;var a="";if($("#bb_align_left").is(":checked")){a+=' align="left"';b=bb_filename_side}if($("#bb_align_right").is(":checked")){a+=' align="right"';b=bb_filename_side}if($("#bb_alt").val()){a+=' alt="'+$("#bb_alt").val()+'"'}if($("#bb_title").val()){a+=' title="'+$("#bb_title").val()+'"'}if($("#bb_copyright").val()){a+=' copyright="'+$("#bb_copyright").val()+'"'}$("#bbphoto_done_textarea").val("[img"+a+"]"+b+"[/img]\n")}function bbLoadAlbum(b,a){$("#bbalbumslist a").removeClass("blackactive");a.className="blackactive";$("#bb_photoalbum").html("çàãðóçêà...");$.get("/ajax/bb/loadalbum/",{id:b},function(c){$("#bb_photoalbum").html(c)});return false}function delBbImgItem(a){$.post("/ajax/bb/delete/",{num:a},function(d){if(d=="ok"){var e=$("#bbimgcode"+a).val();if(e.length>4){var b=$("#tex_id");var c=b.val();c=c.replace(e,"");b.val(c)}$("#bbimgitem"+a).replaceWith("");if(bb_pics_count>0){bb_pics_count--;if(bb_pics_count>0){$("#bbphoto_link2").html("Ñïèñîê çàãðóæåííûõ ("+bb_pics_count+")")}else{$("#bbphoto_link2").html("Ñïèñîê çàãðóæåííûõ")}}}});return false}function bbH3Dialog(){var a=get_selection_text("tex_id");if(!a){str=prompt("Ââåäèòå òåêñò, êîòîðûé áóäåò îôîðìëåí êàê ïîäçàãîëîâîê.");if(!str){return}insert_text("\n\n[h]"+str+"[/h]\n");document.forms[form_name].elements[text_name].focus()}else{bbfontstyle2(document.forms[form_name].elements[text_name],"[h]","[/h]")}}function bbPictureDialog(){var a=get_selection_text("tex_id");if(!a){str=prompt("Ââåäèòå àäðåñ êàðòèíêè â èíòåðíåòå. Íå ïåðåïóòàéòå àäðåñ êàðòèíêè ñ àäðåñîì ñòðàíèöû!");if(!str){return}if(!str.match(/^https?:\/\/[a-zA-Z0-9\/\+\-_\?\&\=\.]+$/)){alert("Óêàæèòå ïîëíûé àäðåñ êàðòèíêè, íà÷èíàÿ ñ http://...");return bbPictureDialog()}insert_text("\n[img]"+str+"[/img]\n");document.forms[form_name].elements[text_name].focus()}else{bbfontstyle2(document.forms[form_name].elements[text_name],"[img]","[/img]")}}function bbLinkDialog(){var b=prompt("Ââåäèòå àäðåñ ññûëêè (URL):","http://");if(!b){return}if(!b.match(/^https?:\/\/[a-zA-Z0-9\/\+\-_\?\&\=\.#%]+$/)){alert("Óêàæèòå ïîëíûé àäðåñ íà÷èíàÿ ñ http://...");return bbLinkDialog()}var a=get_selection_text("tex_id");if(!a||a==""){a=prompt("Ââåäèòå òåêñò ññûëêè.");insert_text("[url="+b+"]"+a+"[/url]");document.forms[form_name].elements[text_name].focus()}else{bbfontstyle2(document.forms[form_name].elements[text_name],"[url="+b+"]","[/url]")}}function get_selection_text(j){var f=document.getElementById(j);if("selectionStart" in f){var b=f.selectionEnd-f.selectionStart;return f.value.substr(f.selectionStart,b)}else{if(document.selection){f.focus();var a=document.selection.createRange();var h=f.createTextRange();var c=h.duplicate();c.moveToBookmark(a.getBookmark());h.setEndPoint("EndToStart",c);if(a==null||h==null){return{start:f.value.length,end:f.value.length,length:0,text:""}}
1var g=a.text.replace(/[\r\n]/g,".");var i=f.value.replace(/[\r\n]/g,".");var d=i.indexOf(g,h.text.length);return a.text}else{return false}}}function get_selection(j){var f=document.getElementById(j);if("selectionStart" in f){var b=f.selectionEnd-f.selectionStart;return{start:f.selectionStart,end:f.selectionEnd,length:b,text:f.value.substr(f.selectionStart,b)}}else{if(document.selection){alert("x");f.focus();var a=document.selection.createRange();var h=f.createTextRange();var c=h.duplicate();c.moveToBookmark(a.getBookmark());h.setEndPoint("EndToStart",c);if(a==null||h==null){return{start:f.value.length,end:f.value.length,length:0,text:""}}var g=a.text.replace(/[\r\n]/g,".");var i=f.value.replace(/[\r\n]/g,".");var d=i.indexOf(g,h.text.length);return{start:d,end:d+g.length,length:g.length,text:a.text}}else{return{start:f.value.length,end:f.value.length,length:0,text:""}}}}function replace_selection(b,c){var f=document.getElementById(b);selection=get_selection(b);var a=selection.start;var d=a+c.length;f.value=f.value.substr(0,a)+c+f.value.substr(selection.end,f.value.length);set_selection(b,a,d);return{start:a,end:d,length:c.length,text:c}}function helpline(a){}function helpclear(){}function em(a){insert_text(" "+a+" ");return false}function emorate(a){alert2("Ýòîò ñìàéë ïîêà íåäîñòóïåí","Âû ñìîæåòå èñïîëüçîâàòü ýòîò ñìàéë, êîãäà âàø ðåéòèíã áóäåò áîëüøå <b>"+a+"</b>.");return false}function initInsertions(){}function comBold(b){var a=$("#comment_tex_"+b).get(0);bbfontstyle2(a,"[b]","[/b]");return false}function comItalic(b){var a=$("#comment_tex_"+b).get(0);bbfontstyle2(a,"[i]","[/i]");return false}function comQuote(b){var a=$("#comment_tex_"+b).get(0);bbfontstyle2(a,"[quote]","[/quote]");return false}function bbstyle(a){if(a!=-1){bbfontstyle(bbtags[a],bbtags[a+1])}else{insert_text("[*]");document.forms[form_name].elements[text_name].focus()}}function bbstyleMulti(a,b){bbfontstyle2(document.getElementById(a),bbtags[b],bbtags[b+1])}function bbfontstyle(a,c){var b=document.forms[form_name].elements[text_name];bbfontstyle2(b,a,c)}function bbfontstyle2(d,b,f){theSelection=false;d.focus();if((clientVer>=4)&&is_ie&&is_win){theSelection=document.selection.createRange().text;if(theSelection){document.selection.createRange().text=b+theSelection+f;d.focus();theSelection="";return}}else{if(d.selectionEnd&&(d.selectionEnd-d.selectionStart>0)){mozWrap(d,b,f);d.focus();theSelection="";return}}var a=getCaretPosition(d).start;var c=a+b.length;insert_text2(b+f,d);if(!isNaN(d.selectionStart)){d.selectionStart=c;d.selectionEnd=c}else{if(document.selection){var e=d.createTextRange();e.move("character",c);e.select();storeCaret(d)}}d.focus();return}function insert_text(c,a){var b;if(a){b=document.getElementById(a)}else{b=document.forms[form_name].elements[text_name]}insert_text2(c,b)}function insert_text2(e,b){if(!isNaN(b.selectionStart)){var d=b.selectionStart;var c=b.selectionEnd;mozWrap(b,e,"");b.selectionStart=d+e.length;b.selectionEnd=c+e.length}else{if(b.createTextRange&&b.caretPos){if(baseHeight!=b.caretPos.boundingHeight){b.focus();storeCaret(b)}var a=b.caretPos;a.text=a.text.charAt(a.text.length-1)==" "?a.text+e+" ":a.text+e}else{b.value=b.value+e}}b.focus()}function attach_inline(b,a){insert_text("[attachment="+b+"]"+a+"[/attachment]");document.forms[form_name].elements[text_name].focus()}function mozWrap(g,d,j){var c=g.textLength;var a=g.selectionStart;var e=g.selectionEnd;var b=g.scrollTop;if(e==1||e==2){e=c}var i=(g.value).substring(0,a);var h=(g.value).substring(a,e);var f=(g.value).substring(e,c);g.value=i+d+h+j+f;g.selectionStart=e+d.length+j.length;g.selectionEnd=g.selectionStart;g.focus();g.scrollTop=b;return}function caretPosition(){var b=null;var a=null}function getCaretPosition(e){var c=new caretPosition();if(e.selectionStart||e.selectionStart==0){c.start=e.selectionStart;c.end=e.selectionEnd}else{if(document.selection){var a=document.selection.createRange();var b=document.body.createTextRange();b.moveToElementText(e);var d;for(d=0;b.compareEndPoints("StartToStart",a)<0;d++){b.moveStart("character",1)}e.sel_start=d;c.start=e.sel_start;c.end=e.sel_start}}return c}
2/*!
3 * jQuery Form Plugin
4 * version: 3.23 (11-DEC-2012)
5 * @requires jQuery v1.5 or later
6 *
7 * Examples and documentation at: http://malsup.com/jquery/form/
8 * Project repository: https://github.com/malsup/form
9 * Dual licensed under the MIT and GPL licenses:
10 *    http://malsup.github.com/mit-license.txt
11 *    http://malsup.github.com/gpl-license-v2.txt
12 */
13(function(e){var c={};c.fileapi=e("<input type='file'/>").get(0).files!==undefined;
13c.formdata=window.FormData!==undefined;e.fn.ajaxSubmit=function(h){if(!this.length){d("ajaxSubmit: skipping submit process - no element selected");return this}var g,y,j,m=this;if(typeof h=="function"){h={success:h}}g=this.attr("method");y=this.attr("action");j=(typeof y==="string")?e.trim(y):"";j=j||window.location.href||"";if(j){j=(j.match(/^([^#]+)/)||[])[1]}h=e.extend(true,{url:j,success:e.ajaxSettings.success,type:g||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},h);var s={};this.trigger("form-pre-serialize",[this,h,s]);if(s.veto){d("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(h.beforeSerialize&&h.beforeSerialize(this,h)===false){d("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var l=h.traditional;if(l===undefined){l=e.ajaxSettings.traditional}var p=[];var B,C=this.formToArray(h.semantic,p);if(h.data){h.extraData=h.data;B=e.param(h.data,l)}if(h.beforeSubmit&&h.beforeSubmit(C,this,h)===false){d("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[C,this,h,s]);if(s.veto){d("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var w=e.param(C,l);if(B){w=(w?(w+"&"+B):B)}if(h.type.toUpperCase()=="GET"){h.url+=(h.url.indexOf("?")>=0?"&":"?")+w;h.data=null}else{h.data=w}var E=[];if(h.resetForm){E.push(function(){m.resetForm()})}if(h.clearForm){E.push(function(){m.clearForm(h.includeHidden)})}if(!h.dataType&&h.target){var i=h.success||function(){};E.push(function(q){var k=h.replaceTarget?"replaceWith":"html";e(h.target)[k](q).each(i,arguments)})}else{if(h.success){E.push(h.success)}}h.success=function(H,q,I){var G=h.context||this;for(var F=0,k=E.length;F<k;F++){E[F].apply(G,[H,q,I||m,m])}};var A=e('input[type=file]:enabled[value!=""]',this);var n=A.length>0;var z="multipart/form-data";var v=(m.attr("enctype")==z||m.attr("encoding")==z);var u=c.fileapi&&c.formdata;d("fileAPI :"+u);var o=(n||v)&&!u;var t;if(h.iframe!==false&&(h.iframe||o)){if(h.closeKeepAlive){e.get(h.closeKeepAlive,function(){t=D(C)})}else{t=D(C)}}else{if((n||v)&&u){t=r(C)}else{t=e.ajax(h)}}m.removeData("jqxhr").data("jqxhr",t);for(var x=0;x<p.length;x++){p[x]=null}this.trigger("form-submit-notify",[this,h]);return this;function f(H){var I=e.param(H).split("&");var q=I.length;var k={};var G,F;for(G=0;G<q;G++){I[G]=I[G].replace(/\+/g," ");F=I[G].split("=");k[decodeURIComponent(F[0])]=decodeURIComponent(F[1])}return k}function r(q){var k=new FormData();for(var F=0;F<q.length;F++){k.append(q[F].name,q[F].value)}if(h.extraData){var I=f(h.extraData);for(var J in I){if(I.hasOwnProperty(J)){k.append(J,I[J])}}}h.data=null;var H=e.extend(true,{},e.ajaxSettings,h,{contentType:false,processData:false,cache:false,type:g||"POST"});if(h.uploadProgress){H.xhr=function(){var K=jQuery.ajaxSettings.xhr();if(K.upload){K.upload.onprogress=function(O){var N=0;var L=O.loaded||O.position;var M=O.total;if(O.lengthComputable){N=Math.ceil(L/M*100)}h.uploadProgress(O,L,M,N)}}return K}}H.data=null;var G=H.beforeSend;H.beforeSend=function(L,K){K.data=k;if(G){G.call(this,L,K)}};return e.ajax(H)}function D(ad){var I=m[0],H,Z,T,ab,W,K,O,M,N,X,aa,R;var L=!!e.fn.prop;var ag=e.Deferred();if(e("[name=submit],[id=submit]",I).length){alert('Error: Form elements must not have name or id of "submit".');ag.reject();return ag}if(ad){for(Z=0;Z<p.length;Z++){H=e(p[Z]);if(L){H.prop("disabled",false)}else{H.removeAttr("disabled")}}}T=e.extend(true,{},e.ajaxSettings,h);T.context=T.context||T;W="jqFormIO"+(new Date().getTime());if(T.iframeTarget){K=e(T.iframeTarget);X=K.attr("name");if(!X){K.attr("name",W)}else{W=X}}else{K=e('<iframe name="'+W+'" src="'+T.iframeSrc+'" />');K.css({position:"absolute",top:"-1000px",left:"-1000px"})}O=K[0];M={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(ah){var ai=(ah==="timeout"?"timeout":"aborted");d("aborting upload... "+ai);this.aborted=1;try{if(O.contentWindow.document.execCommand){O.contentWindow.document.execCommand("Stop")}}catch(aj){}K.attr("src",T.iframeSrc);M.error=ai;if(T.error){T.error.call(T.context,M,ai,ah)}if(ab){e.event.trigger("ajaxError",[M,T,ai])}if(T.complete){T.complete.call(T.context,M,ai)}}};ab=T.global;if(ab&&0===e.active++){e.event.trigger("ajaxStart")}if(ab){e.event.trigger("ajaxSend",[M,T])}
13if(T.beforeSend&&T.beforeSend.call(T.context,M,T)===false){if(T.global){e.active--}ag.reject();return ag}if(M.aborted){ag.reject();return ag}N=I.clk;if(N){X=N.name;if(X&&!N.disabled){T.extraData=T.extraData||{};T.extraData[X]=N.value;if(N.type=="image"){T.extraData[X+".x"]=I.clk_x;T.extraData[X+".y"]=I.clk_y}}}var S=1;var P=2;function Q(ai){var ah=ai.contentWindow?ai.contentWindow.document:ai.contentDocument?ai.contentDocument:ai.document;return ah}var G=e("meta[name=csrf-token]").attr("content");var F=e("meta[name=csrf-param]").attr("content");if(F&&G){T.extraData=T.extraData||{};T.extraData[F]=G}function Y(){var aj=m.attr("target"),ah=m.attr("action");I.setAttribute("target",W);if(!g){I.setAttribute("method","POST")}if(ah!=T.url){I.setAttribute("action",T.url)}if(!T.skipEncodingOverride&&(!g||/post/i.test(g))){m.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(T.timeout){R=setTimeout(function(){aa=true;V(S)},T.timeout)}function ak(){try{var am=Q(O).readyState;d("state = "+am);if(am&&am.toLowerCase()=="uninitialized"){setTimeout(ak,50)}}catch(an){d("Server abort: ",an," (",an.name,")");V(P);if(R){clearTimeout(R)}R=undefined}}var ai=[];try{if(T.extraData){for(var al in T.extraData){if(T.extraData.hasOwnProperty(al)){if(e.isPlainObject(T.extraData[al])&&T.extraData[al].hasOwnProperty("name")&&T.extraData[al].hasOwnProperty("value")){ai.push(e('<input type="hidden" name="'+T.extraData[al].name+'">').attr("value",T.extraData[al].value).appendTo(I)[0])}else{ai.push(e('<input type="hidden" name="'+al+'">').attr("value",T.extraData[al]).appendTo(I)[0])}}}}if(!T.iframeTarget){K.appendTo("body");if(O.attachEvent){O.attachEvent("onload",V)}else{O.addEventListener("load",V,false)}}setTimeout(ak,15);I.submit()}finally{I.setAttribute("action",ah);if(aj){I.setAttribute("target",aj)}else{m.removeAttr("target")}e(ai).remove()}}if(T.forceSync){Y()}else{setTimeout(Y,10)}var ae,af,ac=50,J;function V(am){if(M.aborted||J){return}try{af=Q(O)}catch(ap){d("cannot access response document: ",ap);am=P}if(am===S&&M){M.abort("timeout");ag.reject(M,"timeout");return}else{if(am==P&&M){M.abort("server abort");ag.reject(M,"error","server abort");return}}if(!af||af.location.href==T.iframeSrc){if(!aa){return}}if(O.detachEvent){O.detachEvent("onload",V)}else{O.removeEventListener("load",V,false)}var ak="success",ao;try{if(aa){throw"timeout"}var aj=T.dataType=="xml"||af.XMLDocument||e.isXMLDoc(af);d("isXml="+aj);if(!aj&&window.opera&&(af.body===null||!af.body.innerHTML)){if(--ac){d("requeing onLoad callback, DOM not available");setTimeout(V,250);return}}var aq=af.body?af.body:af.documentElement;M.responseText=aq?aq.innerHTML:null;M.responseXML=af.XMLDocument?af.XMLDocument:af;if(aj){T.dataType="xml"}M.getResponseHeader=function(au){var at={"content-type":T.dataType};return at[au]};if(aq){M.status=Number(aq.getAttribute("status"))||M.status;M.statusText=aq.getAttribute("statusText")||M.statusText}var ah=(T.dataType||"").toLowerCase();var an=/(json|script|text)/.test(ah);if(an||T.textarea){var al=af.getElementsByTagName("textarea")[0];if(al){M.responseText=al.value;M.status=Number(al.getAttribute("status"))||M.status;M.statusText=al.getAttribute("statusText")||M.statusText}else{if(an){var ai=af.getElementsByTagName("pre")[0];var ar=af.getElementsByTagName("body")[0];if(ai){M.responseText=ai.textContent?ai.textContent:ai.innerText}else{if(ar){M.responseText=ar.textContent?ar.textContent:ar.innerText}}}}}else{if(ah=="xml"&&!M.responseXML&&M.responseText){M.responseXML=U(M.responseText)}}try{ae=k(M,ah,T)}catch(am){ak="parsererror";M.error=ao=(am||ak)}}catch(am){d("error caught: ",am);ak="error";M.error=ao=(am||ak)}if(M.aborted){d("upload aborted");ak=null}if(M.status){ak=(M.status>=200&&M.status<300||M.status===304)?"success":"error"}if(ak==="success"){if(T.success){T.success.call(T.context,ae,"success",M)}ag.resolve(M.responseText,"success",M);if(ab){e.event.trigger("ajaxSuccess",[M,T])}}else{if(ak){if(ao===undefined){ao=M.statusText}if(T.error){T.error.call(T.context,M,ak,ao)}ag.reject(M,"error",ao);if(ab){e.event.trigger("ajaxError",[M,T,ao])}}}if(ab){e.event.trigger("ajaxComplete",[M,T])}
13if(ab&&!--e.active){e.event.trigger("ajaxStop")}if(T.complete){T.complete.call(T.context,M,ak)}J=true;if(T.timeout){clearTimeout(R)}setTimeout(function(){if(!T.iframeTarget){K.remove()}M.responseXML=null},100)}var U=e.parseXML||function(ah,ai){if(window.ActiveXObject){ai=new ActiveXObject("Microsoft.XMLDOM");ai.async="false";ai.loadXML(ah)}else{ai=(new DOMParser()).parseFromString(ah,"text/xml")}return(ai&&ai.documentElement&&ai.documentElement.nodeName!="parsererror")?ai:null};var q=e.parseJSON||function(ah){return window["eval"]("("+ah+")")};var k=function(am,ak,aj){var ai=am.getResponseHeader("content-type")||"",ah=ak==="xml"||!ak&&ai.indexOf("xml")>=0,al=ah?am.responseXML:am.responseText;if(ah&&al.documentElement.nodeName==="parsererror"){if(e.error){e.error("parsererror")}}if(aj&&aj.dataFilter){al=aj.dataFilter(al,ak)}if(typeof al==="string"){if(ak==="json"||!ak&&ai.indexOf("json")>=0){al=q(al)}else{if(ak==="script"||!ak&&ai.indexOf("javascript")>=0){e.globalEval(al)}}}return al};return ag}};e.fn.ajaxForm=function(f){f=f||{};f.delegation=f.delegation&&e.isFunction(e.fn.on);if(!f.delegation&&this.length===0){var g={s:this.selector,c:this.context};if(!e.isReady&&g.s){d("DOM not ready, queuing ajaxForm");e(function(){e(g.s,g.c).ajaxForm(f)});return this}d("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)"));return this}if(f.delegation){e(document).off("submit.form-plugin",this.selector,b).off("click.form-plugin",this.selector,a).on("submit.form-plugin",this.selector,f,b).on("click.form-plugin",this.selector,f,a);return this}return this.ajaxFormUnbind().bind("submit.form-plugin",f,b).bind("click.form-plugin",f,a)};function b(g){var f=g.data;if(!g.isDefaultPrevented()){g.preventDefault();e(this).ajaxSubmit(f)}}function a(j){var i=j.target;var g=e(i);if(!(g.is("[type=submit],[type=image]"))){var f=g.closest("[type=submit]");if(f.length===0){return}i=f[0]}var h=this;h.clk=i;if(i.type=="image"){if(j.offsetX!==undefined){h.clk_x=j.offsetX;h.clk_y=j.offsetY}else{if(typeof e.fn.offset=="function"){var k=g.offset();h.clk_x=j.pageX-k.left;h.clk_y=j.pageY-k.top}else{h.clk_x=j.pageX-i.offsetLeft;h.clk_y=j.pageY-i.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)}e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};e.fn.formToArray=function(w,f){var u=[];if(this.length===0){return u}var k=this[0];var o=w?k.getElementsByTagName("*"):k.elements;if(!o){return u}var q,p,m,x,l,s,h;for(q=0,s=o.length;q<s;q++){l=o[q];m=l.name;if(!m){continue}if(w&&k.clk&&l.type=="image"){if(!l.disabled&&k.clk==l){u.push({name:m,value:e(l).val(),type:l.type});u.push({name:m+".x",value:k.clk_x},{name:m+".y",value:k.clk_y})}continue}x=e.fieldValue(l,true);if(x&&x.constructor==Array){if(f){f.push(l)}for(p=0,h=x.length;p<h;p++){u.push({name:m,value:x[p]})}}else{if(c.fileapi&&l.type=="file"&&!l.disabled){if(f){f.push(l)}var g=l.files;if(g.length){for(p=0;p<g.length;p++){u.push({name:m,value:g[p],type:l.type})}}else{u.push({name:m,value:"",type:l.type})}}else{if(x!==null&&typeof x!="undefined"){if(f){f.push(l)}u.push({name:m,value:x,type:l.type,required:l.required})}}}}if(!w&&k.clk){var r=e(k.clk),t=r[0];m=t.name;if(m&&!t.disabled&&t.type=="image"){u.push({name:m,value:r.val()});u.push({name:m+".x",value:k.clk_x},{name:m+".y",value:k.clk_y})}}return u};e.fn.formSerialize=function(f){return e.param(this.formToArray(f))};e.fn.fieldSerialize=function(g){var f=[];this.each(function(){var l=this.name;if(!l){return}var j=e.fieldValue(this,g);if(j&&j.constructor==Array){for(var k=0,h=j.length;k<h;k++){f.push({name:l,value:j[k]})}}else{if(j!==null&&typeof j!="undefined"){f.push({name:this.name,value:j})}}});return e.param(f)};e.fn.fieldValue=function(l){for(var k=[],h=0,f=this.length;h<f;h++){var j=this[h];var g=e.fieldValue(j,l);if(g===null||typeof g=="undefined"||(g.constructor==Array&&!g.length)){continue}if(g.constructor==Array){e.merge(k,g)}else{k.push(g)}}return k};e.fieldValue=function(f,m){var h=f.name,s=f.type,u=f.tagName.toLowerCase();if(m===undefined){m=true}if(m&&(!h||f.disabled||s=="reset"||s=="button"||(s=="checkbox"||s=="radio")&&!f.checked||(s=="submit"||s=="image")&&f.form&&f.form.clk!=f||u=="select"&&f.selectedIndex==-1)){return null}if(u=="select"){var o=f.selectedIndex;if(o<0){return null}var q=[],g=f.options;var k=(s=="select-one");var p=(k?o+1:g.length);for(var j=(k?o:0);j<p;j++){var l=g[j];if(l.selected){var r=l.value;if(!r){r=(l.attributes&&l.attributes.value&&!(l.attributes.value.specified))?l.text:l.value}if(k){return r}q.push(r)}}return q}return e(f).val()};e.fn.clearForm=function(f){return this.each(function(){e("input,select,textarea",this).clearFields(f)})};e.fn.clearFields=e.fn.clearInputs=function(f){var g=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var i=this.type,h=this.tagName.toLowerCase();if(g.test(i)||h=="textarea"){this.value=""}else{if(i=="checkbox"||i=="radio"){this.checked=false}else{if(h=="select"){this.selectedIndex=-1}else{if(i=="file"){e(this).replaceWith(e(this).clone())}else{if(f){if((f===true&&/hidden/.test(i))||(typeof f=="string"&&e(this).is(f))){this.value=""}}}}}}})};e.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};e.fn.enable=function(f){if(f===undefined){f=true}return this.each(function(){this.disabled=!f})};e.fn.selected=function(f){if(f===undefined){f=true}
13return this.each(function(){var g=this.type;if(g=="checkbox"||g=="radio"){this.checked=f}else{if(this.tagName.toLowerCase()=="option"){var h=e(this).parent("select");if(f&&h[0]&&h[0].type=="select-one"){h.find("option").selected(false)}this.selected=f}}})};e.fn.ajaxSubmit.debug=false;function d(){if(!e.fn.ajaxSubmit.debug){return}var f="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(f)}else{if(window.opera&&window.opera.postError){window.opera.postError(f)}}}})(jQuery);function ajaxBBclearJSON(a){a=a.replace("<pre>","");a=a.replace("</pre>","");a=a.replace("<PRE>","");a=a.replace("</PRE>","");a=a.replace(/&amp;/g,"&");a=a.replace(/&gt;/g,">");a=a.replace(/&lt;/g,"<");a=a.replace(/&quot;/g,'\\"');a=a.replace("?",'"');a=a.replace(/'/g,"");a=a.replace(/\r/g,"");a=a.replace(/\n/g,"");return a}function showVideoForm(){$("#video_step2").hide();$("#video_step1").show();$("#video_alert").hide();$("#video_code").val("");$("#popup_video").jqmShow();return false}function storeCaret(a){if(a.createTextRange){a.caretPos=document.selection.createRange().duplicate()}};

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.