1$(document).ready(function () { 2 "use strict"; 3 //Document ready function start 4 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 5 6 // Header fixed top on scroll 7 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 8 window.onscroll = function () { scrollFunction() }; 9 10 function scrollFunction() { 11 if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) { 12 $("header").removeClass("trans"); 13 } else { 14 $("header").addClass("trans"); 15 } 16 } 17 // Header Nav 18 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 19 20 $("#togglar").on("click", function () { 21 if ($('.navbar-menu').hasClass('shown')) { 22 $('.navbar-menu').removeClass("shown"); 23 } else { 24 $('.navbar-menu').addClass("shown"); 25 } 26 }); 27 28 $("#menu-close").on("click", function () { 29 $('.navbar-menu').removeClass("shown"); 30 }); 31 32 // Back to top 33 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 34 $(window).scroll(function () { 35 if ($(this).scrollTop() > 200) { 36 $('#scroll').fadeIn(); 37 } else { 38 $('#scroll').fadeOut(); 39 } 40 }); 41 42 $('#scroll').click(function () { 43 $("html, body").animate({ 44 scrollTop: 0 45 }); 46 return false; 47 }); 48 49 // home-banner: Adjust height 50 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 51 if ($(window).width() < 1501) { 52 var home_banner_image_width = $(".home-banner").innerWidth(); 53 var home_banner_image_height = home_banner_image_width * 0.42; 54 $('.home-banner').css({ 'min-height': home_banner_image_height + 'px' }); 55 } 56 else { 57 var home_banner_image_height = 1500 * 0.42; 58 $('.home-banner').css({ 'min-height': home_banner_image_height + 'px' }); 59 } 60 61 //Header Height 62 var hheight = $("header").innerHeight(); 63 64 var header_height = (hheight - 1); 65 $(".banner-inner").css({ 66 "margin-top": header_height 67 }); 68 69 $(".main-area").css({ 70 "margin-top": header_height 71 }); 72 //FAq Button Bold 73 $(".faq-btn").on("click", function () { 74 $(this).toggleClass("Bold"); 75 }); 76 77 // Circles: Adjust height 78 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 79 $('.circle').each(function () { 80 var circle_width = $(this).innerWidth(); 81 var circle_height = circle_width; 82 $(this).css({ 'height': circle_height + 'px' }); 83 }); 84 85 // testimonial slider 86 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 87 if($('.testimonial-slider').length > 0) 88 $('.testimonial-slider').slick({ 89 dots: true, 90 infinite: true, 91 speed: 300, 92 slidesToShow: 2, 93 slidesToScroll: 2, 94 arrows: false, 95 responsive: [ 96 { 97 breakpoint: 769, 98 settings: { 99 slidesToShow: 1, 100 slidesToScroll: 1 101 } 102 } 103 ] 104 }); 105 106 // client slider 107 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 108 if($('.client-slider').length > 0) 109 $('.client-slider').slick({ 110 dots: false, 111 infinite: true, 112 speed: 300, 113 arrows: false, 114 autoplay: true, 115 slidesToShow: 6, 116 slidesToScroll: 6, 117 responsive: [ 118 { 119 breakpoint: 1024, 120 settings: { 121 slidesToShow: 3, 122 slidesToScroll: 3, 123 } 124 }, 125 { 126 breakpoint: 600, 127 settings: { 128 slidesToShow: 2, 129 slidesToScroll: 2 130 } 131 } 132 ] 133 }); 134 135 //----------------------------------------------------------------------- 136 //Document ready function end 137});
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.