From d6b4c2e33d1718835fd3df3db196bc95a2c74472 Mon Sep 17 00:00:00 2001 From: Madhurima Rawat <105432776+madhurimarawat@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:17:37 +0530 Subject: [PATCH] Added 7th Sem subjects AGT and MIS Added 7th Sem subjects AGT and MIS --- docs/js/index.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/js/index.js b/docs/js/index.js index 3b3a748..d4001f6 100644 --- a/docs/js/index.js +++ b/docs/js/index.js @@ -2,7 +2,7 @@ ********************************************************************************************* * File: index.js * Author: Madhurima Rawat -* Date: July 18, 2024 +* Date: December 04, 2024 * Description: JavaScript file for study materials website, providing * functionality to dynamically change color schemes based on user-selected seasons. * Version: 1.0 @@ -42,6 +42,15 @@ document.addEventListener("DOMContentLoaded", function () { } }); +// Run when DOM content is fully loaded +document.addEventListener("DOMContentLoaded", function () { + // Center align contentRow element using Flexbox + var contentRow = document.getElementById("contentRow_3"); + if (contentRow) { + contentRow.classList.add("d-flex", "justify-content-center"); + } +}); + // Function to change colors based on the Color parameter function changeColor(Color) { let color; @@ -156,7 +165,11 @@ document.addEventListener("DOMContentLoaded", function () { 'vt-card': 'Vocational Training', // 6 Semester Subjects - 'intern-card': 'Internship' + 'intern-card': 'Internship', + + // 7 Semester Subjects + 'agt-card': 'Algorithmic Gaming Theory', + 'mis-card': 'Management Information System' }; @@ -250,4 +263,4 @@ document.addEventListener("DOMContentLoaded", function () { } } }); -}); \ No newline at end of file +});