OwlCyberSecurity - MANAGER
Edit File: global.min.js
function inspiroResponsiveEmbeds(){let t,e,i,n;const a=document.querySelectorAll("body")[0];document.querySelectorAll("iframe").forEach(function(o){"wp-custom-header"!==o.parentElement.id?o.width&&o.height&&(t=parseFloat(o.width)/parseFloat(o.height),e=parseFloat(window.getComputedStyle(o.parentElement,null).width.replace("px","")),o.style.maxWidth="100%",o.style.maxHeight=Math.round(e/t).toString()+"px"):a.classList.contains("full-height-iframe-video")&&(o.hasAttribute("data-initial-width")||o.setAttribute("data-initial-width",o.width),o.hasAttribute("data-initial-height")||o.setAttribute("data-initial-height",o.height),i=o.getAttribute("data-initial-width"),n=o.getAttribute("data-initial-height"),window.innerWidth<1200?(o.width=window.innerHeight+window.innerWidth,o.height=window.innerWidth):(o.width=i,o.height=n))})}!function(t){const e=t("body"),i=e.find(".custom-header"),n=(i.find(".site-branding"),e.find("#site-navigation")),a=e.find("#scroll-to-content"),o=e.find("#content"),s=e.find("#secondary"),d=e.find(".entry-content"),r=(e.find(".format-quote blockquote"),e.hasClass("has-header-image")||e.hasClass("has-header-video"));e.hasClass("inspiro-front-page")||e.hasClass("home blog");let h,l,c,u=0;function g(){l=n.height(),c=n.outerHeight(),t("#wpadminbar").length&&(c+=t("#wpadminbar").outerHeight())}function f(){t(window).outerWidth()>=1?r||(i.css("padding-top",c),o.css("padding-top",c)):(i.css("padding-top","0"),o.css("padding-top",c))}function p(i){if(!s.length)return;if(!e.hasClass("has-sidebar")||e.hasClass("search")||e.hasClass("single-attachment")||e.hasClass("error404")||e.hasClass("inspiro-front-page"))return;const n=s.offset().top+(s.height()+28);d.find(i).each(function(){const e=t(this);e.offset().top>n?e.addClass("below-entry-meta"):e.removeClass("below-entry-meta")})}function m(){const t=document.createElement("div");let e;try{return!(!("backgroundAttachment"in t.style)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream)&&(t.style.backgroundAttachment="fixed",e="fixed"===t.style.backgroundAttachment)}catch(t){return!1}}t(document).ready(function(){e.addClass("inspiro-page-ready"),n.length&&g(),a.length&&(t("body").hasClass("admin-bar")&&(u-=32),n.length?u-=24:l=0,a.on("click",function(e){e.preventDefault(),t(window).scrollTo("#content",{duration:600,offset:{top:u-l}})})),inspiroResponsiveEmbeds(),f(),p("blockquote.alignleft, blockquote.alignright"),!0===m()&&(document.documentElement.className+=" background-fixed")}),n.length&&t(window).on("resize",function(){g(),f()}),t(window).on("resize",function(){inspiroResponsiveEmbeds(),clearTimeout(h),h=setTimeout(function(){p("blockquote.alignleft, blockquote.alignright")},300)}),t(window).on("load",function(){e.addClass("inspiro-page-loaded")}),t(document).on("wp-custom-header-video-loaded",function(){e.addClass("has-header-video"),t("#wp-custom-header-video").attr("autoplay",!0),t("#wp-custom-header-video").attr("playsinline",!0)})}(jQuery);