-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (104 loc) · 4.28 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<style>
</style>
<div class="bt-form">
<div class="bt-w-main">
<!--菜单部分-->
<div class="bt-w-menu">
<p class="bgw" onclick="batchsite.page_index()">导入列表</p>
<p onclick="batchsite.site_add()">添加网站</p>
<p onclick="batchsite.site_delete()">删除网址</p>
<p onclick="batchsite.page_about()">关于</p>
</div>
<!--内容部分-->
<div class="bt-w-con pd15">
<div class="plugin_body" id="page_index" style="display: block">
<iframe src="batchsite/static/site_list.html" style="width: 100%;height: 520px" frameborder="no"
border="0" marginwidth="0" marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</div>
<div class="plugin_body" id="site_add" style="display: none">
<iframe src="batchsite/static/site_add.html" style="width: 100%;height: 520px" frameborder="no"
border="0" marginwidth="0" marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</div>
<div class="plugin_body" id="site_delete" style="display: none">
<iframe src="batchsite/static/site_delete.html" style="width: 100%;height: 520px" frameborder="no"
border="0" marginwidth="0" marginheight="0" scrolling="yes" allowtransparency="yes"></iframe>
</div>
<div class="plugin_body" id="page_about" style="display: none">
<div id="About_logo" align="center"><img src="/static/img/soft_ico/ico-batchsite.png" width="186px">
</div>
<br/>
<div id="About_dev">
<table align="left" style="position:absolute; left:42%; top:75%;" border="0">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>插件名称:batchsite</td>
</tr>
<tr>
<td>版本:1.0 个人定制授权</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>网站:<a href="https://xxx.html" class="btlink" target="_blank">Every</a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>授权:Every QQ:907139945</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<!--JS脚本部分,不要将JS脚本写在其它地方-->
<script type="text/javascript">
//定义窗口尺寸
$('.layui-layer-page').css({'width': '900px'});
//左测菜单切换效果
$(".bt-w-menu p").click(function () {
$(this).addClass('bgw').siblings().removeClass('bgw')
});
/**
* 插件交互对象
* 您的所有JS代码可以写在里面
* 若不习惯JS的面向对象编程,可删除此对象,使用传统函数化的方式编写
* */
var batchsite = {
//将所有页面设置成关闭状态
page_flush: function () {
var page = $(".plugin_body");
for (var i = 0; i < page.length; i++)
page[i].setAttribute("style", "display:none");
},
page_index: function () {
batchsite.page_flush();
$("#page_index").css("display", "block");
},
site_delete: function () {
batchsite.page_flush();
$("#site_delete").css("display", "block");
},
site_add: function () {
batchsite.page_flush();
$("#site_add").css("display", "block");
},
page_about: function () {
batchsite.page_flush();
$("#page_about").css("display", "block");
}
}
//第一次打开窗口时调用
batchsite.page_index()
</script>