1jQuery(document).ready(function(a){function p(b){b=b.attr("id").match(/wmu\-attach\-remove\-(\d+)/);var a=0;null!==b&&(a=b[1]);return a}function l(a,c){var b,e="";b="image"==c?a.attr("id").match(/wmu\-image\-(\d+)/):"video"==c?a.attr("id").match(/wmu\-video\-(\d+)/):a.attr("id").match(/wmu\-file\-(\d+)/);null!==b&&(e=b[1]);return e}function n(){1==wpdiscuzAjaxObj.wpdiscuz_options.wmuIsLightbox&&a(".wmu-attached-image-link").colorbox({maxHeight:"95%",rel:"wmu-attached-image-link"})}function m(b,c){var d= 2b.substring(b.lastIndexOf(".")+1);return a.inArray(d.toLowerCase(),c)}function q(b){var c="";a.each(b,function(a,b){c+="."+b+","});return c}a(".wmu_reset").val("");n();a(document).delegate(".wmu-multiple","click",function(){var b=a(this).children(".wmu-type").val(),c=a(this).parents(".wpdiscuz-textarea-foot"),d=a(".wmu-"+b+"-tab",c);a(".wmu-tabs:not('.wmu-"+b+"-tab')",c).removeClass("wmu-show");d.toggleClass("wmu-show");a(".wmu-multiple.wmu-active").removeClass("wmu-active");a(this).toggleClass("wmu-active"); 3d.is(":visible")||a(this).removeClass("wmu-active")});a(document).delegate(".wmu-image","change",function(){var b=a(this),c=l(b,"image"),d=b.parents(".wc_comm_form"),e=a(".wmu-preview-image-"+c,d),f=a("img",e),d=b[0].files?b[0].files:[],g=d[0].name;d.length&&-1<m(g,wpdiscuzAjaxObj.wpdiscuz_options.imageAccept)&&(b.parents(".wmu-add-"+c,".wmu-tabs").removeClass("wmu-show"),e.addClass("wmu-show"),e.attr("title",g),window.FileReader?(b=new FileReader,b.readAsDataURL(d[0]),b.onloadend=function(){a(f).attr("src", 4this.result)}):a(f).replaceWith('<div class="wmu-filreader-not-exist">'+d[0].name+"</div>"))});a(document).delegate(".wmu-video","change",function(){var b=a(this),c=l(b,"video"),d=b.parents(".wc_comm_form"),e=a(".wmu-preview-video-"+c,d),d=a(".wmu-preview-video-"+c+" .wmu-preview-remove .wmu-file-name",d),f=a("img",e),g=b[0].files?b[0].files:[],h=g[0].name;g.length&&-1<m(h,wpdiscuzAjaxObj.wpdiscuz_options.videoAccept)&&(a(f).attr("src",wpdiscuzAjaxObj.wpdiscuz_options.iconVideoAudio),b.parents(".wmu-add-"+ 5c,".wmu-tabs").removeClass("wmu-show"),e.addClass("wmu-show"),e.attr("title",h),30<h.length&&(h="..."+h.slice(-30)),d.html(h))});a(document).delegate(".wmu-file","change",function(){var b=a(this),c=l(b,"file"),d=b.parents(".wc_comm_form"),e=a(".wmu-preview-file-"+c,d),d=a(".wmu-preview-file-"+c+" .wmu-preview-remove .wmu-file-name",d),f=a("img",e),g=wpdiscuzAjaxObj.wpdiscuz_options.iconFile,h=b[0].files?b[0].files:[],k=h[0].name;h.length&&-1<m(k,wpdiscuzAjaxObj.wpdiscuz_options.fileAccept)&&(b.parents(".wmu-add-"+ 6c,".wmu-tabs").removeClass("wmu-show"),e.addClass("wmu-show"),e.attr("title",h[0].name),f.attr("src",g),30<k.length&&(k="..."+k.slice(-30)),d.html(k))});a(document).delegate(".wmu-attachment-delete","click",function(b){if(confirm(wpdiscuzAjaxObj.wpdiscuz_options.confirmDelete)){a(".wpdiscuz-loading-bar").show();b=new FormData;var c=a(this),d=p(c),e=c.parents(".wc-comment-right").attr("id"),e=e.substring(e.lastIndexOf("-")+1),f="",f=c.hasClass("wmu-delete-image")?"image":c.hasClass("wmu-delete-video")? 7"video":"file";0<d?(b.append("action","removeAttachment"),b.append("commentId",e),b.append("attachmentId",d),b.append("metaKey",f),a.ajax({type:"POST",url:wpdiscuzAjaxObj.url,data:b,contentType:!1,processData:!1}).done(function(b){try{var c=a.parseJSON(b);null!=c&&""!=c&&0<c.id&&a(".wmu-attachment-"+c.id).remove()}catch(k){console.log(k)}a(".wpdiscuz-loading-bar").hide()})):console.log("Cannot get attachment id")}else console.log("canceled")});a(document).delegate(".wmu-preview","click",function(){var b= 8a(this),c=a(b).parents(".wmu-tabs"),d,e;a(b).hasClass("wmu-preview-image")?(d="image",e=wpdiscuzAjaxObj.wpdiscuz_options.imageAccept):a(b).hasClass("wmu-preview-video")?(d="video",e=wpdiscuzAjaxObj.wpdiscuz_options.videoAccept):(d="file",e=wpdiscuzAjaxObj.wpdiscuz_options.fileAccept);var f,g=d;f="";g="image"==g?b.attr("class").match(/wmu\-preview\-image\-(\d+)/):"video"==g?b.attr("class").match(/wmu\-preview\-video\-(\d+)/):b.attr("class").match(/wmu\-preview\-file\-(\d+)/);null!==g&&(f=g[1]);g=a(".wmu-add-"+ 9f+" #wmu-"+d+"-"+f,c);a("img",b).attr("src","");a(b).removeClass("wmu-show");a(".wmu-add-"+f,c).addClass("wmu-show");b=q(e);a(g).replaceWith('<input id="wmu-'+d+"-"+f+'" class="wmu-'+d+'" type="file" accept="'+b+'" name="wmu_'+d+'[]"/>')});wpdiscuzAjaxObj.wmuAddLightBox=function(){1==wpdiscuzAjaxObj.wpdiscuz_options.wmuIsLightbox&&a(".wmu-attached-image-link").colorbox({maxHeight:"95%",rel:"wmu-attached-image-link"})};wpdiscuzAjaxObj.wmuHideAll=function(b,c){0<=parseInt(b)?(a(".wmu-tabs",c).removeClass("wmu-show"), 10a(".wmu-preview",c).removeClass("wmu-show"),a(".wmu-preview img",c).attr("src",""),a.each(a(".wmu-add",c),function(){a(this).hasClass("wmu-show")||a(this).addClass("wmu-show")}),a(".wmu_reset",this).val(""),a(".wmu-multiple",this).removeClass("wmu-active"),n()):console.log("error occured while posting comment")}});
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.