Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Aug 19, 2024
1 parent f44d18b commit d5d998a
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions site.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,49 +88,49 @@ $.extend($.easing,
})( jQuery );


$(document).ready(function (){
$(document).ready(function () {

// Initialize the side navigation for mobile
$(".button-collapse").sideNav();


// Initialize navScroller for smooth scrolling in nav items
$('nav li a').navScroller();

//section divider icon click gently scrolls to reveal the section
$(".sectiondivider").on('click', function(event) {
$('html,body').animate({scrollTop: $(event.target.parentNode).offset().top - 50}, 400, "linear");
});
// Section divider icon click gently scrolls to reveal the section
$(".sectiondivider").on('click', function(event) {
$('html,body').animate({scrollTop: $(event.target.parentNode).offset().top - 50}, 400, "linear");
});

//links going to other sections nicely scroll
$(".container a").each(function(){
// Links going to other sections nicely scroll
$(".container a").each(function(){
if ($(this).attr("href").charAt(0) == '#'){
$(this).on('click', function(event) {
event.preventDefault();
// No event.preventDefault() here
var target = $(event.target).closest("a");
var targetHight = $(target.attr("href")).offset().top
$('html,body').animate({scrollTop: targetHight - 170}, 800, "easeInOutExpo");
var targetHight = $(target.attr("href")).offset().top;
$('html,body').animate({scrollTop: targetHight - 170}, 800, "easeInOutExpo");
});
}
});

$(".button-collapse").sideNav();
});

// Carrousel settings
$(document).ready(function(){
// Initialize carousel with Slick settings
$('.partners').slick({
slidesToShow: 4,
slidesToScroll: 2,
autoplay: true,
arrows: true,
dots: true,
responsive: [
{
breakpoint: 976,
settings: {
slidesToShow: 4,
slidesToScroll: 6
}
}]
slidesToShow: 4,
slidesToScroll: 2,
autoplay: true,
arrows: true,
dots: true,
responsive: [
{
breakpoint: 976,
settings: {
slidesToShow: 4,
slidesToScroll: 6
}
}
]
});
});

});


Expand Down

0 comments on commit d5d998a

Please sign in to comment.