add dropdown year as AY yyyy formate and seprate css files commit

This commit is contained in:
2025-12-06 23:17:22 +05:30
parent 7ee2376455
commit bd24fa5f4e
22 changed files with 643 additions and 807 deletions

View File

@@ -0,0 +1,23 @@
document.addEventListener("DOMContentLoaded", function () {
const yearDropdown = document.getElementById("year");
const currentYear = new Date().getFullYear();
const startYear = 1990;
for (let y = currentYear; y >= startYear; y--) {
let nextYear = y + 1;
let option = document.createElement("option");
// Backend receives only first year (example 2024)
option.value = y;
// User sees (example AY 20242025)
option.textContent = `AY ${y}-${nextYear}`;
yearDropdown.appendChild(option);
}
});