Skip to content

Commit

Permalink
Merge pull request Its-Aman-Yadav#1183 from aditya-bhaumik/scroll-bug…
Browse files Browse the repository at this point in the history
…-fixed

fixed major bug in all the pages
  • Loading branch information
Its-Aman-Yadav authored Jul 21, 2024
2 parents eff2775 + de3ae32 commit 2cc8ebb
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 4 deletions.
8 changes: 7 additions & 1 deletion about us.html
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,12 @@ <h1>OUR PROJECTS</h1>
<!-- counter js -->

<script>


document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';


const counters = document.querySelectorAll(".counters span");
const container = document.querySelector(".counters");

Expand Down Expand Up @@ -783,4 +789,4 @@ <h1>OUR PROJECTS</h1>

</body>

</html>
</html>
5 changes: 5 additions & 0 deletions licensing.html
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ <h2 class="license-title">MIT License</h2>
</svg>

<script>

document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';


function sendFeed() {
alert('Email sent successfully!');
}
Expand Down
5 changes: 5 additions & 0 deletions member.html
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,11 @@ <h2>Contact Us</h2>

<script src="https://cdn.botpress.cloud/webchat/v1/inject.js"></script>
<script>

document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';


window.botpressWebChat.init({
"composerPlaceholder": "Open Source Village",
"botConversationDescription": "Ask me anything!",
Expand Down
2 changes: 2 additions & 0 deletions mentorship.html
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,8 @@ <h2>Success Stories</h2>
<!-- swiper JS -->
<script src="js/swiper-bundle.min.js"></script>
<script>
document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';

/*=============== SWIPER JS ===============*/
let swiperCards = new Swiper(".card__content", {
Expand Down
7 changes: 6 additions & 1 deletion network.html
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,12 @@ <h2>Professional Development</h2>
}
</script>
</div>
<script>let scrollToTopBtn = document.getElementById("scrollToTopBtn");
<script>

document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';

let scrollToTopBtn = document.getElementById("scrollToTopBtn");
let circle = document.querySelector(".progress-ring__circle");
let radius = circle.r.baseVal.value;
let circumference = 2 * Math.PI * radius;
Expand Down
9 changes: 8 additions & 1 deletion open-learning.html
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,14 @@ <h2>Continuous Improvement</h2>
}
</script>
</div>
<script>let scrollToTopBtn = document.getElementById("scrollToTopBtn");
<script>


document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';


let scrollToTopBtn = document.getElementById("scrollToTopBtn");
let circle = document.querySelector(".progress-ring__circle");
let radius = circle.r.baseVal.value;
let circumference = 2 * Math.PI * radius;
Expand Down
10 changes: 9 additions & 1 deletion our plan.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,15 @@
</footer>

</div>
<script>let scrollToTopBtn = document.getElementById("scrollToTopBtn");
<script>


document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';



let scrollToTopBtn = document.getElementById("scrollToTopBtn");
let circle = document.querySelector(".progress-ring__circle");
let radius = circle.r.baseVal.value;
let circumference = 2 * Math.PI * radius;
Expand Down
5 changes: 5 additions & 0 deletions privacypolicy.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@
</nav>
</div>
<script>

document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';


document.addEventListener('DOMContentLoaded', function () {
const toggleButton = document.getElementById('checkbox');
toggleButton.addEventListener('change', function () {
Expand Down
4 changes: 4 additions & 0 deletions support.html
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@ <h2>Need Support? <br> Contact Us!</h2>
</script>

<script>

document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';

document.addEventListener('DOMContentLoaded', function () {
const toggleButton = document.getElementById('checkbox');
const currentMode = localStorage.getItem('dark-mode');
Expand Down
4 changes: 4 additions & 0 deletions terms&conditions.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@
</nav>
</div>
<script>

document.documentElement.style.overflow = 'auto';
document.body.style.overflow = 'auto';

document.addEventListener('DOMContentLoaded', function () {
const toggleButton = document.getElementById('checkbox');
toggleButton.addEventListener('change', function () {
Expand Down

0 comments on commit 2cc8ebb

Please sign in to comment.