OwlCyberSecurity - MANAGER
Edit File: customizer-preview.min.js
!function(e){const t="digital_newspaper_",o=function(t,o){e.ajax({method:"GET",url:digitalNewspaperPreviewObject.ajaxUrl,data:{action:t,_wpnonce:digitalNewspaperPreviewObject._wpnonce},success:function(t){t&&(e("head #"+o).length>0?e("head #"+o).html(t):e("head").append('<style id="'+o+'">'+t+"</style>"))}})},i=function(t,o){t&&(e("head #"+o).length>0?e("head #"+o).html(t):e("head").append('<style id="'+o+'">'+t+"</style>"))},n=function(t,o){e.ajax({method:"GET",url:digitalNewspaperPreviewObject.ajaxUrl,data:{action:t,_wpnonce:digitalNewspaperPreviewObject._wpnonce},success:function(t){t&&(e("head #"+o).length>0?e("head #"+o).attr("href",t):e("head").append('<link rel="stylesheet" id="'+o+'" href="'+t+'"></link>'))}})};wp.customize("website_block_border_top_option",(function(t){t.bind((function(t){t?(e("body").removeClass("digital_newspaper_site_block_border_top"),e("body").addClass("digital_newspaper_site_block_border_top")):e("body").removeClass("digital_newspaper_site_block_border_top")}))})),wp.customize("post_title_hover_effects",(function(t){t.bind((function(t){e("body").removeClass("digital-newspaper-title-none digital-newspaper-title-one digital-newspaper-title-four"),e("body").addClass("digital-newspaper-title-"+t)}))})),wp.customize("website_layout",(function(t){t.bind((function(t){e("body").removeClass("site-boxed--layout site-full-width--layout"),e("body").addClass("site-"+t)}))})),wp.customize("website_block_title_layout",(function(t){t.bind((function(t){e("body").removeClass("block-title--layout-one block-title--layout-two block-title--layout-three block-title--layout-four block-title--layout-five"),e("body").addClass("block-title--"+t)}))})),wp.customize("site_image_hover_effects",(function(t){t.bind((function(t){e("body").removeClass("digital-newspaper-image-hover--effect-six"),e("body").addClass("digital-newspaper-image-hover--effect-"+t)}))})),wp.customize("website_block_border_top_color",(function(e){e.bind((function(e){s.blockBorderStyles()}))})),wp.customize("theme_color",(function(e){e.bind((function(e){r.generateStyle(e,"theme-color-style","--theme-color-red")}))})),wp.customize("preset_color_1",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-color-1-style","--digital-newspaper-global-preset-color-1")}))})),wp.customize("preset_color_2",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-color-2-style","--digital-newspaper-global-preset-color-2")}))})),wp.customize("preset_color_3",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-color-3-style","--digital-newspaper-global-preset-color-3")}))})),wp.customize("preset_color_4",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-color-4-style","--digital-newspaper-global-preset-color-4")}))})),wp.customize("preset_color_5",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-color-5-style","--digital-newspaper-global-preset-color-5")}))})),wp.customize("preset_color_6",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-color-6-style","--digital-newspaper-global-preset-color-6")}))})),wp.customize("preset_gradient_1",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-gradient-color-1-style","--digital-newspaper-global-preset-gradient-color-1")}))})),wp.customize("preset_gradient_2",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-gradient-color-2-style","--digital-newspaper-global-preset-gradient-color-2")}))})),wp.customize("preset_gradient_3",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-gradient-color-3-style","--digital-newspaper-global-preset-gradient-color-3")}))})),wp.customize("preset_gradient_4",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-gradient-color-4-style","--digital-newspaper-global-preset-gradient-color-4")}))})),wp.customize("preset_gradient_5",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-gradient-color-5-style","--digital-newspaper-global-preset-gradient-color-5")}))})),wp.customize("preset_gradient_6",(function(e){e.bind((function(e){r.generateStyle(e,"theme-preset-gradient-color-6-style","--digital-newspaper-global-preset-gradient-color-6")}))})),wp.customize("top_header_background_color_group",(function(e){e.bind((function(e){s.topHeaderStyles()}))})),wp.customize("header_vertical_padding",(function(e){e.bind((function(e){s.headerStyles()}))})),wp.customize("header_background_color_group",(function(e){e.bind((function(e){s.headerStyles()}))})),wp.customize("header_menu_typo",(function(e){e.bind((function(e){s.headerMenuTypoStyles()}))})),wp.customize("header_sub_menu_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.headerMenuTypoStyles()}))})),wp.customize("header_menu_hover_effect",(function(t){t.bind((function(t){e("#site-navigation").removeClass("hover-effect--one hover-effect--none"),e("#site-navigation").addClass("hover-effect--"+t)}))})),wp.customize("digital_newspaper_site_logo_width",(function(e){e.bind((function(e){s.siteLogoStyles()}))})),wp.customize("blogname",(function(t){t.bind((function(t){e(".site-title a").text(t)}))})),wp.customize("blogdescription",(function(t){t.bind((function(t){e(".site-description").text(t)}))})),wp.customize("blogdescription_option",(function(t){t.bind((function(t){t?e(".site-description").css({clip:"auto",position:"relative"}):e(".site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"})}))})),wp.customize("header_textcolor",(function(t){t.bind((function(t){"blank"===t?e(".site-title").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):(e(".site-title").css({clip:"auto",position:"relative"}),e(".site-title a").css({color:t}))}))})),wp.customize("site_description_color",(function(t){t.bind((function(t){e(".site-description").css({color:t})}))})),wp.customize("site_title_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.siteTitleTypo()}))})),wp.customize("bottom_footer_menu_option",(function(t){t.bind((function(t){t?e(".bottom-footer .bottom-menu").show():e(".bottom-footer .bottom-menu").hide()}))})),wp.customize("single_post_related_posts_title",(function(t){t.bind((function(t){e(".single-related-posts-section .digital-newspaper-block-title span").text(t)}))})),wp.customize("footer_section_width",(function(t){t.bind((function(t){"boxed-width"==t?(e("footer .main-footer").removeClass("full-width").addClass("boxed-width"),e("footer .main-footer .footer-inner").removeClass("digital-newspaper-container-fluid").addClass("digital-newspaper-container")):(e("footer .main-footer").removeClass("boxed-width").addClass("full-width"),e("footer .main-footer .footer-inner").removeClass("digital-newspaper-container").addClass("digital-newspaper-container-fluid"))}))})),wp.customize("single_post_title_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.singlePostTypo()}))})),wp.customize("single_post_meta_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.singlePostTypo()}))})),wp.customize("single_post_content_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.singlePostTypo()}))})),wp.customize("site_section_block_title_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.siteArchiveTypo()}))})),wp.customize("site_archive_post_title_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.siteArchiveTypo()}))})),wp.customize("site_archive_post_meta_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.siteArchiveTypo()}))})),wp.customize("site_archive_post_content_typo",(function(e){e.bind((function(e){s.typoFontsEnqueue(),s.siteArchiveTypo()}))})),wp.customize("top_header_custom_css",(function(e){e.bind((function(e){var t="";e&&(t+=e.replace("{wrapper}",".top-header")),i(t,"digital-newspaper-top-header-custom-css")}))})),wp.customize("read_more_button_custom_css",(function(e){e.bind((function(e){var t="";e&&(t+=e.replace("{wrapper}",".post-element a.post-link-button")),i(t,"digital-newspaper-global-button-custom-css")}))}));const s={typoFontsEnqueue:function(){n(t+"typography_fonts_url","digital-newspaper-customizer-typo-fonts-css")},blockBorderStyles:function(){o(t+"customizer_site_block_border_top","digital-newspaper-site-block-border-top-styles")},siteLogoStyles:function(){o(t+"site_logo_styles","digital-newspaper-site-logo-styles")},siteTitleTypo:function(){o(t+"site_title_typo","digital-newspaper-site-title-typo")},singlePostTypo:function(){o(t+"single_typo__styles","digital-newspaper-single-post-typo")},siteArchiveTypo:function(){o(t+"site_archive_typo__styles","digital-newspaper-site-archive-post-typo")},topHeaderStyles:function(){o(t+"top_header_styles","digital-newspaper-top-header-styles")},headerStyles:function(){o(t+"header_styles","digital-newspaper-header-styles")},headerMenuTypoStyles:function(){var e=t+"header_menu_typo";s.typoFontsEnqueue(),o(e,"digital-newspaper-header-menu-typo")}},r={generateStyle:function(t,o,i){if(t){if("theme-color-style"==o)var n="body.digital_newspaper_main_body, body.digital_newspaper_dark_mode { "+i+": "+r.getFormatedColor(t)+"}";else n="body.digital_newspaper_main_body { "+i+": "+r.getFormatedColor(t)+"}";e("head #"+o).length>0?e("head #"+o).text(n):e("head").append('<style id="'+o+'">'+n+"</style>")}},getFormatedColor:function(e){if(null!=e)return e.includes("preset")?"var("+e+")":e}}}(jQuery);