-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (139 loc) · 6.31 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
<!DOCTYPE html>
<html>
<head>
<title>Marks</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css" />
<style>
h1 {
margin-bottom: 30px;
margin-top: 30px;
}
h2 {
margin-top: 0;
}
#confetti {
position: fixed;
z-index: -1;
}
.no-border tbody tr td,
.no-border tbody tr th,
.no-border thead tr th {
border: none;
}
.deleteRow {
display: none;
}
.markDone {
display: none;
}
tr:hover .deleteRow {
display: inline;
}
tr:hover .markDone {
display: inline;
}
.deleteRow > .glyphicon {
line-height: 2em;
}
.markDone > .glyphicon {
line-height: 2em;
}
.well {
margin-top: 10px;
}
</style>
</head>
<body>
<a href="https://github.com/StudentsNCL/marks"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<canvas id="confetti"></canvas>
<div class="container">
<h1>Are You Throwing Away Marks?</h1>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="course">Course</label>
<select class="form-control" id="course">
<option disabled selected>Select a course</option>
<option value="1">Computer Science</option>
<option value="2">Law</option>
</select>
</div>
<div class="form-group">
<label for="totalCredits">Total Credits Available</label>
<input type="number" class="form-control" id="totalCredits" value="240" />
</div>
</div> <!--/.col-sm-6-->
<div class="col-sm-6">
<div class="well">
<h2>Overall</h2>
<div id="warning" class="alert alert-warning" role="alert" style="display:none">
</div>
<div class="progress">
<div class="progress-bar progress-bar-success">
<span id="markGuaranteed">0.0</span>%
</div>
<div class="progress-bar">
<span id="markPredicted">0.0</span>%
</div>
</div>
</div>
</div><!--/.col-sm-6-->
</div><!--/.row-->
<hr/>
<div class="row">
<div class="col-md-12">
<table class="table table-hover no-border" id="modules">
<thead>
<tr>
<th class="col-xs-1"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span></th>
<th class="col-xs-4">Module/Stage Name</th>
<th class="col-xs-2">Credits</th>
<th class="col-xs-2">Result</th>
<th class="col-xs-2">Overall</th>
<th class="col-xs-1"></th>
<th class="col-xs-1"></th>
</tr>
</thead>
<tbody>
<tr class="module">
<td style="cursor:move;"><span class="glyphicon glyphicon-menu-hamburger" style="margin-top:8px;"></span></td>
<td><input type="text" class="form-control moduleName" placeholder="CSC1234" /></td>
<td><input type="number" class="form-control creditsWorth" placeholder="10" step="10" min="0" max="100" /></td>
<td>
<div class="input-group">
<input type="text" class="form-control result" placeholder="e.g. 40 or 4/10" step="any" min="0" max="100" />
<span class="input-group-addon">%</span>
</div>
</td>
<td>
<div class="input-group">
<input type="text" class="form-control pcOfDegree" disabled />
<span class="input-group-addon">%</span>
</div>
</td>
<td>
<span class="deleteRow" style="cursor:pointer;"><i class="glyphicon glyphicon-trash text-danger"></i></span>
<span class="markDone" style="cursor:pointer;"><i class="glyphicon glyphicon-ok"></i></span>
</td>
</tr>
</tbody>
</table>
</div> <!--/.col-md-12-->
</div>
<div class="row">
<div class="col-sm-6">
<p><button class="btn btn-primary" id="addRow"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> Add Module</button></p>
</div>
</div> <!--/.row-->
</div> <!--/.container-->
<script src="jquery-2.1.3.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<script src="marks.js" type="text/javascript"></script>
<script src="confetti.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
</body>
</html>