Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/sms.picotech.app/public_html/public/front/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /* Sticky Navigation */
$(function() {
var sticky = $('.sticky');
var contentOffset;
var nav_height;
if (sticky.length) {
if ( sticky.data('offset') ) {
contentOffset = sticky.data('offset');
}
else {
contentOffset = sticky.offset().top;
}
nav_height = sticky.height();
}
var scrollTop = $(window).scrollTop();
var window_height = $(window).height();
var doc_height = $(document).height();
$(window).bind('resize', function() {
scrollTop = $(window).scrollTop();
window_height = $(window).height();
doc_height = $(document).height();
navHeight();
});
$(window).bind('scroll', function() {
stickyNav();
});
function navHeight() {
sticky.css('max-height', window_height + 'px');
}
function stickyNav() {
scrollTop = $(window).scrollTop();
if (scrollTop > contentOffset) {
sticky.addClass('fixed');
}
else {
sticky.removeClass('fixed');
}
}
});
$('document').ready(function() {
var nav_height = 70;
$("a[data-role='smoothscroll']").click(function(e) {
e.preventDefault();
var position = $($(this).attr("href")).offset().top - nav_height;
$("body, html").animate({
scrollTop: position
}, 1000 );
return false;
});
});
$('document').ready(function() {
// Back to top
var backTop = $(".back-to-top");
$(window).scroll(function() {
if($(document).scrollTop() > 400) {
backTop.css('visibility', 'visible');
}
else if($(document).scrollTop() < 400) {
backTop.css('visibility', 'hidden');
}
});
backTop.click(function() {
$('html').animate({
scrollTop: 0
}, 1000);
return false;
});
});
$('document').ready(function() {
// Loader
$(window).on('load', function() {
$('.loader-container').fadeOut();
});
// Tooltips
$('[data-toggle="tooltip"]').tooltip();
// Popovers
$('[data-toggle="popover"]').popover();
// Page scroll animate
new WOW().init();
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]-- |