Server : Apache System : Linux 122.228.205.92.host.secureserver.net 5.14.0-362.18.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 29 07:05:48 EST 2024 x86_64 User : ondostategov ( 1002) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/ondostategov/public_html/scholarshipboardondostate/js/ |
$(document).ready(function () {
// script for sticky navigation //
$(window).scroll(function () {
if ($(window).scrollTop() >= 100) {
$('nav').addClass('fixed-header');
} else {
$('nav').removeClass('fixed-header');
}
});
/* scrollTop() >= 100
Should be equal the the height of the header
*/
//script for smooth scrolling
jQuery(document).ready(function ($) {
$(".scroll ").click(function (event) {
event.preventDefault();
$('html,body').animate({
scrollTop: $(this.hash).offset().top
}, 1000);
});
});
//script for ease
$(document).ready(function () {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({
easingType: 'easeOutQuart'
});
});
});