-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
185 lines (174 loc) · 6.33 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
<!doctype html>
<html ng-app="DegreeCalculator">
<head>
<title>Portsmouth University Degree Classification Calculator</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/almost-flat-ui.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1&appId=144065965646596";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<nav class="top-bar">
<ul class="title-area">
<li class="name">
<h1><a href="#">UoP Degree Classification Calculator</a></h1>
</li>
</ul>
</nav>
<div class="row" style="margin-bottom:3em;">
<div class="large-8 large-offset-2 small-12 columns" style="
background: #fff;
border: 2px solid #f00;
border-radius: 5px;
padding: 10px 20px;
box-shadow: 1px 1px #eee;
color: #f00;
">
<p style="margin-bottom: 0.7em;"><strong>New version avaliable!</strong></p>
<p style="margin-bottom: .4em;">
I originally built this to procrasinate on my dissertation, because trying to understand the various rules from a PDF file was pretty damn difficult.
</p>
<p style="margin-bottom: 1em;">
Thanks to everyone who's used this tool over the years, there's now a UoP "official" & continuously updated version of this tool, courtesy of Rich Boakes and Jacek Kopecký.
</p>
<p style="margin-bottom: .4em;">
<a href="https://portsoc.github.io/dcalc/" style="background: blue; color: white; padding: .5em 1em;">Use the new official tool ></a>
</p>
</div>
</div>
<div class="row" style="margin-bottom:1.4em;">
<a href="https://db.tt/aWycep1" class="large-6 small-12 columns">
<div style="
background: #FAFAFA;
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px 20px;
box-shadow: 1px 1px #eee;
">
<p style="margin-bottom: 0.7em;"><strong>Don't lose your coursework.</strong></p>
<p style="margin-bottom: .4em;">Keep it in Dropbox, with 2.5GB of free space for life.</p>
</div>
</a>
<div class="large-6 small-12 columns" style="text-align: right;">
<div class="large-12 small-12 columns" style="
background: #FAFAFA;
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px 20px;
box-shadow: 1px 1px #eee;
">
<img src="https://dt8kf6553cww8.cloudfront.net/static/images/brand/vertical-vflBD8dfC.png" style="
float: left;
margin-right: 20px;
opacity: 0;
">
<p style="margin-bottom: 0.7em;"><strong>Rules last updated Oct 24, 2013</strong></p>
<p style="margin-bottom: .4em;"><a href="http://www.port.ac.uk/accesstoinformation/policies/academicregistry/filetodownload,165751,en.pdf">The official UoP regulations (see Section 5.3, point iv)</a></p>
</div>
</div>
</div>
<div ng-controller="ResultsCtrl" class="row" ng-cloak>
<div>
<div id="results" class="row">
<div class="results-table large-8 small-8 columns">
<table ng-if="results">
<tr>
<td class="results-grade">
{{ results.grade }}
<br>
<small>({{ results.result }})</small>
</td>
<td class="results-meta">
Rule A: {{ results.details.ruleA }}<br>
Rule B: {{ results.details.ruleB }}<br>
Rule C: {{ results.details.ruleC }}
</td>
</tr>
<tr ng-if="results.borderline">
<td colspan="2" style="text-align: center;">
<em>Grade is borderline.</em>
</td>
</tr>
</table>
<div class="error" ng-if="!results">{{ classifierError }}</div>
</div>
<div class="results-button large-4 small-4 columns">
<button class="generateResults highlight right" disabled>
No Button!<br>
<small style="font-weight:normal;font-size:.9em;">Now Updates Automatically</small>
</button>
<div style="margin-top:10px;">
<div class="fb-share-button" data-href="http://code.danharper.me/portsdegree" data-type="button_count"></div>
</div>
</div>
</div>
</div>
<section class="row">
<div class="large-6 small-12 columns" ng-repeat="year in [2,3]">
<h2>Year {{ year }} Units</h2>
<div id="y2t">
<div class="units-buttons">
<button ng-click="addUnit(year)" class="addUnit tiny secondary left">+ Add Unit</button>
<button ng-click="clearUnits(year)" class="removeUnits tiny secondary right">x Remove Units</button>
</div>
<table class="large-12 small-12">
<thead>
<tr>
<th>Unit</th>
<th>Credits</th>
<th>Grade (%)</th>
<th class="removeUnitCol"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="unit in units['year'+year]">
<td>
<input type="text" name="title" ng-model="unit.title">
</td>
<td>
<input type="number" min="0" max="40" step="10" name="credits" ng-model="unit.credits">
</td>
<td>
<input type="number" min="0" max="100" name="grade" ng-model="unit.grade">
</td>
<td><button class="removeUnit tiny alert" ng-click="removeUnit(year, unit)">x</button></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
</div>
<div class="row">
<footer>
<p><small>
by <a href="http://twitter.com/danharper7">Dan Harper</a>
–
<a href="https://github.com/danharper/portsdegree">Open Source with GitHub</a>
</small></p>
</footer>
</div>
<!--<script src="js/libs/jquery-2.0.0.js"></script>-->
<script src="js/libs/underscore.js"></script>
<!--<script src="js/libs/backbone.js"></script>
<script src="js/libs/backbone.localStorage.js"></script>
<script src="js/libs/Backbone.ModelBinder.js"></script>
<script src="js/libs/backbone.marionette.js"></script>-->
<script src="js/classifier.js"></script>
<script src="bower_components/angular/angular.min.js"></script>
<script src="js/ngapp.js"></script>
<script>
var _gaq=[['_setAccount','UA-5086243-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>