-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (219 loc) · 15.4 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SubjectMarks</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-slider.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<header>
<a href="https://github.com/nuclearpidgeon/SubjectMarks">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png">
</a>
</header>
<main>
<div class="container">
<h1>SubjectMarks <small><code>Beta 1.0</code></small></h1>
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">Subject</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">Assessment Items</p>
</div>
<div class="panel-body" id="assessmentPanelBody">
<div class="list-group" id="assessmentList" data-bind="with: subject">
<!-- ko if: assessments().length == 0 -->
<div class="alert alert-warning" id="emptyAlert">No assessments added yet!</div>
<!-- /ko -->
<!-- ko foreach: assessments -->
<div class="list-group-item" data-bind="css: { 'list-group-item-dull': graded() }">
<div class="btn-group" style="float:right">
<button class="btn btn-warning btn-sm" id="editAssessment" data-bind="click: $parent.editAssessment"><span class="glyphicon glyphicon-pencil"> </span></button>
<button class="btn btn-danger btn-sm" id="removeAssessment" data-bind="click: $parent.removeAssessment"><span class="glyphicon glyphicon-trash"> </span></button>
</div>
<h3 class="list-group-item-heading"><!-- ko text: assName --><!-- /ko -->
<small data-bind="text: niceWeighting"></small>
</h3>
<!-- <small data-bind="text: graded() ? 'Graded' : 'Not yet graded'"></small> -->
<div class="progress">
<div class="progress-bar" data-bind="style: { width: percentage() + '%' }">
<span class="sr-only">Subject Mark: 100/120</span>
<span><!-- ko text: score --><!-- /ko -->/<!-- ko text: total --><!-- /ko --></span>
</div>
</div>
</div>
<div class="list-group-item list-group-item-dull" id="editPane" data-bind="visible: editing()">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="control-label">Name</label>
<input class="form-control" type="text" data-bind="value: assName">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label class="control-label">Score</label>
<input class="form-control" type="number" data-bind="value: score">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label class="control-label">Total</label>
<input class="form-control" type="number" data-bind="value: total">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label class="control-label">Weight</label>
<input class="form-control" type="number" data-bind="value: weighting">
</div>
</div>
<div class="col-sm-12 form-group clearfix">
<div class="pull-right">
<button class="btn btn-success" data-bind="click: $parent.closeEdit">Close</button>
</div>
</div>
</div>
</div>
<!-- /ko -->
</div>
</div>
<div class="panel-footer clearfix" id="assessmentPanelFooter">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label class="control-label" for="newAssessmentName">Assessment name</label>
<input type="text" class="form-control" id="newAssessmentName" placeholder="e.g. Mid-Semester Test">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<label class="control-label" for="newAssessmentScore">Your result</label>
<input type="number" class="form-control" id="newAssessmentScore" placeholder="e.g. 15">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label class="control-label" for="newAssessmentScoreMax">Total</label>
<input type="number" class="form-control" id="newAssessmentScoreMax" placeholder="e.g. 20">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="control-label" for="newAssessmentWeighting">Weighting</label>
<div class="input-group">
<input type="number" class="form-control" id="newAssessmentWeighting">
<span class="input-group-addon">%</span>
</div>
<p class="help-block">Amount this assessment counts towards the total subject mark.</p>
</div>
</div>
</div>
<!-- <div class="row">
<div class="col-sm-12">
<div class="form-group">
<label>Graded? </label>
<input id="newAssessmentGraded" type="checkbox">
<span class="help-block">Check this box if you have recieved your final mark for this item</span>
</div>
</div>
</div> -->
<button class="btn btn-block btn-default" id="addAssessment">Add Assessment
<span class="glyphicon glyphicon-plus"> </span>
</button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">Subject Overview</div>
</div>
<div class="panel-body">
<div id="subjectOverview" data-bind="with: subject">
<div id="subjectOverviewLegend" class="clearfix">
<div class="pull-left marks-earnt bg-success">Marks earnt</div>
<div class="pull-right marks-lost bg-danger">Marks lost</div>
</div>
<div class="progress progress-fat" style="margin-bottom:0px">
<div class="progress-bar progress-bar-fat progress-bar-success" id="overviewEarnt" data-bind="style: { width: marksOverview().earnt + '%' }"><!-- ko text: marksOverview().earnt --><!-- /ko -->% Earnt</div>
<div class="progress-bar progress-bar-fat progress-bar-warning" id="overviewPending" data-bind="style: { width: marksOverview().pending + '%' }"><!-- ko text: marksOverview().pending --><!-- /ko -->% Pending</div>
<div class="progress-bar progress-bar-fat progress-bar-danger" id="overviewLost" data-bind="style: { width: marksOverview().lost + '%' }"><!-- ko text: marksOverview().lost --><!-- /ko -->% Lost</div>
</div>
<div>
<small class="pull-left">
0%
</small>
<small class="pull-right">
100%
</small>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<p class="panel-title">Weighting Overview</p>
</div>
<div class="panel-body">
<div id="pieChart" class="weightingChart" style="width:100%;height:400px"></div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="pull-right">
<button class="btn btn-warning" onclick="if(confirm('Are you sure you want to clear your saved data?')){clearState()};">Clear Subject data from browser <span class="glyphicon glyphicon-lock"> </span></button>
<button class="btn btn-success" onclick="saveState();alert('Subject data saved');">Save Subject data to browser <span class="glyphicon glyphicon-lock"> </span></button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="alert alert-warning">
<b>Got any suggestions or feedback?</b>
<p>I'd love to hear from you. <a href="https://docs.google.com/forms/d/1PmWCxkdZHnZ_QfxOyw_mNscLj5dhOgGNXOfIo-MrdyQ/viewform?usp=send_form" target="_blank">Submit your feedback here</a>!</p>
<br />
<b>Planned Features</b>
<ul>
<li>Ability to manage more than one subject</li>
<li>Export/Import of data</li>
<li>Slider-bars for subjects if you haven't got a mark for them yet</li>
</ul>
</div>
</div>
</div>
</main>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.flot.js"></script>
<script type="text/javascript" src="js/jquery.flot.pie.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/transition.js"></script>
<script type="text/javascript" src="js/collapse.js"></script>
<script type="text/javascript" src="js/bootstrap-slider.js"></script>
<script type="text/javascript" src="js/knockout.js"></script>
<!-- <script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> -->
<script type="text/javascript" src="js/main.js"></script>
<!-- Google Analytics for Github Pages -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-52139886-1', 'nuclearpidgeon.github.io');
ga('send', 'pageview');
</script>
</body>
</html>