-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (98 loc) · 4.08 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
<!DOCTYPE html>
<html ng-app="myCalc">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="assets\calc.css">
<script type="text/javascript" src="assets/angular.min.js"></script>
<script type="text/javascript" src="assets/calc.js"></script>
<title>Cacluate My Grade</title>
</head>
<body>
<div id="myCalc" ng-controller="calcController">
<main>
<section class="category">
<h4>Category</h4>
<form>
<select ng-model="cat1" ng-options="o as o for o in categoryOptions">
</select>
</form>
<br></br>
<form>
<select ng-model="cat2" ng-options="o as o for o in categoryOptions">
</select>
</form>
<br></br>
<form>
<select ng-model="cat3" ng-options="o as o for o in categoryOptions">
</select>
</form>
<br></br>
<form>
<select ng-model="cat4" ng-options="o as o for o in categoryOptions">
</select>
</form>
</section>
<section class="currentPerc">
<h4>Grade Percentage</h4>
<form>
<input type="number" ng-change="calc()" ng-model="gp1" value="{{gp1}}">%
</form>
<br></br>
<form>
<input type="number" ng-change="calc()" ng-model="gp2" value="{{gp2}}">%
</form>
<br></br>
<form>
<input type="number" ng-change="calc()" ng-model="gp3" value="{{gp3}}">%
</form>
<br></br>
<form>
<input type="number" ng-change="calc()" ng-model="gp4" value="{{gp4}}">%
</form>
</section>
<section class="weight">
<h4>Weight</h4>
<form>
<input type="number" ng-change="calc()" ng-model="weight1" value="{{weight1}}">%
</form>
<br></br>
<form>
<input type="number" ng-change="calc()" ng-model="weight2" value="{{weight2}}">%
</form>
<br></br>
<form>
<input type="number" ng-change="calc()" ng-model="weight3" value="{{weight3}}">%
</form>
<br></br>
<form>
<input type="number" ng-change="calc()" ng-model="weight4" value="{{weight4}}">%
</form>
<p>{{totalWeight}}</p>
</section>
<section class="contribution">
<h4>Contribution</h4>
<form>
<input type="number" ng-model="contrib1" value="{{contrib1}}">
</form>
<br></br>
<form>
<input type="number" ng-model="contrib2" value="{{contrib2}}">
</form>
<br></br>
<form>
<input type="number" ng-model="contrib3" value="{{contrib3}}">
</form>
<br></br>
<form>
<input type="number" ng-model="contrib4" value="{{contrib4}}">
</form>
</section>
<div class="result">
<h4>Your Grade</h4>
<p>{{grade}} %</p>
</div>
</main>
</div>
</body>
</html>