-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·201 lines (189 loc) · 9.59 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>Peer Evaluation App | Web Programming HW3</title>
<!-- Bootstrap -->
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="http://getbootstrap.com/examples/starter-template/starter-template.css" rel="stylesheet">
<link href="./css/style.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn"t work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" type="button"><span class="sr-only">Peer
Evaluation App</span>
</button> <a class="navbar-brand" href="#">Peer
Evaluation App</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li id="loginButton"><a href="#login/">Login</a>
</li>
<li id="evaluationButton"><a href="#peer-evaluation/">Peer
Evaluation</a>
</li>
<li id="scoreButton"><a href="#all-score/">All Score</a>
</li>
<li id="logoutButton"><a href="#">Logout</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
<div class="container" id="content"></div>
<script id="loginView" type="text/x-dot-template">
<div class="starter-template">
<br />
<form role="form" class="form-signin" id="form-signin">
<h3 class="form-signin-heading">Please sign in</h3>
<div class="alert alert-danger" id="form-signin-message" style="display: none"></div>
<input type="text" autofocus="" required="" placeholder="Your student ID" class="form-control first-component" id="form-signin-student-id">
<input type="password" required="" placeholder="Password" class="form-control last-component" id="form-signin-password">
<button type="submit" class="btn btn-lg btn-primary btn-block">Sign in</button>
</form>
<hr />
<form role="form" class="form-signin" id="form-signup">
<h3 class="form-signin-heading">or create a new account</h3>
<div class="alert alert-danger" id="form-signup-message" style="display: none"></div>
<input type="text" required="" placeholder="Your student ID" class="form-control first-component" id="form-signup-student-id">
<input type="password" required="" placeholder="Password" class="form-control middle-component" id="form-signup-password">
<input type="password" required="" placeholder="Confirm Password" class="form-control middle-component" id="form-signup-password1">
<input type="email" autofocus="" required="" placeholder="Email address" class="form-control last-component" id="form-signup-email">
<button type="submit" class="btn btn-lg btn-primary btn-block">Sign up</button>
</form>
</div>
</script>
<script id="evaluationView" type="text/x-dot-template">
<div class="row">
<br />
<form id="evaluationForm">
<div class="col-md-12">
{{~it :member:index}}
<div>
<h2>{{=member.name}}</h2>
<ol>
<li>
<h3>Cooperation</h3>
<select class="form-control" required id="stu{{=member.StudentId}}-q0">
<option value=""{{? member.scores[0] === "0"}} selected{{?}}>---</option>
<option value="1"{{? member.scores[0] === "1"}} selected{{?}}>
1 = did not perform in this manner at all
</option>
<option value="2"{{? member.scores[0] === "2"}} selected{{?}}>
2 = low performance in this area
</option>
<option value="3"{{? member.scores[0] === "3"}} selected{{?}}>
3 = did okay in this area, but could have contributed more to the group
</option>
<option value="4"{{? member.scores[0] === "4"}} selected{{?}}>
4 = contributed enough to be considered an active part of the group
</option>
<option value="5"{{? member.scores[0] === "5"}} selected{{?}}>
5 = performed great as an integral, vital part of the group in this area
</option>
</select>
</li>
<li>
<h3>Participation</h3>
<select class="form-control" required id="stu{{=member.StudentId}}-q1">
<option value=""{{? member.scores[1] === "0"}} selected{{?}}>---</option>
<option value="1"{{? member.scores[1] === "1"}} selected{{?}}>
1 = did not perform in this manner at all
</option>
<option value="2"{{? member.scores[1] === "2"}} selected{{?}}>
2 = low performance in this area
</option>
<option value="3"{{? member.scores[1] === "3"}} selected{{?}}>
3 = did okay in this area, but could have contributed more to the group
</option>
<option value="4"{{? member.scores[1] === "4"}} selected{{?}}>
4 = contributed enough to be considered an active part of the group
</option>
<option value="5"{{? member.scores[1] === "5"}} selected{{?}}>
5 = performed great as an integral, vital part of the group in this area
</option>
</select>
</li>
<li>
<h3>Quality of work</h3>
<select class="form-control" required id="stu{{=member.StudentId}}-q2">
<option value=""{{? member.scores[2] === "0"}} selected{{?}}>---</option>
<option value="1"{{? member.scores[2] === "1"}} selected{{?}}>
1 = did not perform in this manner at all
</option>
<option value="2"{{? member.scores[2] === "2"}} selected{{?}}>
2 = low performance in this area
</option>
<option value="3"{{? member.scores[2] === "3"}} selected{{?}}>
3 = did okay in this area, but could have contributed more to the group
</option>
<option value="4"{{? member.scores[2] === "4"}} selected{{?}}>
4 = contributed enough to be considered an active part of the group
</option>
<option value="5"{{? member.scores[2] === "5"}} selected{{?}}>
5 = performed great as an integral, vital part of the group in this area
</option>
</select>
</li>
<li>
<h3>Contribution of the overall group</h3>
<select class="form-control" required id="stu{{=member.StudentId}}-q3">
<option value=""{{? member.scores[3] === "0"}} selected{{?}}>---</option>
<option value="1"{{? member.scores[3] === "1"}} selected{{?}}>
1 = did not perform in this manner at all
</option>
<option value="2"{{? member.scores[3] === "2"}} selected{{?}}>
2 = low performance in this area
</option>
<option value="3"{{? member.scores[3] === "3"}} selected{{?}}>
3 = did okay in this area, but could have contributed more to the group
</option>
<option value="4"{{? member.scores[3] === "4"}} selected{{?}}>
4 = contributed enough to be considered an active part of the group
</option>
<option value="5"{{? member.scores[3] === "5"}} selected{{?}}>
5 = performed great as an integral, vital part of the group in this area
</option>
</select>
</li>
</ol>
</div>
{{~}}
</div>
<center>
<input type="submit" class="btn-primary btn-lg btn" id="evaluationForm-submit">
</center>
</form>
</div>
</script>
<script id="updateSuccessView" type="text/x-dot-template">
<div class="starter-template">
您的提交已送出,請記得登出系統。<br />謝謝您的使用。
</div>
</script>
<div class="container" id="content"></div>
<script id="scoreView" type="text/x-dot-template">
<div class="starter-template">
<br />
</div>
</script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="https://www.parsecdn.com/js/parse-1.2.18.min.js"></script>
<script src="./js/vendors/doT.min.js"></script>
<script src="./js/ta_help.js" type="text/javascript"></script>
<script src="./js/app.js" type="text/javascript"></script>
</body>
</html>