📄 script.js
字号:
function Trim(strValue){return strValue.replace(/^\s*|\s*$/g,"");}
function GetCookie(sName){
var aCookie = document.cookie.split(";");
for (var i=0; i < aCookie.length; i++){
var aCrumb = aCookie[i].split("=");
if (sName == Trim(aCrumb[0])){
return unescape(aCrumb[1]);
}
}
return null;
}
function Trim(strValue){return strValue.replace(/^\s*|\s*$/g,"");}
function SetCookie(sName, sValue){document.cookie = sName + "=" + escape(sValue)+";expires=Fri, 31 Dec 2050 23:59:59 GMT;";}
function showdir()
{
var framecols = "228,*"
if (GetCookie("datacols")!=null){
framecols = GetCookie("datacols");
}
top.fstMain.cols=framecols;
showtoc.style.display="none";
}
function hidedir()
{
top.fstMain.cols="-5,*";
top.fraRightbar.showtoc.style.display="";
}
function showhidentopbar()
{
if(top.allMain.rows=="75,*"){
top.allMain.rows="-1,*";
showtop.innerHTML=" 显示导航栏 ";
barlink.style.display="";
SetCookie("toprows",top.allMain.rows);
}
else{
top.allMain.rows="75,*";
showtop.innerHTML=" 隐藏导航栏 ";
barlink.style.display="none";
SetCookie("toprows",top.allMain.rows);
}
}
function getstatus()
{
if(top.allMain.rows=="75,*"){
showtop.innerHTML=" 隐藏导航栏 ";
barlink.style.display="none";
}
else{
showtop.innerHTML=" 显示导航栏 ";
barlink.style.display="";
}
if(top.fstMain.cols=="-5,*"){
showtoc.style.display="";
}
else{
showtoc.style.display="none";
}
}
function syn()
{
if(top.location.search!="?url="+top.fraRightFrame.location.pathname){
top.location = "/?url=" + top.fraRightFrame.location.pathname;// + top.fraRightFrame.location.search + top.fraRightFrame.location.hash;
}
}
function SelectStart()
{
window.event.cancelBubble = true;
window.event.returnValue = false;
return false;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -