📄 main.js
字号:
// Javascript Document
<!--
//document.oncontextmenu=new Function('event.returnValue=false;');
//document.onselectstart=new Function('event.returnValue=false;');
/*
document.onkeydown = function(){
if(event.keyCode==116) {
event.keyCode=0;
event.returnValue = false;
}
}*/
//document.oncontextmenu = function() {event.returnValue = false;}
window.onbeforeunload = function(){
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth-20;
if(b && window.event.clientY < 0 || window.event.altKey){
webBrowser.Free_PublicInfo();
window.opener =null;
close();
}else{
//alert();
//webBrowser.Free_PublicInfo();
}
}
//-->
function $(obj){
return document.getElementById(obj);
}
function hideIframe(){
//$('webDiv').style.visibility="hidden";
$('webDiv').style.display="none";
webBrowser.style.visibility="visible";
webBrowser.style.display="";
}
function showIframe(){
webBrowser.style.visibility="hidden";
webBrowser.style.display="none";
//$('webDiv').style.visibility="visible";
$('webDiv').style.display="";
}
function NDP_File(){
hideIframe();
SetMenu("menu_0");
webBrowser.ShowForm("FileBackup");
}
function NDP_Share(){
hideIframe();
SetMenu("menu_1");
webBrowser.ShowForm("PublicDataArea");
}
function NDP_Process(){
hideIframe();
SetMenu("menu_2");
webBrowser.ShowForm("TaskWatch");
}
function NDP_Tools(){
SetMenu("menu_3");
NDP_Password();
}
function NDP_Monitor(){
hideIframe();
SetMenu("menu_4");
webBrowser.ScreenService_Monitor();
}
function NDP_Sync(){
hideIframe();
webBrowser.ShowForm("FolderSynchronization");
}
function NDP_Restore(){
hideIframe();
webBrowser.ShowForm("DataRecover");
}
function NDP_Auth(){
hideIframe();
webBrowser.ShowForm("AuthorDataArea");
}
function NDP_TaskList(){
hideIframe();
webBrowser.ShowForm("AllTaskList");
}
function NDP_History(){
hideIframe();
webBrowser.ShowForm("HistoryTask");
}
function NDP_Password(){
hideIframe();
webBrowser.ShowForm("PasswordManage");
}
function NDP_MyInfo(){
$('webIframe').Document.body.innerHTML='';
$('webIframe').src='./user/my.php';
showIframe();
}
function NDP_Help(){
hideIframe();
webBrowser.ShowForm("HelpCenter");
}
function NDP_Dept(){
$('webIframe').Document.body.innerHTML='';
$('webIframe').src='./dept/index.php?';
showIframe();
}
function NDP_User(){
$('webIframe').Document.body.innerHTML='';
$('webIframe').src='./user/index.php?';
showIframe();
}
function NDP_Policy(){
$('webIframe').Document.body.innerHTML='';
$('webIframe').src='./policy/index.php';
showIframe();
}
function NDP_Config(){
$('webIframe').Document.body.innerHTML='';
$('webIframe').src='./config/index.php';
showIframe();
}
function NDP_Log(){
$('webIframe').Document.body.innerHTML='';
$('webIframe').src='./log_login/index.php';
showIframe();
}
function NDP_System(){
$('webIframe').Document.body.innerHTML='';
$('webIframe').src='./system/index.php';
showIframe();
}
function NDP_Logout(){
//webBrowser.Free_PublicInfo();
location="./login.php";
}
function SetMenu(menu_Name){
var left=$("left");
var menu=left.childNodes;
for(i=0; i<menu.length; i++) {
menu[i].style.display='none';
}
$(menu_Name).style.display='';
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -