-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (121 loc) · 5.51 KB
/
index.html
File metadata and controls
153 lines (121 loc) · 5.51 KB
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 lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=yes">
<title>Gradient - The Alpha Grade Calculator</title>
<link type="text/css" rel="stylesheet" href="styles.css"/>
<script type="text/javascript" src="grade_calculator.js"></script>
</head>
<body>
<div class="container">
<div class="header">
<h1 class="logo">Gradient</h1>
<p>Select the number of grades to average:</p>
<!-- Select the number of grades to get average of -->
<div id="numgrades">
<a href="#" class="numgrade-button" id="1" onclick="insult()">1</a>
<a href="#" class="numgrade-button" id="2" onclick="getNumGrades(2)">2</a>
<a href="#" class="numgrade-button" id="3" onclick="getNumGrades(3)">3</a>
<a href="#" class="numgrade-button active" id="4" onclick="getNumGrades(4)">4</a>
</div>
</div>
<!-- Main content (Grades container and results container with display css setting switched by javascript) -->
<div id ="maincontent">
<div id="insult" class="hidden">
<p>
You need to get the average of one grade?
</p>
<p>
Dougal, how did you get into college? Was it like,
collect twelve crisp packets and become a lecturer?
</p>
<a href="https://www.youtube.com/watch?v=nOWR2LPZ-TI" class="button" target="_blank"><img src="images/youtube.svg" class="button-icon" /> Classic Ted</a>
</div>
<!-- Grades to be calculated -->
<div id="calc">
<div id="grades">
<form id="setgrades"></form>
<div class="clearfix"></div>
</div>
<a href="javascript:sumGrades()" id="dothething" class="button">Calculate!</a>
</div>
<!-- Outputted results -->
<div id="themath">
<div class="dark-box">
<h2>RESULT:</h2>
<p id="result" class="lookwhatigot"></p>
</div>
<p>You selected:</p>
<div id="youselected" class="youselected">
</div>
<a href="javascript:resetButton();" id="reset" class="button">Reset</a>
<a href="#" onClick="classToggle(nerd)" class="expandable-link">Show calculations</a>
<div id="nerd" class="hidden">
<div class="allthemath ">
<div>
<div id="enteredgrades"></div>
</div>
<div>
<div id="gradesasmarks"></div>
</div>
<div>
<h6>SUM</h6>
</div>
<div>
<span id="total"></span>
</div>
<div>
<h6>DIVIDED BY</h6>
</div>
<div>
<span id="num_grades"></span>
</div>
<div>
<h6>AVERAGE</h6>
</div>
<div>
<span id="average"></span>
</div>
<div><h6>ROUNDED</h6>
</div>
<div>
<span id="rounded"></span>
</div>
<div>
<h6>AS ALPHA</h6>
</div>
<div>
<span id="output"></span>
</div>
</div>
</div>
</div> <!-- end of "themath" -->
<div id="aboutmodal" class="modal hidden">
<div class="modal-content">
<h1 class="logo">Gradient</h1>
<p>
Gradient is based on alpha grade calculation points used by UCD and NCAD. It can be used to get the total average grade based on two,
three or four assessment criteria.
</p>
<h3>Disclaimer</h3>
<p>
While every effort has been made to ensure the reliabilty of Gradient there is no guarantee the information presented on this website
is accurate or up to date. By using this website you accept that you do so at your own risk. No liability is accepted by the creator
of this site for any errors, inaccuaracies or mistakes arising through its use. The code is open source and can be viewed on <a href="https://github.com/Sloggiebear/Gradient" target="_blank">Github</a>.
Feel free to suggest edits to improve it.
</p>
<a href="javascript:classToggle(aboutmodal);" class="button">OK, got it!</a>
</div>
</div>
<div class="footer">
<p>© <a href="http://www.loganmclain.com" target="_blank">Logan McLain</a> | <a href="javascript:classToggle(aboutmodal);" >About Gradient</a></p>
</div>
</div> <!-- end of main content-->
</div>
</div>
<script>
document.onload = getNumGrades(4);
</script>
</body>
</html>