Skip to content

Commit

Permalink
Merge pull request #8 from GDSC-IIIT-Kalyani/main
Browse files Browse the repository at this point in the history
PR
  • Loading branch information
ImanKalyanChakraborty authored Jan 15, 2024
2 parents 1a24941 + c8552ae commit 95d5349
Show file tree
Hide file tree
Showing 29 changed files with 1,831 additions and 1,132 deletions.
1,088 changes: 752 additions & 336 deletions index.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Initialization for ES Users
import { Tab, Collapse, Carousel, initTE } from 'tw-elements';

initTE({ Collapse });
initTE({ Tab });
initTE({ Carousel });
23 changes: 23 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ document.addEventListener('DOMContentLoaded', function () {
case 'track3':
bodyText.innerHTML = '<h5>Body text for Track 3</h5>';
break;
case 'track4':
bodyText.innerHTML = '<h5>Body text for Track 4</h5>';
break;
case 'track5':
bodyText.innerHTML = '<h5>Body text for Track 5</h5>';
break;
case 'track6':
bodyText.innerHTML = '<h5>Body text for Track 6</h5>';
break;
default:
bodyText.innerHTML = '<h5>Lorem ipsum dolor sit amet</h5>';
}
Expand All @@ -21,6 +30,10 @@ document.addEventListener('DOMContentLoaded', function () {
const dropdown1 = document.querySelector('.button1');
const dropdown2 = document.querySelector('.button2');
const dropdown3 = document.querySelector('.button3');
const dropdown4 = document.querySelector('.button4');
const dropdown5 = document.querySelector('.button5');
const dropdown6 = document.querySelector('.button6');


dropdown1.addEventListener('click', function () {
updateBodyText('track1');
Expand All @@ -33,4 +46,14 @@ document.addEventListener('DOMContentLoaded', function () {
dropdown3.addEventListener('click', function () {
updateBodyText('track3');
});

dropdown4.addEventListener('click', function () {
updateBodyText('track4');
});
dropdown5.addEventListener('click', function () {
updateBodyText('track5');
});
dropdown6.addEventListener('click', function () {
updateBodyText('track6');
});
});
Loading

0 comments on commit 95d5349

Please sign in to comment.