-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
executable file
·100 lines (91 loc) · 6.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="GPA, 12-point, 9-point, gpa conversion">
<meta name="description" content="Calculate your canadian GPA, percentage, 12-point system grade, and 9 point system grade. Supports GPA conversion for over 50 Candian universities, including University of Waterloo, University of York, University of Toronto (UFT) and more.">
<meta property="og:image" content="/assets/logo.png" />
<title>WhatsMyGPA.ca - Canadian Universities and College GPA Calculator</title>
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,700,900|Source+Sans+Pro:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style/dist/dist.css">
<script src="scripts/dist/main.js"></script>
</head>
<body ng-app='WhatsMyGPA.ca'>
<header class="header">
<a href="/" class="logo">WhatsMy<span class="bold">GPA</span>.ca</a>
<h2>Supports Every Canadian University and College</h2>
</header>
<noscript class="alert alert-danger center-text">Please Enable Javascript Before Continuing</noscript>
<section id="main-content" ng-cloak>
<form ng-controller="InputController" name="gradeForm" class="grade-input-form" novalidate>
<h3>1. Select your university or college</h3>
<ui-select theme="bootstrap" ng-model="university.selected.value" title="Select your university or college" class="university-selection-input" on-select="universitySelected()" >
<ui-select-match id="university-selection" placeholder="Select your college or university">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="university in UniversityList | uniFilter: $select.search">
<p ng-bind-html="university.name | highlight: $select.search">{{university.name}}</p>
<p class="university-location"><span ng-bind-html="university.location.city | highlight: $select.search">{{university.location.city}}</span>, <span ng-bind-html="university.location.state | highlight: $select.search">{{university.location.state}}</span>, <span ng-bind-html="university.location.country | highlight: $select.search">{{university.location.country}}</span></p>
</ui-select-choices>
</ui-select>
<p class="searchStatus" ng-show='!searchSuccess()'>Can't find your university or college? <a href="https://github.com/sergei1152/WhatsMyGPA" >Add it here.</a></p>
<h3>2. What type of grades are you inputting?</h3>
<div class="grade-input-type-wrapper" ng-hide="university.selected">
<div class="grade-input-type radio">
<input title="Select the grade input type" type="radio" disabled>
<h6 title="Select the grade input type">GPA (eg. 3.46)</h6>
</div>
<div class="grade-input-type radio">
<input title="Select the grade input type" type="radio" disabled>
<h6 title="Select the grade input type">Percentage (eg. 86%, 70%)</h6>
</div>
<div class="grade-input-type radio">
<input title="Select the grade input type" type="radio" disabled>
<h6 title="Select the grade input type">Letter (eg. A+, B-)</h6>
</div>
</div>
<div class="grade-input-type-wrapper">
<div class="grade-input-type radio" ng-repeat="(key, value) in university.selected.value.gradeConversions">
<input ng-change="gradeInputTypeSelected()" id="gradeInput{{$index}}" title="Select the grade input type" type="radio" name="grade-input-type" ng-value="key" ng-model="$parent.university.selectedGradeInput">
<label for="gradeInput{{$index}}" title="Select the grade input type">{{value.name}} (eg. {{value.example}})</label>
</div>
</div>
<h3>3. Enter your grades and their credit weight</h3>
<div class="semesters-wrapper" scroll-glue='angularScrollGlue'>
<div class="semester" ng-repeat="semester in ReportCard.semesters">
<div class="label-wrapper">
<label>Grade</label>
<label>Credit</label>
</div>
<div class="grade" ng-repeat="grade in semester">
<input ng-change="Calculate()" ng-disabled="!university.selectedGradeInput" title="Enter your grade here" ng-model="grade.value" type="text" class="grade-input form-control" ui-validate="{badGrade : 'validateGrade($value)' }">
<div class="credit-weight-input">
<input ng-change="Calculate()" ng-disabled="!university.selectedGradeInput" title="Enter the credit weight for the grade here" list="credit-weights" type="text" class="form-control" ui-validate="{badGrade : 'validateCredit($value)'}" ng-model="grade.creditWeight" >
<datalist id="credit-weights">
<option ng-repeat="creditWeight in university.selected.value.commonCreditWeights">{{creditWeight}}</option>
</datalist>
</div>
</div>
</div>
</div>
<div class="button-wrapper">
<button class="btn btn-danger btn-large no-border" ng-click="clearGrades()">Clear</button>
<button class="btn btn-info btn-large no-border" ng-click="addGrades();">Add Grades</button>
<button class="btn btn-success btn-large no-border" ng-click="Calculate('button')">Calculate</button>
</div>
</form>
<section ng-hide="isEmpty(Results)" id="grade-output-results" ng-controller="OutputController">
<a ng-click="open()">View Conversion Chart</a>
<div class="result" ng-repeat="(key, value) in Results">{{value.name}}: <span class="value">{{value.result}} <span ng-show="value.max">/{{value.max}}</span></span></div>
<a id="facebook-button" ng-click='Facebook.share()'><div class="image"><span class="icon ion-social-facebook"></span></div>Share Website<span></span></a>
</section>
</section> <!-- main section ends -->
<footer>
<p>Created by <a href="http://www.sergebabayan.com">Serge Babayan</a></p>
<p><a href="https://www.github.com/sergei1152/WhatsMyGPA">View on Github</a></p>
</footer>
<script>
$('input[list]').datalist(); //for datalist support on browsers that dont support it
</script>
</body>
</html>