PageSourceSearch

https://womenslibrary.org.uk/gwl_wp/wp-content/cache/autoptimize/j…19c6ee13f141b0f831d45399d2b1c4.js?ver=3.5.4

js womenslibrary.org.uk collected 2026-10-02 06:33:16 UTC 2,188 bytes, 17 lines download raw bytes

1(function($){$(document).on("mouseenter",".yaydp-tooltip-icon",function(){const tooltip=$(this).find(".yaydp-tooltip-content");if(tooltip.length<1){return;}
2const{left}=tooltip.offset();const width=tooltip.width();console.log(width,left);if(width+left>window.outerWidth){tooltip.css("left",window.outerWidth-width-left-30);}
3if(left<0){tooltip.css("left",30);}});$(document).ready(function(){if(!window.elementorFrontend||!window.elementorFrontend.getElements){return;}
4const menuCarts=window.elementorFrontend?.getElements()?.$body?.find(".elementor-widget-woocommerce-menu-cart");menuCarts.each((_,el)=>{const settings=$(el).data("settings");if(!settings){return;}
5if(settings.automatically_open_cart==null){return;}
6const currentValue=settings.automatically_open_cart;settings.automatically_open_cart="no";$(el).data("settings",settings);setTimeout(()=>{settings.automatically_open_cart=currentValue;$(el).data("settings",settings);},1000);});});if(!window.wp?.hooks?.addFilter){return;}
7window.wp.hooks.addFilter("yaye_total_price_hook","yaydp",function(html,total){const extraTotalPrice=$(".yayextra-total-price");if(extraTotalPrice.closest(".product").length<1){return html;}
8const yaydpDiscountedData=extraTotalPrice.closest(".single-product-wrapper").find(".yaydp-product-discounted-data");if(yaydpDiscountedData.length<1){return html;}
9const minRate=yaydpDiscountedData.data("min-rate");const maxRate=yaydpDiscountedData.data("min-rate");if(minRate>=1){return html;}
10const discounted=total*minRate;function formatPrice(price){window.accounting.settings.currency.symbol=window.yaydp_frontend_data.currency_settings.symbol;window.accounting.settings.currency.decimal=window.yaydp_frontend_data.currency_settings.decimalSeparator;window.accounting.settings.currency.thousand=window.yaydp_frontend_data.currency_settings.thousandSeparator;window.accounting.settings.currency.precision=window.yaydp_frontend_data.currency_settings.precision;return`
11        <span class="woocommerce-Price-amount amount">${window.accounting.formatMoney(
12          price
13        )}</span>
14        `;}
15return`
16      <del>${formatPrice(total)}</del>
17      ${formatPrice(discounted)}`;});})(window.jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.