-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
94 lines (93 loc) · 1.89 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title></title>
<style type="text/css">
*{
font-size: 12px;
font-family: "Microsoft Yahei";
}
form{
margin-bottom: 8px;
border-bottom: 1px solid #666666;
}
#form-login .btn-logout{
display: none;
margin-left: 20px;
}
#info{
max-height: 300px;
overflow: auto;
}
#info p{
height: 16px;
line-height: 16px;
transition: all 1s;
-webkit-transition: all 1s;
}
#form-type{
opacity: 0;
height: 0;
transition: all 1s;
-webkit-transition: all 1s;
}
.btn-on{
text-decoration: none;
cursor: default;
color: black;
}
#course-my{
padding: 10px 0;
margin-top: 10px;
border-top: 1px dashed #666666;
}
#btn-grab,#btn-stop{
display: none;
}
.grabsuccess
{
display: inline-block;
background-color: green;
color: #FFF;
}
.grabfail
{
display: inline-block;
background-color: red;
color: #FFF;
}
</style>
</head>
<body>
<form id="form-login" action="" method="post">
<p>
<label>username:</label>
<input id="username" type="text" name="username">
</p>
<p>
<label>password:</label>
<input id="password" type="password" name="password">
</p>
<p>
<a class="btn-submit" href="javascript:void(0)">click to submit</a>
<a class="btn-logout" href="javascript:void(0)">logout</a>
</p>
</form>
<form id="form-type">
<p class="nav">
<a href="javascript:void(0)" data-code="xf_xsyxxxk.aspx?gnmkdm=N121106">院系选修课</a>
<a href="javascript:void(0)" data-code="xf_xsqxxxk.aspx?gnmkdm=N121109">通选课</a>
<span> *当前仅支持院系选修课*</span>
</p>
<table id="course-list"></table>
<input type="button" id="btn-grab" value="开始抢课">
<input type="button" id="btn-stop" value="停止">
<table id="course-my"></table>
</form>
<div id="info">
</div>
<script type="text/javascript" src="zepto.min.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>
</html>