Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
M-MUGESHCHARLES committed Sep 11, 2024
1 parent 8e4ea7f commit 22fdc38
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions assets/Jscript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ document.addEventListener("DOMContentLoaded", function () {
}, 8000);
}

// ShowCase
function toggleClassBasedOnWidth() {
const element = document.getElementById("ShowCase");
if (window.innerWidth < 768) {
element.classList.add("row");
element.classList.remove("d-flex ", "flex-row", "overflow-x-scroll");
} else if (window.innerWidth >= 768) {
element.classList.add("d-flex", "flex-row", "overflow-x-scroll");
element.classList.remove("row");
}
}
toggleClassBasedOnWidth();
window.addEventListener("resize", toggleClassBasedOnWidth);
// // ShowCase
// function toggleClassBasedOnWidth() {
// const element = document.getElementById("ShowCase");
// if (window.innerWidth < 768) {
// element.classList.add("row");
// element.classList.remove("d-flex ", "flex-row", "overflow-x-scroll");
// } else if (window.innerWidth >= 768) {
// element.classList.add("d-flex", "flex-row", "overflow-x-scroll");
// element.classList.remove("row");
// }
// }
// toggleClassBasedOnWidth();
// window.addEventListener("resize", toggleClassBasedOnWidth);

// AOS
function initializeAOS() {
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ <h2 class="c1 RobotoSlab" data-aos="fade-up" data-aos-delay="500" data-aos-durat
</p>
</div>

<div class="g-4 py-3 pb-5 px-5" id="ShowCase">
<div class="d-flex flex-row overflow-x-scroll g-4 py-3 pb-5 px-5" id="ShowCase">
<div class="col-md-6 col-lg-4 px-0 px-md-2 px-lg-4">
<div class="card rounded-4 overflow-hidden border-3 h-100 shadow-lg"
data-aos="fade-right" data-aos-delay="700" data-aos-duration="600"
Expand Down Expand Up @@ -1244,7 +1244,7 @@ <h2 class="c1 RobotoSlab" >
</p>
</div>

<div class="g-4 py-3 pb-5 px-5" id="ShowCase">
<div class="row g-4 py-3 pb-5 px-5" id="ShowCase">
<div class="col-md-6 col-lg-4 px-0 px-md-2 px-lg-4">
<div class="card rounded-4 overflow-hidden border-3 h-100 shadow-lg" >
<div class="card-header p-0">
Expand Down

0 comments on commit 22fdc38

Please sign in to comment.