PageSourceSearch

https://www.mauricemeade.com.au/?code-snippets-js-snippets=footer&ver=63

js mauricemeade.com.au collected 2026-10-08 13:29:39 UTC 1,935 bytes, 4 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){let targetPopup=null;let originalDisplay=null;const observer=new MutationObserver(()=>{const popup=document.querySelector(".sumome-react-wysiwyg-popup-container");if(popup&&!popup.classList.contains("cust-sumo-popup")){popup.classList.add("cust-sumo-popup");targetPopup=popup;originalDisplay=window.getComputedStyle(popup).display||"block"}});observer.observe(document.body,{childList:!0,subtree:!0});window.addEventListener("scroll",function(){const popup=document.querySelector(".cust-sumo-popup");if(!popup)return;const scrollTop=window.scrollY||document.documentElement.scrollTop;if(scrollTop>100){popup.style.display="none"}else{popup.style.display=originalDisplay||"block"}},{passive:!0})});jQuery(document).ready(function($){const dobField=$('#form-field-field_b6ebd5e');if(dobField.length){const today=new Date().toISOString().split('T')[0];dobField.attr('max',today)}});jQuery(function($){$('form.checkout').on('submit',function(e){let errors=!1;let pickupSelected=$('input[name="shipping_method[0]"]:checked').length;if(!pickupSelected){errors=!0;if(!$('.pickup-radio-error').length){$('<ul class="woocommerce-error pickup-radio-error"><li>Please select a pickup/shipping method.</li></ul>').prependTo('form.checkout')}}else{$('.pickup-radio-error').remove()}
2let locationValue=$('select[name="_shipping_method_pickup_location_id[0]"]').val();if(!locationValue||locationValue===""){errors=!0;if(!$('.pickup-location-error').length){$('<ul class="woocommerce-error pickup-location-error"><li>Please choose a pickup location.</li></ul>').prependTo('form.checkout')}
3$('select[name="_shipping_method_pickup_location_id[0]"]').next('.select2').css('border','1px solid red')}else{$('.pickup-location-error').remove();$('select[name="_shipping_method_pickup_location_id[0]"]').next('.select2').css('border','')}
4if(errors){e.preventDefault();e.stopPropagation();return!1}})})

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.