added more preview pages and more templates

This commit is contained in:
2026-07-21 07:10:03 -05:00
parent c6119ffdf5
commit b19fdee30d
3726 changed files with 651487 additions and 6169 deletions
@@ -0,0 +1,29 @@
$(document).ready(function(){
$('.scroll-top').hide();
/*--------------- Navbar Toggler ---------------*/
$('#menu').click(function(){
$(this).toggleClass('fa-times');
$('header').toggleClass('active');
});
/*--------------- Scroll-Top ---------------*/
// On Load/Scroll
$(window).on('load scroll',function(){
$('#menu').removeClass('fa-times');
$('header').removeClass('active');
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$('.scroll-top').fadeIn();
} else {
$('.scroll-top').fadeOut();
}
});
});
});
@@ -0,0 +1,17 @@
var sections = $('section');
$(window).on('scroll',function(){
sections.each(function(){
let top = $(window).scrollTop();
let offset = $(this).offset().top - 200;
let id = $(this).attr('id');
let height = $(this).height();
if(top >= offset && top < offset + height){
$('.navbar a').removeClass('active');
$('.navbar').find(`[href="#${id}"]`).addClass('active');
}
})
});