'); } $(window).on('load', function() { $(".banner_img .imgcls").show(); }); var ImagePauses = [3000,3000,3000,3000,3000]; var slider = $('#bxslider').bxSlider(); var currentSlide = 0; $(document).ready(function() { initSlider(); }); function initSlider() { slider.reloadSlider({ touchEnabled: false, mode: 'fade', preloadImages: 'visible', infiniteLoop: true, auto: true, autoStart: true, autoDirection: 'next', autoHover: true, pause: ImagePauses[currentSlide], autoControls: true, pager: true, pagerType: 'full', controls: true, captions: true, speed: 500, oneToOneTouch: true, startSlide: currentSlide, onSliderLoad: function() { $(".bx-loading").hide(); }, onSlideAfter: function($el, oldIndex, newIndex) { currentSlide = newIndex; updateAutoPlay(); }, }); } function updateAutoPlay() { initSlider(); } $("script").attr('nonce','a0dd6c6d7fc8088dc50d7902aba85dd2'); $(document).ready(function() { $("#owl-slide4").owlCarousel({ items:1, loop:true, autoplay:true, autoplayTimeout:5000, dots: false, }); $(".sb-toggle-left").click(function(){ $(".sb-slidebar").addClass('sb-active'); $("body").removeClass('overlay-open'); $("body").addClass('overlay-open'); }); $(".overlay").click(function(){ $(".sb-slidebar").removeClass('sb-active'); $(".overlay").removeClass('overlay-open'); $("body").removeClass('overlay-open'); }); $(window).resize(function() { var windowsize = $(window).width(); if (parseInt(windowsize) > 769) { $(".sb-slidebar").removeClass('sb-active'); } }); $("#owl-slidelogo").owlCarousel({ items:5, margin:5, loop:true, autoplay:true, autoplayTimeout:3000, responsive:{ 0:{ items:2 }, 400:{ items:3 }, 767:{ items:4 }, 1000:{ items:5 } } }); $("#owl-new").owlCarousel({ items:5, responsive:{ 0:{ items:2, loop:true, autoplay:true, autoplayTimeout:3000, margin:5, }, 400:{ items:3, loop:true, autoplay:true, autoplayTimeout:3000, margin:5, }, 767:{ items:4, loop:true, autoplay:true, autoplayTimeout:3000, margin:5, }, 1000:{ items:5 } } }); $(".menu ul li ul li").click(function(){ $(this).find('ul.sub-dropdown').slideToggle(); }); $("#menu > ul > li > span i").click(function(){ $("#menu").find("ul.sub-dropdown").slideUp(); $("#menu").find("ul.sub-subs-dropdown").slideUp(); if ($(this).parent().next('ul.sub-dropdown').is(":visible")) { $(this).parent().next('ul.sub-dropdown').slideUp(); } else { $(this).parent().next('ul.sub-dropdown').slideDown(); } }); $("ul.sub-dropdown > li > span i").click(function(){ $("#menu").find("ul.sub-subs-dropdown").slideUp(); if($(this).parent().next('ul.sub-subs-dropdown').is(":visible")){ $(this).parent().next('ul.sub-subs-dropdown').slideUp(); }else{ $(this).parent().next('ul.sub-subs-dropdown').slideDown(); } }); jQuery(window).on('load', function() { equalheight('.newsletter-list ul li p a'); equalheight('.photos-col1'); equalheight('.staff-listing'); equalheight('.location_two_box .location_address .address_box '); equalheight('.image-block-content h4'); equalheight('.services_in_box.services_bd .image-content-inner'); }); jQuery(window).resize(function () { equalheight('.newsletter-list ul li p a'); equalheight('.photos-col1'); equalheight('.staff-listing'); equalheight('.location_two_box .location_address .address_box '); equalheight('.image-block-content h4'); equalheight('.services_in_box.services_bd .image-content-inner'); }); equalheight = function (container) { var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0; $(container).each(function () { $el = $(this); $($el).height('auto') topPostion = $el.position().top; if (currentRowStart != topPostion) { for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } rowDivs.length = 0; // empty the array currentRowStart = topPostion; currentTallest = $el.height(); rowDivs.push($el); } else { rowDivs.push($el); currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); } for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) { rowDivs[currentDiv].height(currentTallest); } }); } }); function titlepath(path,name) { var prntWin = window.open(); prntWin.document.write(""+name+"" + ' '); prntWin.document.close(); } $(document).on('click','ul.clickable li',function(e) { e.preventDefault(); var url = $(this).children().attr('href'); $(this).children().attr('href',''); var pageno = $(this).children().attr('data-ci-pagination-page'); var cur_page_url =''; var menu_id = ''; var pdfpath = ''; var list_sort_by = ''; var module_dir = ''; var type = 'front'; $.ajax({ url: 'https://www.moverlift.com/'+'custom_front/ajaxPagination_front/'+pageno, type: 'POST', data: 'url='+url+'&pageno='+pageno+'&cur_page_url='+cur_page_url+'&menu_id='+menu_id+'&pdfpath='+pdfpath+'&list_sort_by='+list_sort_by+'&module_dir='+module_dir+'&type='+type, success: function(data) { $('#list').html(data); $('html, body').animate({ scrollTop: $('.hedding_box').offset().top }, 'slow'); } }); });