-
Notifications
You must be signed in to change notification settings - Fork 6
/
bbindex.html
175 lines (161 loc) · 4.8 KB
/
bbindex.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
<!doctype html>
<html>
<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: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;
">
<img src="https://dt8kf6553cww8.cloudfront.net/static/images/brand/vertical-vflBD8dfC.png" style="
float: left;
margin-right: 20px;
">
<p style="
margin-bottom: 0.7em;
"><strong>Don't lose your coursework.</strong></p><p style="
margin-bottom: .4em;
">Keep it in Dropbox, with 2GB 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>Updated for 2013-14.</strong></p>
<p style="margin-bottom: .4em;">Rules last updated October 24, 2013.</p>
</div>
</div>
</div>
<div class="row">
<div>
<div id="results" class="row">
Loading...
</div>
</div>
<section class="row">
<div class="large-6 small-12 columns">
<h2>Year 2 Units</h2>
<div id="y2t">
Loading...
</div>
</div>
<div class="large-6 small-12 columns">
<h2>Year 3 Units</h2>
<div id="y3t">
Loading...
</div>
</div>
</section>
<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 type="template" id="tUnitTableRow">
<td>
<input type="text" name="title">
</td>
<td>
<input type="number" min="0" max="40" step="10" name="credits">
</td>
<td>
<input type="number" min="0" max="100" name="grade">
</td>
<td><button class="removeUnit tiny alert">x</button></td>
</script>
<script type="template" id="tUnitTable">
<div class="units-buttons">
<button class="addUnit tiny secondary left">+ Add Unit</button>
<button 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></tbody>
</table>
</script>
<script type="template" id="tResults">
<div class="results-table large-8 small-8 columns">
<% if ( ! _.isEmpty(results)) { %>
<table>
<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>
</table>
<% } else { %>
<% } %>
</div>
<div class="results-button large-4 small-4 columns">
<button class="generateResults highlight right">Generate Results</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>
</script>
<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="js/app.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>