-
Notifications
You must be signed in to change notification settings - Fork 0
/
landingpage.js
31 lines (24 loc) · 1.26 KB
/
landingpage.js
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
// Show/hide CGPA definition
document.getElementById('showCgpaDefinition').addEventListener('click', function() {
const definition = document.getElementById('cgpaDefinition');
definition.style.display = 'block';
document.getElementById('showGradeTable').style.display = 'block'; // Show the next button
});
// Show/hide grade table
document.getElementById('showGradeTable').addEventListener('click', function() {
const gradeTable = document.getElementById('gradeTable');
gradeTable.style.display = 'block';
document.getElementById('showCalculationMethod').style.display = 'block'; // Show the next button
});
// Show/hide calculation method
document.getElementById('showCalculationMethod').addEventListener('click', function() {
const calculationMethod = document.getElementById('calculationMethod');
calculationMethod.style.display = 'block';
document.getElementById('thankYouMessage').style.display = 'block'; // Show thank you message
});
function getQueryParam(param) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(param);
}
const name = getQueryParam('name');
document.getElementById('displayName').textContent = name;