1/** 2 * Deps: jquery, check-availability-widget 3 * Load: global 4 */ 5 6jQuery(function($) { 7 let checkoutUrl = '#check-availability'; 8 9 $(`a[href^='${ checkoutUrl }'`).on('click', function(e) { 10 if ( window.checkAvailability && ( 11 !window.checkAvailability.isOpen() 12 && 13 !checkAvailability.getCurrentInfo().location 14 )){ 15 e.preventDefault(); 16 let $link = $(this); 17 18 window.checkAvailability.openPopup(); 19 } 20 }); 21 });
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.