{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www/////comjagat-org-website/js/main.js
(function() { "use strict"; const select = (el, all = false) => { el = el.trim() if (all) { return [...document.querySelectorAll(el)] } else { return document.querySelector(el) } } const on = (type, el, listener, all = false) => { let selectEl = select(el, all) if (selectEl) { if (all) { selectEl.forEach(e => e.addEventListener(type, listener)) } else { selectEl.addEventListener(type, listener) } } } let preloader = select('#preloader'); if (preloader) { window.addEventListener('load', () => { $('#preloader').fadeOut() }); } // toggle menu $(document).on('click', '.mobile-menu-container a', function(e){ e.preventDefault(); $('.mobile-menu-container').toggleClass('on'); if($(this).attr('val') == 0){ $(this).attr('val', 1); $('.mobile-menu').css({height:'100%'}); }else{ $(this).attr('val', 0); $('.mobile-menu').css({height:'0'}); } }); // Scroll top to & div $(document).on('click', '.scrollDown',function(e) { $('html, body').animate({ scrollTop: $(window).height() }, 1200); }); $(document).on('click', '#toTop',function(e) { $('html, body').animate({ scrollTop: 0 }, 1200); }); // sticky nav var sticky_navigation_offset_top = $('#header').offset().top; var body_offset_bottom = $('body').offset().top + $('body').outerHeight(); var sticky_navigation = function(){ var scroll_top = $(window).scrollTop()-50; if (scroll_top > sticky_navigation_offset_top) { $(".header").addClass('on'); $("#toTop").addClass('topOn'); }else{ $(".header").removeClass('on'); $("#toTop").removeClass('topOn'); } // console.log(scroll_top + $(window).height()); // console.log(body_offset_bottom); // console.log($('body').outerHeight()); if ((scroll_top + $(window).height()) > (body_offset_bottom - 100)) { $("#toTop").addClass('topFooterFixing'); }else{ $("#toTop").removeClass('topFooterFixing'); } }; sticky_navigation(); $(window).scroll(function() { sticky_navigation(); }); // AOS Fade in/up/left/down animation AOS.init({ easing: 'ease-in-out', duration: 1000 }); // caraousel Honme -------------------- var owl = $('.home-carousel'); // owl.on('change.owl.carousel', function(event) { // // $('.owl-item .slider-content').removeClass('fade-in-class'); // $('.owl-item .slider-content').hide(); // // $('.active .slider-content').delay(1000).fadeIn(); // $('.owl-item.active .slider-content').addClass('fade-in-class'); // }) // $('.owl-item.active .slider-content').fadeIn(); owl.owlCarousel({ animateOut: 'fadeOut', animateIn: 'fadeIn', autoplayTimeout:5000, loop:true, autoplay:true, margin:0, nav:true, dots:true, navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'], responsiveClass:true, // touchDrag:false, // pullDrag:false, // freeDrag:false, mouseDrag:false, slideTransition:'fade', responsive:{ 0:{ items:1, nav:true, loop:true }, 500:{ items:1, nav:true, loop:true }, 768:{ items:1, nav:true, loop:true }, 1000:{ items:1, nav:true, loop:true }, 1400:{ items:1, nav:true, loop:true } } }); $('.home-carousel .fa-angle-left').on('click', function(e) { $('.home-carousel').trigger('stop.owl.autoplay'); }); $('.home-carousel .fa-angle-right').on('click', function(e) { $('.home-carousel').trigger('stop.owl.autoplay'); }); // client caraousel $('.client-carousel').owlCarousel({ loop:true, autoplay:true, margin:0, nav:true, dots:true, responsiveClass:true, responsive:{ 0:{ items:1, nav:true, loop:true, dots:true, }, 450:{ items:2, nav:true, loop:true, dots:true, }, 500:{ items:2, nav:true, loop:true, dots:true, }, 768:{ items:3, nav:true, loop:true, dots:true, }, 1000:{ items:4, nav:true, loop:true, dots:true, }, 1400:{ items:4, nav:true, loop:true, dots:true, } } }); // Nav $('.nav-bar-icons-dynamic').on('click',function(){ $('.navbar-mobile').toggle('slide'); $(this).toggleClass('change'); }); // search page $('.filter-closer').on('click',function(){ $('.filter-toggle-manu').val(0); $('.search-page-filter-sidebar').toggle('slide'); }); })()
./Ninja\.