var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); jQuery.noConflict(); jQuery(document).ready(function($) { // Mobile menu $(".menu-btn").click(function() { $(".top-nav").toggle(); $(".main-nav").toggle(); if($(this).hasClass("active")) { $(this).removeClass("active"); } else { $(this).addClass("active"); } }); $(".side-nav .menu li, .main-nav .menu li").each( function() { $(this).html( $(this).html() .replace("&", "&") .replace("&", "&") ); }); if($(".sub .slider").find("img.wp-post-image").length){ // if it's a Sub page then var sliderImgPage =$(".sub .slider").find("img").attr("src"); if (sliderImgPage.length) { $(".slider").html("
"); } } // home page change bg image in Featured Project function change_featured_project_bg_img(){ $('.item').each(function() { var innerWidth = $('.home').width(); if(innerWidth >= 1280) { $('.featured-project-wrap').css("background-image","url(wp-content/themes/denmac/img/featured-projects-bg.jpg)"); var itemBg = $(this).find($('.bg-image')).text(); $(this).mouseenter(function() { $(this).parents().find('.featured-project-wrap').css("background-image","url(" + itemBg+ ")"); }); $(this).mouseleave(function() { $(this).parents().find('.featured-project-wrap').css("background-image","url(wp-content/themes/denmac/img/featured-projects-bg.jpg)"); }); } else { $(this).parents().find('.featured-project-wrap').css("background-color","#f1f2f2"); } }); } change_featured_project_bg_img(); $(window).resize(function(){ change_featured_project_bg_img(); }); $(".container table + p").each( function() { if ($.trim($(this).text()) == ""){ $(this).remove(); } }); // Smooth scrolling see more button jQuery(".scroll").smoothScroll({ offset: -100, easing: "swing", speed: 700, preventDefault: false }); // Calculate home conteiner top margin // function add_margin_home_container() { // var innerWidth = $('.home').width(); // if(innerWidth >= 1280) { // var slider_height=$('.home .slider').height(); // var header_height =$('.home .header').height(); // var services_height =$('.home .home-services').height(); // $('.home-container').css('margin-top', (slider_height- (header_height+services_height)) - 72); // } // else { // $('.home-container').css('margin-top',0); // console.log(innerWidth); // } // } // add_margin_home_container(); // $(window).resize(function(){ // add_margin_home_container(); // }); }); } /* FILE ARCHIVED ON 14:26:01 Feb 06, 2019 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 06:47:24 Dec 17, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.481 exclusion.robots: 0.025 exclusion.robots.policy: 0.016 esindex: 0.01 cdx.remote: 6.878 LoadShardBlock: 108.489 (3) PetaboxLoader3.datanode: 82.789 (5) PetaboxLoader3.resolve: 159.71 (3) load_resource: 170.653 (2) */