{"version":3,"file":"../custom.js","names":["_define_property","obj","key","value","Object","defineProperty","enumerable","configurable","writable","equalHeight","ourProcess","$","ccCanadaintaller","globalHeight","map","this","height","get","maxHeight","Math","max","apply","css","heights","window","width","galleryHeight","dtybHeight","subroomCarousel","initialSlide","location","hash","parseInt","slice","sliderFor","sliderNav","customSlide","find","draggableOption","data","firstItemSwipeOption","autoplaySpeedOption","slick","slidesToShow","slidesToScroll","centerMode","adaptiveHeight","draggable","swipe","arrows","autoplay","autoplaySpeed","prevArrow","nextArrow","addClass","on","event","currentSlide","nextSlide","setTimeout","removeClass","focusOnSelect","responsive","breakpoint","settings","attr","tabbedContentMoreLess","currentMoreState","moreText","text","lessText","readMoreHeight","franchiseTabHeight","mobileTabbedContent","hasClass","each","scrollTo","contentHeight","tabHeight","jQuery","load","split","indexOf","length","top","parents","position","stop","animate","scrollTop","resize","error","twentytwenty","remove","ready","scrollUp","scrollName","topDistance","topSpeed","animation","animationInSpeed","animationOutSpeed","scrollText","activeOverlay","document","headerInner","headerHeight","SitePaddTop","owlCarousel","loop","margin","responsiveClass","items","autoplayTimeout","smartSpeed","mouseDrag","nav","dots","touchDrag","click","opacity","border","hide","show","stopPropagation","centerPadding","element","index","galid","fade","asNavFor","infinite","_obj","pid","html","isNumeric","$menu","menuAim","activate","row","$row","submenuId","$submenu","outerHeight","outerWidth","display","deactivate","mouseleave","es","preventDefault","is","fadeOut","fadeIn","ajaxdata","post","ajaxurl","res","window_h","modalMarginTop","modalMarginBottom","modal","e","stopImmediatePropagation","false","parent","val","slideUp","btn","prop","serialize","dataLayer","push","bind","a","b","target","ee","galleryTilte","summary","galimg","url","galno","open","encodeURIComponent","currObjURL","media","desc"],"sources":["custom.js"],"mappings":"AAAA,aAEA,SAASA,iBAAiBC,EAAKC,EAAKC,GAWlC,OAVID,KAAOD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GA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,SAAS,WAC7S,IACA3C,EAAE,oCAAoC4C,GAAG,SAAS,SAAUyH,GAC1DA,EAAG3B,iBAEH,IAAI4B,EAAetK,EAAEI,MAAMkD,KAAK,gBAC5BiH,EAAUvK,EAAEI,MAAMkD,KAAK,WACvBkH,EAASxK,EAAEI,MAAMkD,KAAK,UACtBmH,EAAMzK,EAAEI,MAAMkD,KAAK,OAAS,YAAcoH,EAC1CA,EAAQ1K,EAAEI,MAAMkD,KAAK,OAEzBtD,EAAE,6BAA6BsD,KAAK,UAAWgH,GAC/CtK,EAAE,mCAAmCsD,KAAK,UAAWiH,GACrDvK,EAAE,2BAA2BsD,KAAK,UAAWmH,GAC7CzK,EAAE,6BAA6BsD,KAAK,UAAWkH,GAC/C3J,OAAO8J,KAAK,wCAA0CC,mBAAmBC,WAAa,sBAAwBH,GAAQ,SAAU,uBAClI,IACA1K,EAAE,aAAa4G,OAAM,SAAU0C,GAC7BA,EAAEZ,iBACFY,EAAErC,kBACF,IAAIwD,EAAMG,mBAAmB5K,EAAEI,MAAMkD,KAAK,SACtCwH,EAAQ9K,EAAEI,MAAMkD,KAAK,cACrByH,EAAO/K,EAAEI,MAAMkD,KAAK,aAExB,OADAzC,OAAO8J,KAAK,8CAAqDF,EAAM,UAAYK,EAAQ,gBAAkBC,EAAM,SAAU,0BACtH,CACT,GACF","sourcesContent":["jQuery(window).load(function(){\n if (window.location.hash && window.location.hash != '#designers') {\n var hash = window.location.hash.split('#');\n setTimeout(function(){\n \tif(typeof hash[1] !== \"undefined\" && hash[1].indexOf(\"/\") == -1) {\n\t if (hash.length > 1 && jQuery('#' + hash[1]).length > 0) {\n\t var top = 0;\n\t jQuery('#' + hash[1]).parents('.row').each(function(){\n\t top += jQuery(this).position().top;\n\t });\n\t jQuery('html, body').stop().animate({\n\t scrollTop: top\n\t }, 500)\n\t }\n\t }\n }, 400)\n }\n //jQuery('.homepage-new-template .slick-slider-stage').slickPlay();\n jQuery('.before-after-landing-page .ba-sections').removeClass('hideContent');\n })\n .resize(function(){\n if (jQuery(window).width() < 768) {\n if (jQuery('.lower-nav').height() > 0 && jQuery('.lower-nav').height() != jQuery(window).height() - jQuery('.mobile-header').height()) {\n jQuery('.lower-nav').css('height', jQuery(window).height() - jQuery('.mobile-header').height());\n }\n }else{\n jQuery('.lower-nav').css('height', \"\");\n }\n })\n .error(function(){\n //console.log('ba-section error fallback');\n setTimeout(function(){\n jQuery('.before-after-landing-page .ba-sections').removeClass('hideContent');\n jQuery('.homepage-new-template .ba-sections').removeClass('hideContent');\n\n if(jQuery('.homepage-new-template .slick-slider-stage').length>0){\n \tjQuery('.homepage-new-template .slick-slider-stage').slick('slickPlay');\n \t}\n }, 5000)\n });\n\n$(window).load(function(){\n // topten readmoreless\n // moreLess();\n\n //locations tabbed room read more less\n tabbedContentMoreLess();\n mobileTabbedContent();\n\n //twentytwenty init\n if( $(\".twentytwenty-container\").length ) {\n $(\".twentytwenty-container\").twentytwenty();\n }\n\n});\n$(window).resize(function(){\n // rfMobile();\n // resizeTeamPopupHeight();\n\n $('.ba-galleries .connected-carousels .slick-slider-stage').find(\"[data-slick-index='0'] .twentytwenty-container\").each(function(){\n $(this).find('.twentytwenty-overlay').each(function(){\n $(this).remove();\n });\n $(this).find('.twentytwenty-handle').each(function(){\n $(this).remove();\n });\n $(this).twentytwenty();\n });\n});\n\n\n/* =========================================================\n Set max content limit \n ============================================================ */\n\nfunction equalHeight(){\n\t\n\t\n\t/* =========================================================\n Equal Height for home page\n ============================================================ */\n\t\n\tvar ourProcess = $(\".OurProcessCustomCrafte .card-text-pad\");\n\t// var vacouverActivity = $(\".vacouver-activity .card-text-pad\");\n\tvar ccCanadaintaller = $(\".cc-canada_3dinstaller .card-text-pad\");\n\t\n\tvar globalHeight = $(ourProcess).map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\t\t\n\t\tmaxHeight = Math.max.apply(null, globalHeight);\n\t\t$(ourProcess).css('min-height', maxHeight+'px');\n\t\n\t\n\t/* =========================================================\n Equal Height for home page\n ============================================================ */\n\t\n\t/*count height*/\t\t\n\t\t// var globalHeight = $(vacouverActivity).map(function ()\n //\n\t\t// {\n\t\t// \treturn $(this).height();\n\t\t// }).get(),\n\t\t//\n\t\t// maxHeight = Math.max.apply(null, globalHeight);\n\t\t// $(vacouverActivity).css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\t\n\t\n\t\n\t/*count height*/\t\t\n\t\tvar globalHeight = $(ccCanadaintaller).map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\t\t\n\t\tmaxHeight = Math.max.apply(null, globalHeight);\n\t\t$(ccCanadaintaller).css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\n\t\n\t\n\t/*count height*/\t\t\n\t\tvar heights = $(\".cc-canada_pointsdiff .card-text-pad\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.cc-canada_pointsdiff .card-text-pad').css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\t\n\t\n\t/*count height*/\t\t\n\t\tvar heights = $(\".address-parts\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.address-parts').css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\n\t\n\t/*count height*/\n\t\tvar heights = $(\".fr .foot-first\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.fr .foot-first').css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\n\t\n\t/*count height*/\t\t\n\tif ($(window).width() >= 768) {\t\n\t\tvar heights = $(\".crafts-boxes .card-text-pad\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.crafts-boxes .card-text-pad').css('min-height', maxHeight+'px');\t\t\n\t} else{\n\t\t$('.crafts-boxes .card-text-pad').css('min-height', '');\t\n\t}\n\t\t\n\t/*count height end*/\n\t\n\t/*count height*/\t\t\n\t\tvar heights = $(\".fr .eql-height\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.fr .eql-height').css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\n\t\n\t/*count height*/\t\t\n\t\tvar heights = $(\".team-member .main-section\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.team-member .main-section').css('min-height', maxHeight+'px');\n\n\t/*count height end*/\n\n\t/*count height*/\n\t\tvar heights = $(\".address-nav h5, .address-nav .h5\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.address-nav h5, .address-nav .h5').css('min-height', maxHeight+'px');\n\n\t/*count height end*/\n\n\t/*count height*/\n\t\tvar heights = $(\".expert-content\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.expert-content').css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\n\t\n}\n\nfunction galleryHeight(){\n\t/*count height*/\t\t\n\t\tvar heights = $(\".single-designer-gallery .vancouver-designs\").map(function ()\n\n\t\t{\n\t\t\treturn $(this).height();\n\t\t}).get(),\n\n\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t$('.single-designer-gallery .vancouver-designs').css('min-height', maxHeight+'px');\n\t\t\n\t/*count height end*/\n\t\n}\n\nfunction dtybHeight(){\n\t/*count height of dtyb*/\t\n\t\t\n\t\tif ($(window).width() > 769) {\t\t\n\t\t\tvar heights = $(\".DTYB .widget_rightimg\").map(function ()\t\n\n\t\t\t{\n\t\t\t\treturn $(this).height();\n\t\t\t\n\t\t\t}).get(),\t\t\n\t\t\n\n\t\t\tmaxHeight = Math.max.apply(null, heights);\n\t\t\t$('.DTYB .widget_content_outer').css('min-height', maxHeight+'px');\t\n\t\t}else{\n\t\t\t$('.DTYB .widget_content_outer').css('min-height', '');\t\n\t\t}\n\t\t\n\t/*count height of dtyb end*/\t\n\t\n}\n\n\n$(window).ready(function() {\n\tequalHeight();\n\tgalleryHeight();\n\t//imageZoom();\t\n\t$(\".sbi_load_btn .sbi_btn_text\").text(\"Load more\");\n\t$(\".fr .sbi_load_btn .sbi_btn_text\").text(\"Télécharger plus\");\n\t$(\".walk-in-sections-part\").load();\n\n //scrollup\n $.scrollUp({\n scrollName: 'scrollUp',\n topDistance: '300',\n topSpeed: 300,\n animation: 'fade',\n animationInSpeed: 200,\n animationOutSpeed: 200,\n scrollText: 'Scroll up',\n activeOverlay: false,\n });\n})\n\n$(window).load(function() {\n\tequalHeight();\t\n\tdtybHeight();\n\t$(\".walk-in-sections-part\").load();\t\n})\n\n$(window).resize(function() {\n\tequalHeight();\n\tgalleryHeight();\n\tdtybHeight();\n})\n\n\n$( document ).ready(function() {\n\n\t/*for single slider with dots*/\n\t$('.single-slider').owlCarousel({\n\t\tloop:true,\n\t\tmargin:10,\n\t\tresponsiveClass:true,\n\t\titems:1,\n\t\tautoplay:true,\n\t\tautoplayTimeout:6000,\n\t\tsmartSpeed:1000,\n\t\tmouseDrag: false\n\t});\n\t\n\t$('.about-slider').owlCarousel({\n\t\tloop:true,\n\t\tmargin:10,\n\t\tresponsiveClass:true,\n\t\titems:1,\n autoplay:true,\n\t\tnav:true,\n dots:false,\n\t\tmouseDrag: false,\n\t\ttouchDrag: false,\n\t\tautoplayTimeout:3000\n\t});\n\t\n\t/*for single slider with dots end*/\n\t\n\t/*for single slider with nav arrow*/\n\t$('.sliderWD-nav').owlCarousel({\n\t\tloop:true,\n\t\tmargin:10,\n\t\tresponsiveClass:true,\n\t\titems:1,\n autoplay:false,\n\t\tnav:true,\n dots:false,\n\t\tmouseDrag: false,\n\t\ttouchDrag: false,\n\t\tautoplayTimeout:3000\n\t});\n\t\n\t/*for single slider with nav arrow end*/\n\t\n\t\n /*for single slider with dots and nav */\n $('.before-after-carousel').owlCarousel({\n loop:true,\n margin:10,\n responsiveClass:true,\n items:1,\n nav:true,\n autoplay:true,\n\t\tsmartSpeed:1500,\n\t\tautoplayTimeout:6000,\n\t\tmouseDrag: false\n });\n \n /*for single slider with dots end*/\n\n\t/*click to slide search*/\n\t\t$('.mobile-menu-search .open-search').click(function(){\n\t\tif ($(window).width() > 767) {\n\t\t\t$(\".mobile-menu-search .searchbox-input\").animate({\n\t\t\t\t'opacity': '1', 'width': '170'\n\t\t\t}, 100, function(){\n\t\t\t\t$('.searchbox-input').css({'border': '1px solid #999999', 'padding-right': '5px'});\n\t\t\t\t$('.open-search').hide(100);\n\t\t\t\t$('html').click(function(){\n\t\t\t\t\t\t\n\t\t\t if ($('body').hasClass('fr')) {\n\t\t\t\t $('.mobile-menu-search .searchbox-input').css({'width': '70'}, 100);\n\t\t\t }\n\t\t\t\telse{\n\t\t\t\t\t$('.mobile-menu-search .searchbox-input').css({'width': '44'}, 100);\n\t\t\t\t}\t\n\t\t\t\t\tsetTimeout(function(){ $('.searchbox-input').css({'border': '1px solid #fff', 'padding-right': '0'}), 500});\n\t\t\t\t\t$('.open-search').show(100);\n\t\t\t\t});\n\t\t\t\t$('.mobile-menu-search').click(function(event){\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t});\n\t\t\t}).show();\n\t\t}\n\t});\n\t/*click to slide search end*/\n\n\t$('.slider-client').slick({\n\t\tslidesToShow: 4,\n\t\tslidesToScroll: 1,\n\t\tdots: false,\n\t\tarrows: true,\n\t\tautoplay: true,\n\t\tcenterMode: false,\n\t\tcenterPadding: '10px'\n\t\t});\n\t\n\t /* $('.slider-client').slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n initialSlide: initialSlide,\n centerMode: false,\n adaptiveHeight: false,\n draggable: draggableOption,\n swipe: draggableOption,\n arrows: true,\n autoplay: true,\n autoplaySpeed: autoplaySpeedOption,\n prevArrow: '',\n nextArrow: '',\n }); */\n\n\t\n\n /*Only for detail page slider*/\n\n //var galid = $(\".storage-wrapper .slider\").attr('id');\n\n $(\".storage-wrapper .slider\").each(function(element, index) {\n var galid = $(this).attr(\"id\"); //alert(galid);\n\n if(galid!=='undefined'){\n\n $('.slider-for-'+galid).slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n arrows: true,\n centerMode: true,\n fade: true,\n asNavFor: '.slider-nav-'+galid\n });\n $('.slider-nav-'+galid).slick({\n slidesToShow: 4,\n slidesToScroll: 1,\n asNavFor: '.slider-for-'+galid,\n dots: false,\n \n focusOnSelect: true,\n responsive: [\n {\n breakpoint: 1024,\n settings: {\n slidesToShow: 3,\n slidesToScroll: 1,\n infinite: true\n }\n },\n\t\t\t\t\t\n\t\t\t\t\t{\n breakpoint: 767,\n settings: {\n slidesToShow: 4,\n slidesToScroll: 1\n }\n },\n\t\t\t\t\t\n {\n breakpoint: 600,\n settings: {\n slidesToShow: 3,\n slidesToScroll: 1\n }\n },\n {\n breakpoint: 480,\n settings: {\n slidesToShow: 2,\n slidesToScroll: 1\n }\n }\n ]\n });\n }\n });\n\t\n\t\n\n\n\n /*SICK SLIDER AND GALLERY STARTS HERE*/\n\n if($('.slider-for').length > 0) {\n\n \tvar pid = $(\"span#pid\").html();\n\n //check pid is numeric\n if ($.isNumeric(pid) === true) {\n pid = (pid === '0' ? pid = 0 : pid -1);\n }\n else {\n pid = 0;\n }\n\n $('.slider-for').slick({\n\t\t\tinitialSlide: pid,\n\t\t\tslidesToShow: 1,\n\t\t\tslidesToScroll: 1,\n\t\t\tarrows: true,\n\t\t\tcenterMode: true,\n\t\t\tfade: true,\n\t\t\t/* \t adaptiveHeight: true, */\n\t\t\tasNavFor: '.slider-nav'\n });\n \n $('.slider-nav').slick({\n slidesToShow: 4,\n slidesToScroll: 1,\n asNavFor: '.slider-for',\n dots: false,\n \n focusOnSelect: true,\n\t\t responsive: [\n\t\t\t\t{\n\t\t\t\t breakpoint: 1024,\n\t\t\t\t settings: {\n\t\t\t\t\tslidesToShow: 3,\n\t\t\t\t\tslidesToScroll: 1,\n\t\t\t\t\tinfinite: true\n\t\t\t\t }\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t breakpoint: 600,\n\t\t\t\t settings: {\n\t\t\t\t\tslidesToShow: 2,\n\t\t\t\t\tslidesToScroll: 1\n\t\t\t\t }\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t breakpoint: 480,\n\t\t\t\t settings: {\n\t\t\t\t\tslidesToShow: 2,\n\t\t\t\t\tslidesToScroll: 1\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t// You can unslick at a given breakpoint now by adding:\n\t\t\t\t// settings: \"unslick\"\n\t\t\t\t// instead of a settings object\n\t\t\t ]\n });\n\n $('.slider-for-right').slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n arrows: true,\n fade: true,\n asNavFor: '.slider-nav-right'\n });\n \n $('.slider-nav-right').slick({\n slidesToShow: 4,\n slidesToScroll: 1,\n dots: false,\n asNavFor: '.slider-for-right',\n dots: false,\n centerMode: true,\n focusOnSelect: true\n });\n }\n /*SICK SLIDER AND GALLERY ENDS HERE*/\n\t\nif ($(window).width() > 767) {\n/*mega dropdown*/\nvar $menu = $(\".dropdown-menu\");\n\n // jQuery-menu-aim: \n // Hook up events to be fired on menu row activation.\n $menu.menuAim({\n activate: activateSubmenu,\n deactivate: deactivateSubmenu\n });\n // jQuery-menu-aim: \n\n // jQuery-menu-aim: the following JS is used to show and hide the submenu\n // contents. Again, this can be done in any number of ways. jQuery-menu-aim\n // doesn't care how you do this, it just fires the activate and deactivate\n // events at the right times so you know when to show and hide your submenus.\n function activateSubmenu(row) {\n var $row = $(row),\n submenuId = $row.data(\"submenuId\"),\n $submenu = $(\"#\" + submenuId),\n height = $menu.outerHeight(),\n width = $menu.outerWidth();\n\n // Show the submenu\n $submenu.css({\n display: \"block\",\n //top: -1,\n //left: width - 3, // main should overlay submenu\n //height: height - 4 // padding for main dropdown's arrow\n });\n\n // Keep the currently activated row's highlighted look\n $row.find(\"a\").addClass(\"current-active\");\n }\n\n function deactivateSubmenu(row) {\n var $row = $(row),\n submenuId = $row.data(\"submenuId\"),\n $submenu = $(\"#\" + submenuId);\n\n // Hide the submenu and remove the row's highlighted look\n $submenu.css(\"display\", \"none\");\n $row.find(\"a\").removeClass(\"maintainHover\");\n\t\t\t\n }\n\t\t\n\t\t\t$('.dropdown-menu').mouseleave(function(){\n\t\t\t\t$('.navigation ul.dropdown-menu > li:first-child a').addClass(\"maintainHover\");\n\t\t\t});\n\t\t\t\n\n\n $(document).click(function() {\n // Simply hide the submenu on any click. Again, this is just a hacked\n // together menu/submenu structure to show the use of jQuery-menu-aim.\n $(\".popover\").css(\"display\", \"block\");\n $(\"a.maintainHover\").addClass(\"maintainHover\");\n });\t\n};\t \n $('.show-book-now').on('click', function(es){\n es.preventDefault();\n if($('#hp_slide_book_now').length > 0) {\n if($('#hp_slide_book_now').is(\":visible\") == true) {\n $('#hp_slide_book_now').fadeOut(150, function() {\n $(\"#top_button_book_now\").fadeIn(150);\n });\n }\n else {\n $(\"#top_button_book_now\").fadeOut(150, function() {\n $(\"#hp_slide_book_now\").fadeIn(150);\n });\n }\n }\n else {\n if($('#top_button_book_now').is(\":visible\") == true) {\n $(\"#top_button_book_now\").fadeOut(150);\n }\n else {\n $(\"#top_button_book_now\").fadeIn(150);\n }\n }\n });\n \n\t\t//Count height and add padding\n\n\t\tfunction headerInner(){\n\t\t //padding for top header \n\t\t var headerHeight = jQuery('header').height();\n\t\t var adminBar = jQuery('#wpadminbar').length;\n\t\t // If the admin bar is present subtract its height.\n\t\t var SitePaddTop = adminBar ? headerHeight - 32 : headerHeight;\n\t\t jQuery('body').css('padding-top', SitePaddTop+'px');\n\t\t \n\t\t }\n\t\t \n\t\t \n\t\t jQuery(window).load(function() {\n\t\t\t headerInner();\t\t\t \n\t\t });\n\t\t \n\t\t jQuery(window).resize(function() {\n\t\t\theaderInner();\n\t\t });\n\t\t \n\t\t jQuery(document).ready(function() {\n\t\t\theaderInner();\n\t\t });\n \n\t/* member modal load js - starts here */\n $('.member-readmore .read-more').on('click', function(){\n $(\".team-member-modal .modal-body\").html(' ');\n \n var ajaxdata = 'member_id=' + $(this).attr('rel') + \"&action=load_member_modal&type=member\";\n $.post(ajaxurl, ajaxdata, function(res){\n if ('$(window).width() > 767') {\n let window_h = $(window).height();\n let modalMarginTop = parseInt($(\"#team-member-modal .modal-dialog\").css(\"marginTop\"));\n let modalMarginBottom = parseInt($(\"#team-member-modal .modal-dialog\").css(\"marginBottom\"));\n if (window_h > ( modalMarginTop + modalMarginBottom)) {\n $('#team-member-modal .modal-dialog').height(window_h - modalMarginTop - modalMarginBottom);\n }\n $(\".team-member-modal .modal-body\").html(res);\n $(\"#team-member-modal\").modal('show');\n $(\".team-member-modal .modal-body .modal-content\").css('overflow', 'auto');\n }\n });\n });\n $(document).on(\"touchstart\", '.modal', function(e){\n if ($('body').hasClass('modal-open')) {\n e.stopPropagation();\n e.stopImmediatePropagation();\n return e.false;\n }\n });\n $('.member_responsive .team-read-more').on('click', function(e){\n e.preventDefault();\n $(this).fadeOut();\n $(this).parent().find('.expanded-text').each(function(){\n $(this).fadeIn();\n });\n });\n $('.member_responsive .team-read-less').on('click', function(e){\n e.preventDefault();\n $(this).parent().fadeOut();\n $('a.team-read-more').fadeIn();\n });\n \n /******* Client story page - Room Selection *********/\n \n $('.room_filter_client_stories').on( 'change', function(){\n var RoomTypeId = $(this).val();\n var term_id = $('#term_id').val();\n var ajaxdata = \"roomId=\" + RoomTypeId + \"&termId=\"+term_id+\"&action=filter_client_stories\";\n $('.filter-loader').show();\n $.post(ajaxurl, ajaxdata, function (res) {\n $(\"#storyData\").html(res);\n $('.filter-loader').hide();\n });\n return false;\n });\n //clientStoryCarousel();\n //subroomCarousel()\n\n /*$('.btn-wrapper a.read-more').on('click', function(e){\n e.preventDefault();\n $(this).hide();\n $('#aboutus_more').fadeIn();\n });\n $('.btn-wrapper a.slide-less').on('click', function(e){\n e.preventDefault();\n $('.btn-wrapper a.read-more').show();\n $('#aboutus_more').slideUp();\n $('.slide-more').fadeIn();\n $('html, body').animate({\n scrollTop: $('.step_section').position().top\n }, 400);\n });*/\n\n $('.btn-wrapper a.read-more').on('click', function(e){\n e.preventDefault();\n $(this).hide();\n $('#aboutus_more').fadeIn();\n });\n $('.btn-wrapper a.slide-less').on('click', function(e){\n e.preventDefault();\n $(\"#aboutus_more\").slideUp();\n $('a.read-more').fadeIn();\n $('html, body').animate({\n scrollTop: $('.about-page-txt').position().top\n }, 400);\n });\n\n\n /* sign Up button js - starts here */\n //$('.signup-form button').on('click', function(){\n $('input#contact-submit').on('click', function(){\n var btn = $(this);\n $('.signup-form p.error-message').remove();\n btn.prop(\"disabled\", true);\n var ajaxdata = $(\".signup-form\").serialize() + \"&action=ajax_sign_up\";\n $.post(ajaxurl, ajaxdata, function(res){\n $('.cta-res').html(res);\n $('.cta-res').show();\n if (!$(res).is('p')) {\n dataLayer.push({\n 'event': 'emailSuccessfullyRegistered'\n });\n }\n setTimeout(function(){\n $('.cta-res p').remove();\n btn.prop(\"disabled\", false);\n $('.cta-res').hide();\n }, 3000);\n setTimeout(function(){\n $('.cta-newsletter-thanks').hide();\n }, 3000);\n });\n return false;\n });\n /* sign Up button js - ends here */\n});\n\n\n\nfunction subroomCarousel(){\n var initialSlide = 0; // Default start index if none is specified in URL\n if (window.location.hash && window.location.hash != '#designers') {\n initialSlide = parseInt(window.location.hash.slice(8));\n }\n var sliderFor = '.slick-slider-stage',\n sliderNav = '.slick-slider-nav',\n customSlide = $(sliderNav).find('.slick-slide'),\n draggableOption = (($(sliderFor).data('draggable') == false) ? false : true),\n firstItemSwipeOption = (($(sliderFor).data('first-item-swipe') == false) ? false : true),\n autoplaySpeedOption = (($(sliderFor).data('autoplay-speed')) ? $(sliderFor).data('autoplay-speed') : 9000);\n\n $(sliderFor).slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n initialSlide: initialSlide,\n centerMode: false,\n adaptiveHeight: false,\n draggable: draggableOption,\n swipe: draggableOption,\n arrows: true,\n autoplay: true,\n autoplaySpeed: autoplaySpeedOption,\n prevArrow: '',\n nextArrow: '',\n });\n\n //console.log(firstItemSwipeOption);\n if (!firstItemSwipeOption) {\n $('.carousel-stage.slick-slider .slick-prev').addClass('hide');\n }\n\n $(sliderFor).on('beforeChange', function(event, slick, currentSlide, nextSlide){\n $('.carousel-stage.slick-slider .slick-next span').addClass('animate-arrow');\n $('.carousel-stage.slick-slider .slick-prev span').addClass('animate-arrow');\n setTimeout(function(){\n $('.carousel-stage.slick-slider .slick-next span').removeClass('animate-arrow');\n $('.carousel-stage.slick-slider .slick-prev span').removeClass('animate-arrow');\n }, 1500);\n });\n\n\n if (!firstItemSwipeOption) {\n $(sliderFor).on('afterChange', function (event, slick, currentSlide, nextSlide) {\n if (currentSlide == 0) {\n $('.carousel-stage.slick-slider .slick-prev').addClass('hide');\n } else {\n $('.carousel-stage.slick-slider .slick-prev').removeClass('hide');\n }\n });\n }\n $(sliderNav).slick({\n slidesToShow: 4,\n slidesToScroll: 1,\n initialSlide: initialSlide,\n centerMode: false,\n focusOnSelect: false,\n prevArrow: '',\n nextArrow: '',\n responsive: [\n {\n breakpoint: 480,\n settings: {\n slidesToShow: 2\n }\n }\n ]\n });\n $(sliderNav).find('.slick-current').addClass('slick-goto');\n customSlide.on('click', function(){\n $(sliderFor).slick('slickGoTo', $(this).attr('data-slick-index'));\n customSlide.removeClass('slick-goto');\n $(this).addClass('slick-goto');\n });\n}\n\nfunction tabbedContentMoreLess(){\n var currentMoreState = 0;\n var moreText = $('.btn-more-text').text(),\n lessText = $('.btn-less-text').text(),\n readMoreHeight = $('.tabcontent-readmore').height(),\n readLessHeight = $('.tabcontent-readless').height();\n if (( readMoreHeight >= readLessHeight ) && ( readMoreHeight != 0 )) {\n // Sets the .more-block div to the specified height and hides any content that overflows\n $(\"a.btn-moreless\").text(moreText);\n franchiseTabHeight();\n $(\".btn-moreless\").on('click tap', function() {\n if (currentMoreState == 0) {\n $(this).text(lessText);\n $('.custom-closet-tabs').find(\".tabcontent-readless\").css('display', 'none');\n $('.custom-closet-tabs').find(\".tabcontent-readmore\").css('display', 'block').css('height', 'auto').css('overflow', 'visible');\n $('.custom-closet-tabs').find('.btn-moreless').text(lessText);\n currentMoreState = 1;\n franchiseTabHeight();\n } else if (currentMoreState == 1) {\n $(this).text(moreText);\n $('.custom-closet-tabs').find(\".tabcontent-readmore\").css('display', 'none');\n $('.custom-closet-tabs').find(\".tabcontent-readless\").css('display', 'block');\n $('.custom-closet-tabs').find('.btn-moreless').text(moreText);\n currentMoreState = 0;\n franchiseTabHeight();\n }\n });\n }\n}\n\nfunction mobileTabbedContent(){\n $('.mobile-tabbed-content .accordion').on('click tap', function(){\n //console.log($(this));\n if($(this).hasClass('show_tab')){\n console.log('true');\n $('.mobile-tabbed-content .accordion.show_tab').each(function () {\n $(this).removeClass('show_tab');\n });\n $('body').scrollTo(0, $(this));\n return false;\n }else {\n console.log('false');\n $('.mobile-tabbed-content .accordion.show_tab').each(function () {\n $(this).removeClass('show_tab');\n });\n $(this).addClass('show_tab');\n $('body').scrollTo(0, $(this));\n return false;\n }\n });\n}\nfunction franchiseTabHeight(){\n \n var contentHeight = $('.custom-closet-tabs .tab .scroll-cont').height(),\n tabHeight = $('.custom-closet-tabs .tabs-menu ul').height();\n if ($(window).width() < 767) {\n //$('.custom-closet-tabs .tabs-menu ul').css('height', contentHeight);\n $('.custom-closet-tabs .tab .scroll-cont').css('min-height', tabHeight);\n }\n else {\n $('.custom-closet-tabs .tabs-menu ul').css('height', contentHeight + 50);\n //$('.tabs-menu').css('min-height', $('.custom-closet-tabs .tab .scroll-cont').height() + 50);\n }\n}\n\n//Press news page as seen as slider\n$('.about-logo').owlCarousel({\n loop:true,\n margin:10,\n responsiveClass:true,\n items:5,\n autoplay:true,\n nav:true,\n dots:false,\n mouseDrag: false,\n touchDrag: true,\n autoplayTimeout:3000,\n\tresponsive:{\n 0:{\n items:2\n },\n 600:{\n items:3\n },\n 1000:{\n items:5\n }\n }\n});\n\n\n/* zoom in image for material details swatches start \nfunction imageZoom(){\n\t$('.img-show').popover({\n\t\tplacement: function(context, source){\n\t\t\tvar position = $(source).offset().top,\n\t\t\t\thPosition = $(source).position();\n\t\t\tif ($(window).width() > 991) {\n\t\t\t\tif (position - $(window).scrollTop() > 340) {\n\t\t\t\t\treturn \"top\";\n\t\t\t\t} else if (position - $(window).scrollTop() > 120 && hPosition.left > 415) {\n\t\t\t\t\treturn \"left\";\n\t\t\t\t} else if (position - $(window).scrollTop() > 120 && hPosition.left < 415) {\n\t\t\t\t\treturn \"right\";\n\t\t\t\t} else {\n\t\t\t\t\treturn \"bottom\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (position - $(window).scrollTop() > 340) {\n\t\t\t\t\treturn 'top';\n\t\t\t\t} else {\n\t\t\t\t\treturn \"bottom\";\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\ttrigger: 'focus hover',\n\t\thtml: true,\n\t\tcontent: function(){\n\t\t\treturn $(this).next('.img-content-preview').html();\n\t\t}\n\t});\n\t$('body')\n\t\t.on('click', function(e){\n\t\t\t$('.img-show').each(function(){\n\t\t\t\t//the 'is' for buttons that trigger popups\n\t\t\t\t//the 'has' for icons within a button that triggers a popup\n\t\t\t\tif (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {\n\t\t\t\t\t$(this).popover('hide');\n\t\t\t\t}\n\t\t\t});\n\t\t})\n\t\t.on('tap', function(e){\n\t\t\t$('.img-show').each(function(){\n\t\t\t\t//the 'is' for buttons that trigger popups\n\t\t\t\t//the 'has' for icons within a button that triggers a popup\n\t\t\t\tif (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {\n\t\t\t\t\t$(this).popover('hide');\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t$('.img-show').on('mouseenter', function(){\n\t\t$(this).parent().siblings().children('.img-show').popover('hide');\n\t\t$(this).popover('show');\n\t});\n}*/\n\n$(document).ready(function() {\n $(\".room-select .visit-type\").bind(\"click\", function(a) {\n var b = $(this).find(\"input:checkbox\");\n $(a.target).is(\"input:checkbox\") ? $(b).is(\":checked\") ? $(this).addClass(\"checked\") : $(this).removeClass(\"checked\") : $(b).is(\":checked\") ? ($(this).find(\"input:checkbox\").prop(\"checked\", !1), $(this).removeClass(\"checked\")) : ($(this).find(\"input:checkbox\").prop(\"checked\", !0), $(this).addClass(\"checked\"))\n })\n\n $(\".social-connect ul li a.facebook\").on('click', function(ee){\n \tee.preventDefault();\n\n \t//alert(project); \n\n \tvar galleryTilte = $(this).attr('galleryTilte');\n \tvar summary = $(this).attr('summary');\n \tvar galimg = $(this).attr('galimg');\n \tvar url = $(this).attr('url')+'?project='+galno;\n\n \tvar galno = $(this).attr('rel');\n\n\n \t//alert(galleryTilte+'--'+summary+'--'+url+'---'+galno+'---'+galimg);\n\n \t$('meta[property=\"og:title\"]').attr('content', galleryTilte );\n \t$('meta[property=\"og:description\"]').attr('content', summary);\n \t$('meta[property=\"og:url\"]').attr('content', url);\n \t$('meta[property=\"og:image\"]').attr('content', galimg);\n\n window.open(\"http://www.facebook.com/sharer.php?u=\" + encodeURIComponent(currObjURL + \"?sliding=1&project=\" + galno), '_blank', 'height=600,width=800');\n\t});\n\n\t$('.btnPinIt').click(function(e) {\n e.preventDefault();\n e.stopPropagation();\n var url = encodeURIComponent($(this).attr('href'));\n var media = $(this).attr('data-image');\n var desc = $(this).attr('data-desc');\n window.open(\"//www.pinterest.com/pin/create/button/\"+\n \"?url=\"+url+\n \"&media=\"+media+\n \"&description=\"+desc,\"_blank\", 'width=700, height=300');\n return false;\n });\n});"]}