-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
94 lines (77 loc) · 3.64 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta name="renderer" content="webkit"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="generator" content="HBuilder X 2.9.3"/>
<meta name="description" content="主页~"/>
<meta name="author" content="[email protected]"/>
<script src="qiangke.js" type="text/javascript" charset="utf-8"></script>
<meta charset="UTF-8">
<title>测试页面</title>
</head>
<body>
<div id="" style="text-align: center;margin-top: 20vh;">
var script = document.createElement('script');<br>
script.src = "https://xyxywan.gitee.io/hfut_xuanke/qiangke.js";<br>
document.getElementsByTagName('head')[0].appendChild(script);
</div>
<div style="z-index:9999;width: 60%;margin: auto;position: absolute;border:2px solid;border-radius:25px;border-color: #0000ff;"
<h1>模拟选课页面</h1>
<button class="button2" onclick="addcs(EDstr('E',String(rwlocalStorage('r','qiangkecishu'))))">增加抢课次数</button>
<script type="text/javascript">
function testfuc1(){
document.getElementById('kuang').style.display='block';
document.getElementById('testarea').innerText="正在选课";
setTimeout(function(){ document.getElementById('testarea').innerText="人数已满"; }, 2000);
}
function testfuc2(){
document.getElementById('kuang').style.display='block';
document.getElementById('testarea').innerText="正在选课";
setTimeout(function(){ document.getElementById('testarea').innerText="选课成功"; }, 2000);
}
function testfuc3(){
document.getElementById('kuang').style.display='block';
document.getElementById('testarea').innerText="正在选课";
setTimeout(function(){ document.getElementById('testarea').innerText="重复选课"; }, 2000);
}
</script>
<br><br>
<div id="kaisbt"><button id="searchbtn" class="button2" onclick="testfuc1()">选课按钮</button></div>
<div id="kuang" style="width: 200px;left: 0px;display: none;border:2px solid;border-radius:25px;border-color: #FF0000;">
<div id="testarea" style="color: #FF0000;"></div>
<button type="button" id="testbutton6" onclick="document.getElementById('kuang').style.display='none';document.getElementById('testarea').innerText='';">确定</button>
</div>
<a href="https://addons.mozilla.org/zh-CN/firefox/addon/tampermonkey/"></a>
<script>
function btt1(){
$("#kaisbt").empty();
var div4 = $('<button id="searchbtn" class="button2" onclick="testfuc1()">选课按钮</button>').attr({});
div4.appendTo('#kaisbt');
}
function btt2(){
$("#kaisbt").empty();
var div4 = $('<button id="searchbtn" class="button2" onclick="testfuc2()">选课按钮</button>').attr({});
div4.appendTo('#kaisbt');
}
function btt3(){
$("#kaisbt").empty();
var div4 = $('<button id="searchbtn" class="button2" onclick="testfuc3()">选课按钮</button>').attr({});
div4.appendTo('#kaisbt');
}
</script>
<div align="center" style="margin-top:8%; ">
<label class="label1" onclick="btt1();">正在选课-2s>人数已满<input type="radio" name="point" checked="checked"/></label>
<label class="label1" onclick="btt2();">正在选课-2s>选课成功<input type="radio" name="point"/></label>
<label class="label1" onclick="btt3();">正在选课-2s>重复选课<input type="radio" name="point"/></label>
</div>
<br>
<br>
</div>
</body>
</html>