You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart/js/scripts/header/headerBanner.min.js

1 lines
851 B

!function(a){woodmartThemeModule.headerBanner=function(){var o,e=woodmart_settings.header_banner_version;"undefined"!=typeof Cookies&&"closed"!==Cookies.get("woodmart_tb_banner_"+e)&&"no"!==woodmart_settings.header_banner_close_btn&&"no"!==woodmart_settings.header_banner_enabled&&(woodmartThemeModule.$body.hasClass("page-template-maintenance")||woodmartThemeModule.$body.addClass("header-banner-display"),a(".header-banner").on("click",".close-header-banner",function(e){e.preventDefault(),o()}),o=function(){woodmartThemeModule.$body.removeClass("header-banner-display").addClass("header-banner-hide"),Cookies.set("woodmart_tb_banner_"+e,"closed",{expires:parseInt(woodmart_settings.banner_version_cookie_expires),path:"/",secure:woodmart_settings.cookie_secure_param})})},a(document).ready(function(){woodmartThemeModule.headerBanner()})}(jQuery);