HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/pbyh.co.uk/public_html/wp-content/themes/go/dist/js/admin/customize-preview.min.js
(()=>{"use strict";function o(o){let e=0,t=0,s=0;4===o.length?(s=`0x${o[1]}${o[1]}`,t=`0x${o[2]}${o[2]}`,e=`0x${o[3]}${o[3]}`):7===o.length&&(s=`0x${o[1]}${o[2]}`,t=`0x${o[3]}${o[4]}`,e=`0x${o[5]}${o[6]}`),s/=255,t/=255,e/=255;const r=Math.max(s,t,e),i=Math.min(s,t,e),c=r-i;let n=0,a=0,l=0;return n=0===c?0:r===s?(t-e)/c%6:r===t?(e-s)/c+2:(s-t)/c+4,n=Math.round(60*n),0>n&&(n+=360),l=(r+i)/2,a=0===c?0:c/(1-Math.abs(2*l-1)),a=+(100*a).toFixed(),l=+(100*l).toFixed(),[n,a,l]}const e=jQuery,t=jQuery,s=jQuery;function r(){const o=s(".customize-section-title-menu_locations-description").text(),e=["footer-1","footer-2"].includes(wp.customize("footer_variation").get())?"2":"4";s(".customize-section-title-menu_locations-description").text(o.replace(/[0-9]/g,e))}s(document).ready(r);const i=jQuery,c=jQuery;wp.customize("design_style",(o=>{o.bind((o=>{t("#customize-preview").addClass("is-loading"),void 0!==GoPreviewData.design_styles&&"undefined"!==GoPreviewData.design_styles[o]&&setTimeout((function(){const e=GoPreviewData.design_styles[o];t('link[id*="design-style"]').attr("href",e.url),setTimeout((function(){t("#customize-preview").removeClass("is-loading")}),500)}),500)}))})),wp.customize("viewport_basis",(o=>{o.bind((o=>{return e=o,void document.documentElement.style.setProperty("--go--viewport-basis",e||"1000");var e}))})),wp.customize("header_variation",(o=>{o.bind((o=>{i("body").removeClass("has-header-1 has-header-2 has-header-3 has-header-4 has-header-5 has-header-6 has-header-7").addClass("has-"+o)}))})),wp.customize("header_background_color",(e=>{e.bind((e=>{const t=o(e),s=e?`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`:void 0;document.querySelector(":root").style.setProperty("--go-header--color--background",s),e?i(".header").addClass("has-background"):i(".header").removeClass("has-background")}))})),wp.customize("header_text_color",(e=>{e.bind((e=>{const t=o(e),s=e?`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`:void 0;document.querySelector(":root").style.setProperty("--go-navigation--color--text",s),document.querySelector(":root").style.setProperty("--go-site-description--color--text",s),document.querySelector(":root").style.setProperty("--go-search-button--color--text",s),document.querySelector(":root").style.setProperty("--go-site-title--color--text",s)}))})),(()=>{wp.customize("footer_variation",(o=>{o.bind((o=>{s("body").removeClass("has-footer-1 has-footer-2 has-footer-3 has-footer-4").addClass("has-"+o),r()}))})),wp.customize("copyright",(function(o){o.bind((function(o){s(".copyright").html(o)}))})),wp.customize("footer_background_color",(e=>{e.bind((e=>{const t=o(e),r=e?`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`:void 0;document.querySelector(":root").style.setProperty("--go-footer--color--background",r),e?(s("body").addClass("has-footer-background"),s(".site-footer").addClass("has-background")):(s("body").removeClass("has-footer-background"),s(".site-footer").removeClass("has-background"))}))})),wp.customize("social_icon_color",(e=>{e.bind((e=>{const t=o(e),s=e?`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`:void 0;document.querySelector(":root").style.setProperty("--go-social--color--text",s)}))})),wp.customize("footer_text_color",(e=>{e.bind((e=>{const t=o(e),s=e?`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`:void 0;document.querySelector(":root").style.setProperty("--go-footer--color--text",s),document.querySelector(":root").style.setProperty("--go-footer-navigation--color--text",s)}))})),wp.customize("footer_heading_color",(e=>{e.bind((e=>{const t=o(e),s=e?`hsl(${t[0]}, ${t[1]}%, ${t[2]}%)`:null;document.querySelector(":root").style.setProperty("--go-footer-heading--color--text",s)}))}));for(let o=0;o<GoPreviewData.socialIcons.length;o++)wp.customize(`social_icon_${GoPreviewData.socialIcons[o]}`,(e=>{e.bind((e=>{e?s(`.social-icon-${GoPreviewData.socialIcons[o]}`).removeClass("display-none"):s(`.social-icon-${GoPreviewData.socialIcons[o]}`).addClass("display-none")}))}))})(),(()=>{let t=GoPreviewData.selectedDesignStyle;const s=(e,t)=>{const s=o(e);document.querySelector(":root").style.setProperty(`${t}`,`hsl(${s[0]}, ${s[1]}%, ${s[2]}%)`)},r=o=>{const e=n(t);if(o=o.replace(`${t}-`,""),void 0!==e.color_schemes[o]&&void 0!==wp.customize.settings.controls){const t=e.color_schemes[o];i(),setTimeout((function(){c(e)}),200),Object.entries(wp.customize.settings.controls).filter((o=>{let[e,t]=o;return"color"===t.type})).forEach((o=>{let[e,s]=o;const r=wp.customize(s.settings.default),i=t[s.settings.default.replace("_color","")]||"";r.set(i),wp.customize.control(e).container.find(".color-picker-hex").data("data-default-color",i).wpColorPicker("defaultColor",i).trigger("change")}))}},i=()=>{e("label[for^=color_scheme_control]").hide(),e(`label[for^=color_scheme_control-${t}-]`).show()},c=o=>{const e=void 0!==o.viewport_basis?o.viewport_basis:"950";wp.customize.control("viewport_basis").setting(e)},n=o=>void 0!==GoPreviewData.design_styles&&"undefined"!==GoPreviewData.design_styles[o]&&GoPreviewData.design_styles[o];wp.customize.bind("ready",(()=>i())),wp.customize("design_style",(o=>{t=o.get(),o.bind((o=>{t=o,r("one"),e(`#color_scheme_control-${t}-one`).prop("checked",!0)}))})),wp.customize("color_scheme",(o=>{o.bind((o=>r(o)))})),wp.customize("background_color",(o=>{o.bind((o=>s(o,"--go--color--background")))})),wp.customize("primary_color",(o=>{o.bind((o=>s(o,"--go--color--primary")))})),wp.customize("secondary_color",(o=>{o.bind((o=>s(o,"--go--color--secondary")))})),wp.customize("tertiary_color",(o=>{o.bind((o=>s(o,"--go--color--tertiary")))}))})(),wp.customize("logo_width",(o=>{o.bind((o=>{return e=o,void document.documentElement.style.setProperty("--go-logo--max-width",e?`${e}px`:"none");var e}))})),wp.customize("logo_width_mobile",(o=>{o.bind((o=>{return e=o,void document.documentElement.style.setProperty("--go-logo-mobile--max-width",e?`${e}px`:"none");var e}))})),wp.customize("page_titles",(o=>{const e="#content > .entry-header, body.page article .entry-header, body.woocommerce .entry-header";o.bind((o=>{o?(c("body").addClass("has-page-titles"),c(e).removeClass("display-none")):(c("body").removeClass("has-page-titles"),c(e).addClass("display-none"))}))}))})();