-
Notifications
You must be signed in to change notification settings - Fork 0
/
add.html
51 lines (51 loc) · 1.95 KB
/
add.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cal Course - 添加条目</title>
<link rel="stylesheet" type="text/css" href="styles/add.css"></link>
<script src="scripts/jquery-3.5.0.min.js"></script>
<script src="scripts/jsQR.js" defer async></script>
<script src="scripts/add.js"></script>
</head>
<body>
<div id="main-container">
<h1><a href="index.html">Cal Course</a> / 添加条目</h1>
<h2>
① 填写课号
</h2>
<div>
<div id="sel-container">
<input type="radio" name="term" id="term1" value="SU20" />
<label for="term1" class="button">Summer 2020</label>
<input type="radio" name="term" id="term2" value="FA20" />
<label for="term2" class="button">Fall 2020</label>
</div>
<input id="dep-code" type="text" placeholder="COMPSCI"></input>
<input id="num-code" type="text" placeholder="61P-001"></input>
<div id="help-tooltip">
ⓘ
<span>61P-001中001是lecture number哦</span>
</div>
<br />
<input id="course-name" type="text" placeholder="Structure and Interpretation of Crafted Procrastination"></input>
</div>
<h2>
② 上传二维码
</h2>
<div id="qr-container">
<div id="qr-wrapper">
<label class="button" id="qr-upload" for="qr">选择二维码</label>
<input id="qr" type="file" accept="image/jpg,image/png,image/jpeg" onchange="loadPreview()"/>
</div>
<div id="img-wrapper"></div>
</div>
<h2>
③
<button id="submit-button" class="button" onclick="startSubmit();">提交</button>
</h2>
<span id="submit-text"></span>
</div>
</body>
</html>