//灞忚斀榧犳爣鍙抽敭 var jsArgument = document.getElementsByTagName("script")[document.getElementsByTagName("script").length-1].src; //鑾峰彇浼犻€掔殑鍙傛暟 rightButton = jsArgument.substr(jsArgument.indexOf("rightButton=") + "rightButton=".length, 1); if (rightButton == "1"){ document.oncontextmenu = function(e){return false;} document.onselectstart = function(e){return false;} if (navigator.userAgent.indexOf("Firefox") > 0){ document.writeln(""); } } // 鎵嬫満绔欒嚜鍔ㄨ烦杞 mobilejump = jsArgument.substr(jsArgument.indexOf("mobilejump=") + "mobilejump=".length, 1); if (mobilejump == "1"){ var url = window.location.href; var domain = "http://"+document.domain; if(url.slice(url.lastIndexOf("/")+1)=="index.php"){ url = url.slice(0,url.lastIndexOf("/")+1); } var isAndroid = navigator.appVersion.toLowerCase().indexOf("android") >= 0, isIphone = navigator.appVersion.toLowerCase().indexOf("iphone") >= 0; if (isAndroid || isIphone){ window.location.href = domain +"/m"; }; } // 鍥炲埌椤堕儴 $(document).ready(function(){ $(window).scroll(function(){ var scrollH = $(window).scrollTop(); if(scrollH>300){ $(".back-to").fadeIn(); }else{ $(".back-to").fadeOut(); } }) $(".back-to").on('click',function(){ $('html,body').animate({'scrollTop':0},500); }); }) //璁剧疆瀛椾綋澶у皬 function setFontSize(size) { var obj = document.getElementById("contentSize"); if (obj) { obj.style.fontSize = size + "px"; } }