OwlCyberSecurity - MANAGER
Edit File: customize-preview.min.js
function inspiroBuildStyleTag(e,t,o){let i="",n="",s=!1,a=e.replace("-"+o,"");a="typo-"+a;const c=e+"-media";return c in inspiroCustomizePreview.selectors&&(s=!0),a in inspiroCustomizePreview.selectors&&(s&&(n+=inspiroCustomizePreview.selectors[c]+"{"),n+=inspiroCustomizePreview.selectors[a],"font-size"===o&&(t+="px"),i='<style id="'+e+"-"+o+'">'+n+" { "+o+": "+t+" }"+(s?" }":"")+"</style>"),i}!function(e){wp.customize("header_site_title",function(t){t.bind(function(t){e(".site-title a").text(t)})}),wp.customize("header_site_description",function(t){t.bind(function(t){e(".site-description").text(t)})}),wp.customize("custom_logo_text",function(t){t.bind(function(t){e(".site-header .custom-logo-text").text(t)})}),wp.customize("header_button_title",function(t){t.bind(function(t){""===t?e(".custom-header-button").css("display","none"):e(".custom-header-button").css("display","inline-block").text(t)})}),wp.customize("header_search_show",function(t){t.bind(function(t){!0===t?e(".sb-search").css("display","block"):!1===t&&e(".sb-search").css("display","none")})}),wp.customize("hero_enable",function(t){t.bind(function(t){!0===t?(e(".custom-header").css("display","block"),e(document.body).addClass("has-header-image")):!1===t&&(e(".custom-header").css("display","none"),e(document.body).removeClass("has-header-image"))})}),wp.customize("overlay_show",function(t){t.bind(function(t){!0===t?e(".has-header-image .custom-header-media, .has-header-video .custom-header-media").removeClass("hide_overlay"):!1===t&&e(".has-header-image .custom-header-media, .has-header-video .custom-header-media").addClass("hide_overlay")})}),wp.customize("header_textcolor",function(t){t.bind(function(t){"blank"===t?(e(".site-title, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}),e("body").addClass("title-tagline-hidden")):(t.length||e("#inspiro-custom-header-styles").remove(),e(".site-title, .site-description").css({clip:"auto",position:"relative"}),e(".site-branding-text, .site-branding-text a, .site-description, .site-description a").css({color:t}),e("body").removeClass("title-tagline-hidden"))})}),wp.customize("header_button_textcolor",function(t){t.bind(function(t){"blank"===t?e(".custom-header-button").css({color:"#ffffff"}):e(".custom-header-button").css({color:t})})}),wp.customize("color_menu_background",function(t){t.bind(function(t){"blank"===t?e(".navbar").css({color:"#101010"}):e(".navbar").css({color:t})})}),wp.customize("color_footer_background",function(t){t.bind(function(t){"blank"===t?e(".site-footer").css({background:"#101010"}):e(".site-footer").css({background:t})})}),wp.customize("color_footer_text",function(t){t.bind(function(t){"blank"===t?e(".site-footer").css({color:"#78787f"}):e(".site-footer").css({color:t})})}),wp.customize("color-menu-background-scroll",function(t){t.bind(function(t){"blank"===t?e(".headroom--not-top .navbar").css({background:"rgba(0,0,0,.9)"}):e(".headroom--not-top .navbar").css({background:t})})}),wp.customize("colorscheme",function(t){t.bind(function(t){e("body").removeClass("colors-light colors-dark colors-custom").addClass("colors-"+t)})}),wp.customize("colorscheme_hex",function(t){t.bind(function(t){const o=e("#custom-theme-colors"),i=o.data("hex");let n=o.html();n=n.replaceAll(i,t),o.html(n).data("hex",t)})}),e.each(["external_header_video","header_image","header_video"],function(t,o){wp.customize(o,function(t){t.bind(function(){!function(){const e=wp.customize("header_image")();return""!==e&&"remove-header"!==e}()?e(document.body).removeClass("has-header-image"):e(document.body).addClass("has-header-image"),function(){const e=wp.customize("external_header_video")(),t=wp.customize("header_video")();return""!==e||0!==t&&""!==t}()||e(document.body).removeClass("has-header-video")})})}),e.each(["body-font-family","logo-font-family","headings-font-family","slider-title-font-family","slider-text-font-family","slider-button-font-family","mainmenu-font-family","mobilemenu-font-family"],function(t,o){wp.customize(o,function(t){t.bind(function(t){t in inspiroCustomizePreview.systemFonts&&(t=inspiroCustomizePreview.systemFonts[t].stack);const i=inspiroBuildStyleTag(o,t,"font-family");let n="",s=t.split(",")[0];s=s.replace(/'/g,""),e("style#"+o+"-font-family").remove(),s in inspiroCustomizePreview.googleFonts&&(s=s.split(" ").join("+"),e("link#"+o).remove(),n='<link id="'+o+'" href="https://fonts.googleapis.com/css?family='+s+'" rel="stylesheet">'),e("head").append(i+n)})})}),e.each(["body-font-weight","logo-font-weight","headings-font-weight","slider-title-font-weight","slider-text-font-weight","slider-button-font-weight","mainmenu-font-weight","mobilemenu-font-weight"],function(t,o){wp.customize(o,function(t){t.bind(function(t){const i=inspiroBuildStyleTag(o,t,"font-weight"),n=o.replace("font-weight","font-family");let s="";if(t){let a=wp.customize._value[n]._value;a=(a=a.split(","))[0].replace(/'/g,""),e("style#"+o+"-font-weight").remove(),a in inspiroCustomizePreview.googleFonts&&(e("#"+n).remove(),s="inherit"===t?'<link id="'+n+'" href="https://fonts.googleapis.com/css?family='+a+'" rel="stylesheet">':'<link id="'+n+'" href="https://fonts.googleapis.com/css?family='+a+"%3A"+t+'" rel="stylesheet">'),e("head").append(i+s)}else e("style#"+o).remove()})})}),e.each(["body-font-size","logo-font-size","headings-font-size","slider-title-font-size","slider-text-font-size","slider-button-font-size","mainmenu-font-size","mobilemenu-font-size"],function(t,o){wp.customize(o,function(t){t.bind(function(t){const i=inspiroBuildStyleTag(o,t,"font-size");e("style#"+o+"-font-size").remove(),e("head").append(i)})})}),e.each(["body-text-transform","logo-text-transform","headings-text-transform","slider-title-text-transform","slider-text-text-transform","slider-button-text-transform","mainmenu-text-transform","mobilemenu-text-transform"],function(t,o){wp.customize(o,function(t){t.bind(function(t){const i=inspiroBuildStyleTag(o,t,"text-transform");e("style#"+o+"-text-transform").remove(),e("head").append(i)})})}),e.each(["body-line-height","logo-line-height","headings-line-height","slider-title-line-height","slider-text-line-height","slider-button-line-height","mainmenu-line-height","mobilemenu-line-height"],function(t,o){wp.customize(o,function(t){t.bind(function(t){const i=inspiroBuildStyleTag(o,t,"line-height");e("style#"+o+"-line-height").remove(),e("head").append(i)})})})}(jQuery);