File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/infrawave-ot.com/js/main.js
Back
// Hello. // // This is The Scripts used for ___________ Theme // // function main() { (function () { 'use strict'; /*==================================== Main Navigation Stick to Top when Scroll ======================================*/ function sticky_relocate() { var window_top = $(window).scrollTop(); var div_top = $('#sticky-anchor').offset().top; if (window_top > div_top) { $('#main-menu').addClass('stick'); } else { $('#main-menu').removeClass('stick'); } } $(function () { $(window).scroll(sticky_relocate); sticky_relocate(); }); /*==================================== //Portfolio Carousel ======================================*/ var owl = $("#portfolio-items"); owl.owlCarousel({ itemsCustom : [ [0, 1], [450, 1], [660, 2], [700, 3], [1200, 4], [1600, 4] ], navigation : true, navigationText: ["<i class='fa fa-chevron-circle-left'></i>","<i class='fa fa-chevron-circle-right'></i>"], pagination: false, }); /* ============================================== Testimonial Slider =============================================== */ $("#testimonial").owlCarousel({ navigation : false, // Show next and prev buttons slideSpeed : 300, paginationSpeed : 400, singleItem:true, autoHeight : true }); /*==================================== Portfolio Isotope Filter ======================================*/ var $container = $('#itemsWork'); $container.isotope({ filter: '*', animationOptions: { duration: 750, easing: 'linear', queue: false } }); $('.cat a').click(function() { $('.cat .active').removeClass('active'); $(this).addClass('active'); var selector = $(this).attr('data-filter'); $container.isotope({ filter: selector, animationOptions: { duration: 750, easing: 'linear', queue: false } }); return false; }); $container.imagesLoaded() .progress( function() { // trigger reLayout everytime an image loads $container.isotope('reLayout'); }); /*==================================== Nivo Lightbox ======================================*/ // Agency Portfolio Popup $('#popup a').nivoLightbox({ effect: 'slideDown', keyboardNav: true, }); /*==================================== Accordion Active Calling ======================================*/ // When we click on the Panel heading $("#accordion3>.panel-default > .panel-heading").click(function(){ // If this isn't already active if (!$(this).hasClass("active")) { // Remove the class from anything that is active $("#accordion3>.panel-default > .panel-heading.active").removeClass("active"); // And make this active $(this).addClass("active"); } }); // When we click on the Panel heading $("#accordion4>.panel-default > .panel-heading").click(function(){ // If this isn't already active if (!$(this).hasClass("active")) { // Remove the class from anything that is active $("#accordion4>.panel-default > .panel-heading.active").removeClass("active"); // And make this active $(this).addClass("active"); } }); }()); } main();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings