1(function($) { 2 3 "use strict"; 4 function preloaderLoad() { 5 if($('.preloader').length){ 6 $('.preloader').delay(1).fadeOut(1); 7 } 8 $(".preloader_disabler").on('click', function() { 9 $("#preloader").hide(); 10 }); 11 } 12 13 14 15 /** Main Menu Custom Script Start **/ 16 //$(document).on('ready', function() { 17 // $("#respMenu").aceResponsiveMenu({ 18 // resizeWidth: '768', // Set the same in Media query 19 // animationSpeed: 'fast', //slow, medium, fast 20 // accoridonExpAll: false //Expands all the accordion menu on click 21 // }); 22 //}); 23 24 function mobileNavToggle() { 25 if ($('#main-nav-bar .navbar-nav .sub-menu').length) { 26 var subMenu = $('#main-nav-bar .navbar-nav .sub-menu'); 27 subMenu.parent('li').children('a').append(function () { 28 return '<button class="sub-nav-toggler"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>'; 29 }); 30 var subNavToggler = $('#main-nav-bar .navbar-nav .sub-nav-toggler'); 31 subNavToggler.on('click', function () { 32 var Self = $(this); 33 Self.parent().parent().children('.sub-menu').slideToggle(); 34 return false; 35 }); 36 37 }; 38 } 39 40 /* ----- This code for menu ----- */ 41 $(window).on('scroll', function() { 42 if ($('.scroll-to-top').length) { 43 var strickyScrollPos = 100; 44 if ($(window).scrollTop() > strickyScrollPos) { 45 $('.scroll-to-top').fadeIn(500); 46 } else if ($(this).scrollTop() <= strickyScrollPos) { 47 $('.scroll-to-top').fadeOut(500); 48 } 49 }; 50 if ($('.stricky').length) { 51 var headerScrollPos = $('.header-navigation').next().offset().top; 52 var stricky = $('.stricky'); 53 if ($(window).scrollTop() > headerScrollPos) { 54 stricky.removeClass('slideIn animated'); 55 stricky.addClass('stricky-fixed slideInDown animated'); 56 } else if ($(this).scrollTop() <= headerScrollPos) { 57 stricky.removeClass('stricky-fixed slideInDown animated'); 58 stricky.addClass('slideIn animated'); 59 } 60 }; 61 }); 62 63 $(".mouse_scroll").on('click', function() { 64 $('html, body').animate({ 65 scrollTop: $("#feature-property, #property-city").offset().top 66 }, 1000); 67 }); 68 /** Main Menu Custom Script End **/ 69 70 /* ----- Blog innerpage sidebar according ----- */ 71 $(document).on('ready', function() { 72 $('.collapse').on('show.bs.collapse', function () { 73 $(this).siblings('.card-header').addClass('active'); 74 }); 75 $('.collapse').on('hide.bs.collapse', function () { 76 $(this).siblings('.card-header').removeClass('active'); 77 }); 78 79 }); 80 var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) 81 var tooltipList = tooltipTriggerList.map(function(tooltipTriggerEl) { 82 return new bootstrap.Tooltip(tooltipTriggerEl) 83 }) 84 85 /* ----- Menu Cart Button Dropdown ----- */ 86 $(document).on('ready', function() { 87 // Loop through each nav item 88 $('.cart_btn').children('ul.cart').children('li').each(function(indexCount){ 89 // loop through each dropdown, count children and apply a animation delay based on their index value 90 $(this).children('ul.dropdown_content').children('li').each(function(index){ 91 // Turn the index value into a reasonable animation delay 92 var delay = 0.1 + index*0.03; 93 // Apply the animation delay 94 $(this).css("animation-delay", delay + "s") 95 }); 96 }); 97 }); 98 99 /* ----- Mobile Nav ----- */ 100 // document.addEventListener('DOMContentLoaded', () => { 101 // new Mmenu("#menu", { 102 // navbar: { 103 // title: "Menu" 104 // }, 105 // searchfield: { 106 // add: false, 107 // addTo: "#contacts" 108 // }, 109 // offCanvas: { 110 // position: "left-front" 111 // }}, 112 // {}); 113 // }); 114 115 /* ----- Custom Search Dropdown Script Start ----- */ 116 var showSuggestions = function() { 117 $( ".advance-search-field form.form-search .box-search" ).each(function() { 118 $( "form.form-search .box-search input" ).on('focus', (function() { 119 $(this).closest('.boxed').children('.overlay').css({ 120 opacity: '1', 121 display: 'block' 122 }); 123 $(this).parent('.box-search').children('.search-suggestions').css({ 124 opacity: '1', 125 visibility: 'visible', 126 top: '70px' 127 }); 128 })); 129 $( "form.form-search .box-search input" ).on('blur', (function() { 130 $(this).closest('.boxed').children('.overlay').css({ 131 opacity: '0', 132 display: 'block' 133 }); 134 $(this).parent('.box-search').children('.search-suggestions').css({ 135 opacity: '0', 136 visibility: 'hidden', 137 top: '100px' 138 }); 139 })); 140 }); 141 }; 142 $(function() { 143 showSuggestions(); 144 }); 145 /* ----- Custom Search Dropdown Script End ----- */ 146 147 148 /* ----- Price Range Slider Desktop Style ----- */ 149 $(document).on('ready', function() { 150 $(".slider-range").slider({ 151 range: true, 152 min: 0, 153 max: 100000, 154 values: [ 20, 70987 ], 155 slide: function( event, ui ) { 156 $( ".amount" ).val( ui.values[ 0 ] ); 157 $( ".amount2" ).val( ui.values[ 1 ] ); 158 } 159 }); 160 $(".amount").change(function() { 161 $(".slider-range").slider('values',0,$(this).val()); 162 }); 163 $(".amount2").change(function() { 164 $(".slider-range").slider('values',1,$(this).val()); 165 }); 166 }); 167 168 169 /* ----- MagnificPopup ----- */ 170 if (($(".popup-img").length > 0) || ($(".popup-iframe").length > 0) || ($(".popup-img-single").length > 0)) { 171 $(".popup-img").magnificPopup({ 172 type:"image", 173 gallery: { 174 enabled: true, 175 } 176 }); 177 $(".popup-img-single").magnificPopup({ 178 type:"image", 179 gallery: { 180 enabled: false, 181 } 182 }); 183 $('.popup-iframe').magnificPopup({ 184 disableOn: 700, 185 type: 'iframe', 186 preloader: false,
187 fixedContentPos: false 188 }); 189 $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ 190 disableOn: 700, 191 type: 'iframe', 192 mainClass: 'mfp-fade', 193 removalDelay: 160, 194 preloader: false, 195 fixedContentPos: false 196 }); 197 }; 198 199 /*** ==== Right Side Hidden Sidebar Start ==== ***/ 200 //Side Content Toggle 201 if($('.filter-btn-right').length){ 202 //Show Form 203 $('.filter-btn-right').on('click', function(e) { 204 e.preventDefault(); 205 $('body').addClass('signin-hidden-sidebar-content'); 206 }); 207 //Hide Form 208 $('.sidebar-close-icon,.hiddenbar-body-ovelay').on('click', function(e) { 209 e.preventDefault(); 210 $('body').removeClass('signin-hidden-sidebar-content'); 211 }); 212 } 213 /*** ==== Right Side Hidden Sidebar END ==== ***/ 214 215 /*** ==== Perspective Hover Animation Code Start ==== ***/ 216 var perspectiveHover = function() { 217 var $animate_content = $('.animate_content'), 218 $animate_thumb = $('.animate_thumb'), 219 xAngle = 0, 220 yAngle = 0, 221 zValue = 0, 222 xSensitivity = 15, 223 ySensitivity = 25, 224 restAnimSpeed = 300, 225 perspective = 500; 226 227 $animate_content.on('mousemove', function(element) { 228 var $item = $(this), 229 // Get cursor coordinates 230 XRel = element.pageX - $item.offset().left, 231 YRel = element.pageY - $item.offset().top, 232 width = $item.width(); 233 234 // Build angle val from container width and cursor value 235 xAngle = (0.5 - (YRel / width)) * xSensitivity; 236 yAngle = -(0.5 - (XRel / width)) * ySensitivity; 237 238 // Container isn't manipulated, only child elements within 239 updateElement($item.children($animate_thumb)); 240 }); 241 // Move element around 242 function updateElement(modifyLayer) { 243 modifyLayer.css({ 244 'transform': 'perspective('+ perspective + 'px) translateZ(' + zValue + 'px) rotateX(' + xAngle + 'deg) rotateY(' + yAngle + 'deg)', 245 'transition': 'none' 246 }); 247 } 248 // Reset element to default state 249 $animate_content.on('mouseleave', function() { 250 modifyLayer = $(this).children($animate_thumb); 251 modifyLayer.css({ 252 'transform': 'perspective(' + perspective + 'px) translateZ(0) rotateX(0) rotateY(0)', 253 'transition': 'transform ' + restAnimSpeed + 'ms linear' 254 }); 255 }); 256 }; 257 perspectiveHover(); 258 /*** ==== Perspective Hover Animation Code End ==== ***/ 259 260 // Custom Shop item add Option increase decrease home 3 261 $(function() { 262 (function quantityProducts() { 263 var $quantityArrowMinus = $(".quantity-arrow-minus"); 264 var $quantityArrowPlus = $(".quantity-arrow-plus"); 265 var $quantityNum = $(".quantity-num"); 266 $quantityArrowMinus.click(quantityMinus); 267 $quantityArrowPlus.click(quantityPlus); 268 function quantityMinus() { 269 if ($quantityNum.val() > 1) { 270 $quantityNum.val(+$quantityNum.val() - 1); 271 } 272 } 273 function quantityPlus() { 274 $quantityNum.val(+$quantityNum.val() + 1); 275 } 276 })(); 277 }); 278 $(function() { 279 (function quantityProducts() { 280 var $quantityArrowMinus = $(".quantity-arrow-minus2"); 281 var $quantityArrowPlus = $(".quantity-arrow-plus2"); 282 var $quantityNum = $(".quantity-num2"); 283 $quantityArrowMinus.click(quantityMinus); 284 $quantityArrowPlus.click(quantityPlus); 285 function quantityMinus() { 286 if ($quantityNum.val() > 1) { 287 $quantityNum.val(+$quantityNum.val() - 1); 288 } 289 } 290 function quantityPlus() { 291 $quantityNum.val(+$quantityNum.val() + 1); 292 } 293 })(); 294 }); 295 $(function() { 296 (function quantityProducts() { 297 var $quantityArrowMinus = $(".quantity-arrow-minus3"); 298 var $quantityArrowPlus = $(".quantity-arrow-plus3"); 299 var $quantityNum = $(".quantity-num3"); 300 $quantityArrowMinus.click(quantityMinus); 301 $quantityArrowPlus.click(quantityPlus); 302 function quantityMinus() { 303 if ($quantityNum.val() > 1) { 304 $quantityNum.val(+$quantityNum.val() - 1); 305 } 306 } 307 function quantityPlus() { 308 $quantityNum.val(+$quantityNum.val() + 1); 309 } 310 })(); 311 }); 312 313 /* ----- Scroll To top ----- */ 314 function scrollToTop() { 315 var btn = $('.scrollToHome'); 316 $(window).on('scroll', function () { 317 if ($(window).scrollTop() > 300) { 318 btn.addClass('show'); 319 } else { 320 btn.removeClass('show'); 321 } 322 }); 323 btn.on('click', function (e) { 324 e.preventDefault(); 325 $('html, body').animate({ 326 scrollTop: 0 327 }, '300'); 328 }); 329 } 330 331 /* ----- Mega Dropdown Content ----- */ 332 $(document).on('ready', function(){ 333 $(".drop_btn").on('click',function(){ 334 $(".drop_content").toggle(); 335 }); 336 $(".drop_btn2").on('click',function(){ 337 $(".drop_content2").toggle(); 338 }); 339 $(".drop_btn3").on('click',function(){ 340 $(".drop_content3").toggle(); 341 }); 342 $(".drop_btn4").on('click',function(){ 343 $(".drop_content4").toggle(); 344 }); 345 }); 346 347 /*----------- Addclass Remove Class for Home 2 Accordion ----------*/ 348 (function( $ ) { 349 $(".accordion-style1 .accordion-item, .accordion-style1.style2 .accordion-item, .accordion-style2 .accordion-item").on("click",function() { 350 $(this).toggleClass( "active", 1000) 351 }); 352 })(jQuery); 353 354 355 356/* ====== 357 When document is loading, do 358 ====== */ 359 // window on Load function 360 $(window).on('load', function() { 361 // add your functions 362 preloaderLoad(); 363 }); 364 // window on Scroll function 365 $(window).on('scroll', function() { 366 // add your functions 367 }); 368 369 370})(window.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.