1(function ($) { 2"use strict"; 3// TOP Menu Sticky 4$(window).on('scroll', function () { 5 var scroll = $(window).scrollTop(); 6 if (scroll < 400) { 7 $("#sticky-header").removeClass("sticky"); 8 $('#back-top').fadeIn(500); 9 } else { 10 $("#sticky-header").addClass("sticky"); 11 $('#back-top').fadeIn(500); 12 } 13}); 14 15 16 17 18 19$(document).ready(function(){ 20 21// mobile_menu 22var menu = $('ul#navigation'); 23if(menu.length){ 24 menu.slicknav({ 25 prependTo: ".mobile_menu", 26 closedSymbol: '+', 27 openedSymbol:'-' 28 }); 29}; 30// blog-menu 31 // $('ul#blog-menu').slicknav({ 32 // prependTo: ".blog_menu" 33 // }); 34 35// review-active 36$('.slider_active').owlCarousel({ 37 loop:true, 38 margin:0, 39 items:1, 40 autoplay:true, 41 navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'], 42 nav:true, 43 dots:false, 44 autoplayHoverPause: true, 45 autoplaySpeed: 800, 46 animateOut: 'fadeOut', 47 animateIn: 'fadeIn', 48 responsive:{ 49 0:{ 50 items:1, 51 nav:false, 52 }, 53 767:{ 54 items:1 55 }, 56 992:{ 57 items:1 58 }, 59 1200:{ 60 items:1 61 }, 62 1600:{ 63 items:1 64 } 65 } 66}); 67 68// review-active 69$('.testmonial_active').owlCarousel({ 70 loop:true, 71 margin:0, 72 items:1, 73 autoplay:true, 74 navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'], 75 nav:false, 76 dots:true, 77 autoplayHoverPause: true, 78 autoplaySpeed: 800, 79 responsive:{ 80 0:{ 81 items:1, 82 }, 83 767:{ 84 items:1, 85 }, 86 992:{ 87 items:1, 88 }, 89 1200:{ 90 items:1, 91 }, 92 1500:{ 93 items:1 94 } 95 } 96}); 97 98$( function() { 99 $( "#slider-range" ).slider({ 100 range: true, 101 min: 0, 102 max: 600, 103 values: [ 75, 300 ], 104 slide: function( event, ui ) { 105 $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); 106 } 107 }); 108 $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) + 109 " - $" + $( "#slider-range" ).slider( "values", 1 ) ); 110} ); 111 112 113// for filter 114 // init Isotope 115 var $grid = $('.grid').isotope({ 116 itemSelector: '.grid-item', 117 percentPosition: true, 118 masonry: { 119 // use outer width of grid-sizer for columnWidth 120 columnWidth: 1 121 } 122 }); 123 124 // filter items on button click 125 $('.portfolio-menu').on('click', 'button', function () { 126 var filterValue = $(this).attr('data-filter'); 127 $grid.isotope({ filter: filterValue }); 128 }); 129 130 //for menu active class 131 $('.portfolio-menu button').on('click', function (event) { 132 $(this).siblings('.active').removeClass('active'); 133 $(this).addClass('active'); 134 event.preventDefault(); 135 }); 136 137 // wow js 138 new WOW().init(); 139 140 // counter 141 $('.counter').counterUp({ 142 delay: 10, 143 time: 10000 144 }); 145 146/* magnificPopup img view */ 147$('.popup-image').magnificPopup({ 148 type: 'image', 149 gallery: { 150 enabled: true 151 } 152}); 153 154/* magnificPopup img view */ 155$('.img-pop-up').magnificPopup({ 156 type: 'image', 157 gallery: { 158 enabled: true 159 } 160}); 161 162/* magnificPopup video view */ 163$('.popup-video').magnificPopup({ 164 type: 'iframe' 165}); 166 167 168 // scrollIt for smoth scroll 169 $.scrollIt({ 170 upKey: 38, // key code to navigate to the next section 171 downKey: 40, // key code to navigate to the previous section 172 easing: 'linear', // the easing function for animation 173 scrollTime: 600, // how long (in ms) the animation takes 174 activeClass: 'active', // class given to the active nav element 175 onPageChange: null, // function(pageIndex) that is called when page is changed 176 topOffset: 0 // offste (in px) for fixed top navigation 177 }); 178 179 // scrollup bottom to top 180 $.scrollUp({ 181 scrollName: 'scrollUp', // Element ID 182 topDistance: '4500', // Distance from top before showing element (px) 183 topSpeed: 300, // Speed back to top (ms) 184 animation: 'fade', // Fade, slide, none 185 animationInSpeed: 200, // Animation in speed (ms) 186 animationOutSpeed: 200, // Animation out speed (ms) 187 scrollText: '<i class="fa fa-angle-double-up"></i>', // Text for element
188 activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF' 189 }); 190 191 192 // blog-page 193 194 //brand-active 195$('.brand-active').owlCarousel({ 196 loop:true, 197 margin:30, 198items:1, 199autoplay:true, 200 nav:false, 201dots:false, 202autoplayHoverPause: true, 203autoplaySpeed: 800, 204 responsive:{ 205 0:{ 206 items:1, 207 nav:false 208 209 }, 210 767:{ 211 items:4 212 }, 213 992:{ 214 items:7 215 } 216 } 217}); 218 219// blog-dtails-page 220 221 //project-active 222$('.project-active').owlCarousel({ 223 loop:true, 224 margin:30, 225items:1, 226// autoplay:true, 227navText:['<i class="Flaticon flaticon-left-arrow"></i>','<i class="Flaticon flaticon-right-arrow"></i>'], 228nav:true, 229dots:false, 230// autoplayHoverPause: true, 231// autoplaySpeed: 800, 232 responsive:{ 233 0:{ 234 items:1, 235 nav:false 236 237 }, 238 767:{ 239 items:1, 240 nav:false 241 }, 242 992:{ 243 items:2, 244 nav:false 245 }, 246 1200:{ 247 items:1, 248 }, 249 1501:{ 250 items:2, 251 } 252 } 253}); 254 255if (document.getElementById('default-select')) { 256 $('select').niceSelect(); 257} 258 259 //about-pro-active 260$('.details_active').owlCarousel({ 261 loop:true, 262 margin:0, 263items:1, 264// autoplay:true, 265navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'], 266nav:true, 267dots:false, 268// autoplayHoverPause: true, 269// autoplaySpeed: 800, 270 responsive:{ 271 0:{ 272 items:1, 273 nav:false 274 275 }, 276 767:{ 277 items:1, 278 nav:false 279 }, 280 992:{ 281 items:1, 282 nav:false 283 }, 284 1200:{ 285 items:1, 286 } 287 } 288}); 289 290}); 291 292// resitration_Form 293$(document).ready(function() { 294 $('.popup-with-form').magnificPopup({ 295 type: 'inline', 296 preloader: false, 297 focus: '#name', 298 299 // When elemened is focused, some mobile browsers in some cases zoom in 300 // It looks not nice, so we disable it: 301 callbacks: { 302 beforeOpen: function() { 303 if($(window).width() < 700) { 304 this.st.focus = false; 305 } else { 306 this.st.focus = '#name'; 307 } 308 } 309 } 310 }); 311}); 312 313 314 315//------- Mailchimp js --------// 316function mailChimp() { 317 $('#mc_embed_signup').find('form').ajaxChimp(); 318} 319mailChimp(); 320 321 322 323 // Search Toggle 324 $("#search_input_box").hide(); 325 $("#search").on("click", function () { 326 $("#search_input_box").slideToggle(); 327 $("#search_input").focus(); 328 }); 329 $("#close_search").on("click", function () { 330 $('#search_input_box').slideUp(500); 331 }); 332 // Search Toggle 333 $("#search_input_box").hide(); 334 $("#search_1").on("click", function () { 335 $("#search_input_box").slideToggle(); 336 $("#search_input").focus(); 337 }); 338 $(document).ready(function() { 339 $('select').niceSelect(); 340 }); 341 342 // prise slider 343 344 345 346 347 348 349 350 351})(jQuery);
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.