1$(function() { 2 "use strict"; 3 4 var nav_offset_top = $('header').height() + 50; 5 /*------------------------------------------------------------------------------- 6 Navbar 7 -------------------------------------------------------------------------------*/ 8 9 //* Navbar Fixed 10 function navbarFixed(){ 11 if ( $('.header_area').length ){ 12 $(window).scroll(function() { 13 var scroll = $(window).scrollTop(); 14 if (scroll >= nav_offset_top ) { 15 $(".header_area").addClass("navbar_fixed"); 16 } else { 17 $(".header_area").removeClass("navbar_fixed"); 18 } 19 }); 20 }; 21 }; 22 navbarFixed(); 23 24 //* Navbar Fixed 25 function marginTop() { 26 const headerHeight = $('.topHeader').height() + $('.main_menu').height();; 27 28 if ($('#margin-site').length) { 29 $('#margin-site').css('margin-top', headerHeight); 30 } 31 } 32 marginTop(); 33 AOS.init({once: true}); 34 35 $(window).on('resize', function () { 36 marginTop(); 37 }); 38 39 /*------------------------------------------------------------------------------- 40 testimonial slider 41 -------------------------------------------------------------------------------*/ 42 if ($('.testimonial').length) { 43 $('.testimonial').owlCarousel({ 44 loop: true, 45 margin: 30, 46 items: 5, 47 nav: false, 48 dots: true, 49 responsiveClass: true, 50 slideSpeed: 300, 51 paginationSpeed: 500, 52 responsive: { 53 0: { 54 items: 1 55 } 56 } 57 }) 58 } 59 60}); 61 62 63// List Grid Control 64$(document).ready(function () { 65 66 $('#list').click(function (event) { 67 event.preventDefault(); 68 $('#products .item').addClass('list-group-item'); 69 $('#list-tag').removeClass('justify-content-center'); 70 $('#list').removeClass('inactive-list'); 71 $('#grid').addClass('inactive-list'); 72 }); 73 74 $('#grid').click(function (event) { 75 event.preventDefault(); 76 $('#products .item').removeClass('list-group-item'); 77 $('#products .item').addClass('grid-group-item'); 78 $('#list-tag').addClass('justify-content-center'); 79 $('#grid').removeClass('inactive-list'); 80 $('#list').addClass('inactive-list'); 81 }); 82 83 $('#reviewIcon').click(function (event) { 84 var a= $('#collapseReviews').hasClass( "show" ); 85 if(a) { 86 $('#reviewArrow').removeClass( "fa-angle-down" ); 87 $('#reviewArrow').addClass( "fa-angle-right" ); 88 } else { 89 $('#reviewArrow').removeClass( "fa-angle-right" ); 90 $('#reviewArrow').addClass( "fa-angle-down" ); 91 } 92 }); 93 94 95}); 96 97
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.