1jQuery(document).ready(function($) { 2 'use strict'; 3 4 // Float Header Start 5 6 var stickyOffset = $('.space-header-float').offset().top; 7 8 $(window).scroll(function(){ 9 'use strict'; 10 var sticky = $('.space-header-float'), 11 scroll = $(window).scrollTop(); 12 13 if (scroll >= 200) sticky.addClass('fixed'); 14 else sticky.removeClass('fixed'); 15 }); 16 17 // Float Header End 18 19 // Search Block Start 20 21 $('.desktop-search-button').on('click', function(){ 22 'use strict'; 23 $('.space-header-search-block').addClass('active'); 24 setTimeout( function() { 25 'use strict'; 26 $('.space-header-search-block input').focus(); 27 }, 500 ); 28 }); 29 30 $('.desktop-search-close-button').on('click', function(){ 31 'use strict'; 32 $('.space-header-search-block').removeClass('active'); 33 }); 34 35 // Search Block End 36 37 // Mobile Menu Open Start 38 39 $('.space-mobile-menu-icon').on('click', function(){ 40 'use strict'; 41 $('.space-mobile-menu').addClass('active'); 42 }); 43 44 $('.space-mobile-menu-close-button').on('click', function(){ 45 'use strict'; 46 $('.space-mobile-menu').removeClass('active'); 47 }); 48 49 // Mobile Menu Open End 50 51 // Mobile Children Start 52 53 $(".menu-item-has-children a").on('click', function(event){ 54 'use strict'; 55 event.stopPropagation(); 56 location.href = this.href; 57 }); 58 59 $(".menu-item-has-children").on('click', function(){ 60 'use strict'; 61 $(this).addClass("toggled"); 62 if($(".menu-item-has-children").hasClass("toggled")) 63 { 64 $(this).children("ul").toggle(); 65 } 66 $(this).toggleClass("space-up"); 67 return false; 68 }); 69 70 // Mobile Children End 71 72 // Owl Carousel Start 73 74 $('.space-news-8-items').owlCarousel({ 75 animateOut: 'fadeOut', 76 animateIn: 'fadeIn', 77 loop: true, 78 margin: 0, 79 nav: true, 80 dots: false, 81 autoHeight: false, 82 navText: ['<i class="fas fa-chevron-left"></i>','<i class="fas fa-chevron-right"></i>'], 83 responsive: { 84 0:{ 85 items: 1 86 }, 87 600:{ 88 items: 1 89 }, 90 1000:{ 91 items: 1 92 } 93 } 94 }); 95 96 $('.space-news-9-items').owlCarousel({ 97 animateOut: 'fadeOut', 98 animateIn: 'fadeIn', 99 loop: true, 100 margin: 0, 101 nav: true, 102 dots: false, 103 autoHeight: true, 104 navText: ['<i class="fas fa-chevron-left"></i>','<i class="fas fa-chevron-right"></i>'], 105 responsive: { 106 0:{ 107 items: 1 108 }, 109 600:{ 110 items: 1 111 }, 112 1000:{ 113 items: 1 114 } 115 } 116 }); 117 118 // Owl Carousel End 119 120 // Scroll To Top Start 121 122 if ($('#scrolltop').length) { 123 124 var scrollTrigger = 100, // px 125 126 backToTop = function () { 127 'use strict'; 128 var scrollTop = $(window).scrollTop(); 129 if (scrollTop > scrollTrigger) { 130 $('#scrolltop').addClass('show'); 131 } else { 132 $('#scrolltop').removeClass('show'); 133 } 134 }; 135 136 backToTop(); 137 138 $(window).on('scroll', function () { 139 'use strict'; 140 backToTop(); 141 }); 142 143 $('#scrolltop').on('click', function (e) { 144 'use strict'; 145 e.preventDefault(); 146 $('html,body').animate({ 147 scrollTop: 0 148 }, 1000); 149 }); 150 151 } 152 153 // Scroll To Top End 154 155});
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.