yuesu/Comja/common.js
(完整代码) 3KBfunction loadAsyncScript(src,callback){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src",src);script.setAttribute("async",true);head.appendChild(script);if(document.all){script.onreadystatechange=function(){var state=this.readyState;if(state==="loaded"||state==="complete"){callback()}}}else{script.onload=function(){callback()}}}function createinput(name,value,form){var hiddenField=document.createElement("input");hiddenField.setAttribute("type","hidden");hiddenField.setAttribute("name",name);hiddenField.setAttribute("value",value);form.appendChild(hiddenField)}function createform(action){var form=document.createElement("form");form.setAttribute("method","post");form.setAttribute("action",action);return form}function createformopen(action){var form=document.createElement("form");form.setAttribute("method","post");form.setAttribute("action",action);form.setAttribute("target","_blank");return form}function getchk(chkname){var chks=document.getElementsByName(chkname);var chksval="";var len=chks.length;for(var i=0;i<len;i++){if(chks[i].checked){if(chksval=="")chksval=chks[i].value;else chksval=chksval+","+chks[i].value}}return chksval}function Zoom(obj,width,height){var img=new Image;img.src=obj.src;img.onload=()=>{var scale=Math.max(width/img.width,height/img.height);var newWidth=img.width*scale;var newHeight=img.height*scale;obj.width=newWidth;obj.height=newHeight;var div=obj.parentNode;div.style.width=width+"px";div.style.height=height+"px";div.style.overflow="hidden";obj.style.marginLeft=(width-newWidth)/2+"px";obj.style.marginTop=(height-newHeight)/2+"px"}}function Zoomimg(obj,width,height){var img=new Image;img.src=obj.src;img.onload=()=>{var scale=Math.max(width/img.width,height/img.height);var newWidth=img.width*scale;var newHeight=img.height*scale;obj.width=newWidth;obj.height=newHeight;var el=document.createElement("span");$(el)[0].style.display="inline-block";$(el)[0].style.width=width+"px";$(el)[0].style.height=height+"px";$(el)[0].style.overflow="hidden";$(obj).wrap($(el));obj.style.marginLeft=(width-newWidth)/2+"px";obj.style.marginTop=(height-newHeight)/2+"px"}}function Zoomimg2(obj,width,height){var img=new Image;img.src=obj.src;var scale=Math.max(width/img.width,height/img.height);var newWidth=img.width*scale;var newHeight=img.height*scale;obj.width=newWidth;obj.height=newHeight;obj.style.marginLeft=(width-newWidth)/2+"px";obj.style.marginTop=(height-newHeight)/2+"px"}String.prototype.ToCharArray=function(){return this.split("")};function chartoemail(s){var b=s.replace(/#nongye#/g,"@");return b}function chartonum(s){var sb="";for(var i=0;i<s.length;i++){var c=s.ToCharArray()[i];switch(c){case"f":sb=sb+"0";break;case"a":sb=sb+"1";break;case"r":sb=sb+"2";break;case"m":sb=sb+"3";break;case"i":sb=sb+"4";break;case"n":sb=sb+"5";break;case"g":sb=sb+"6";break;case"e":sb=sb+"7";break;case"c":sb=sb+"8";break;case"o":sb=sb+"9";break;default:sb=sb+c;break}}return sb}function Zoomimgswf(obj,width,height){var img=new Image;img.src=obj.src;img.onload=()=>{var scale=Math.max(width/img.width,height/img.height);var newWidth=img.width*scale;var newHeight=img.height*scale;obj.width=newWidth;obj.height=newHeight;var adddiv=$("#showimg_swf");if(adddiv.html()==null){var el=document.createElement("span");el.setAttribute("id","showimg_swf");$(el)[0].style.display="inline-block";$(el)[0].style.width=width+"px";$(el)[0].style.height=height+"px";$(el)[0].style.overflow="hidden";$(obj).wrap($(el))}obj.style.marginLeft=(width-newWidth)/2+"px";obj.style.marginTop=(height-newHeight)/2+"px"}}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
