-
Notifications
You must be signed in to change notification settings - Fork 0
/
cgpa-calculator.html
113 lines (103 loc) · 3.27 KB
/
cgpa-calculator.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SRM CGPA Calculator</title>
<link rel="stylesheet" href="css/cgpa-calculator.css">
</head>
<body>
<div class="container">
<h1>SRM CGPA Calculator</h1>
<div>
<label for="regulation">Select Regulation:</label>
<select id="regulation">
<option value="2018">2018</option>
<option value="2021">2021</option>
</select>
</div>
<div>
<label for="course">Select Course:</label>
<select id="course">
<!-- The course options will be dynamically filled based on the selected regulation -->
</select>
</div>
<div class="semester-input">
<label for="semester1">Semester 1 GPA:</label>
<input type="number" id="semester1" step="0.01" min="0" max="4.0" required>
</div>
<div id="additional-semesters">
<!-- Additional semester inputs will be added here -->
</div>
<button onclick="addSemester()">Add Another Semester</button>
<button onclick="removeSemester()">Remove Last Semester</button>
<button onclick="calculateCGPA()">Calculate CGPA</button>
<div class="result">
<p>Your CGPA: <span id="cgpa">N/A</span></p>
</div>
</div>
<footer>
<div class="footer-content">
<div class="footer-text">
Developed by
<a href="https://www.linkedin.com/in/sai23/" target="_blank">Sai Narayana</a>
and
<a href="https://www.linkedin.com/in/hariesh-s-r/" target="_blank">Hariesh</a>
</div>
</div>
</footer>
<style>
footer {
background-color: #333;
color: #fff;
padding: 10px 0; /* Reduced height by adjusting padding */
position: fixed;
bottom: 0;
width: 100%;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s;
}
.footer-content {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.footer-text {
font-size: 16px;
flex: 1;
text-align: center;
}
.footer-text a {
font-weight: 600;
cursor: pointer;
transition: color 0.3s;
color: #fff;
text-decoration: none; /* Removes underline from links */
}
.footer-text a:hover {
color: #b8b8b8;
}
.social-icons {
display: flex;
align-items: center;
}
.social-icons a {
margin-left: 10px;
font-size: 20px;
color: #fff;
transition: color 0.3s;
}
.social-icons a:hover {
color: #0077b5;
}
footer:hover {
transform: translateY(-10px);
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}
</style>
<script src="js/cgpa-calculator.js"></script>
</body>
</html>