forked from yaniswang/hostsPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (58 loc) · 1.83 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>hostsPlus</title>
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/dialog_skins/tip.min.css" />
<link rel="stylesheet" type="text/css" href="css/dialog_skins/easyui.min.css" />
<link rel="stylesheet" type="text/css" href="css/codemirror.css" />
<script type="text/javascript" src="js/AIRAliases.js"></script>
<script type="text/javascript" src="js/AIRIntrospector.js"></script>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/jdialog.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/hosts.js"></script>
<script type="text/javascript" src="js/codemirror.js"></script>
<script type="text/javascript" src="js/codemirror-hosts.js"></script>
<script type="text/javascript" src="js/editor.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript">
jDialog.settings.skin = 'easyui';
jDialog.settings.animate = false;
$(app.init);
//关闭按钮
if(isWin){
nativeWindow.addEventListener(air.Event.CLOSING, function(event){
event.preventDefault();
app.hide();
});
}
var $win = $(window);
//全局键盘快捷键
$win.on('keydown',function(e){
switch(e.which){
case 9://Tab
if(isMac?e.metaKey:e.ctrlKey){
app.toggleHosts();
return false;
}
break;
case 27://Esc
app.hide();
return false;
break;
case 112://F1
app.showManual();
break;
case 122://F11
app.toggleFullscreen();
return false;
break;
}
});
</script>
</head>
<body></body>
</html>