var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); jQuery(function($) { //quantity Minus var liveQtyVal; jQuery( document ).on('click', '.qtyminus', function(e) { // Stop acting like a button e.preventDefault(); // Get the field name fieldName = 'quantity'; // Get its current value var currentVal = parseInt( jQuery('input[name='+fieldName+']').val() ); // If it isn't undefined or its greater than 0 if ( !isNaN(currentVal) && currentVal > 1 ) { // Decrement one only if value is > 1 jQuery('input[name='+fieldName+']').val(currentVal - 1); jQuery('.qtyplus').removeAttr('style'); liveQtyVal = currentVal - 1; } else { // Otherwise put a 0 there jQuery('input[name='+fieldName+']').val(1); jQuery('.qtyminus').css('color','#aaa').css('cursor','not-allowed'); liveQtyVal = 1; } jQuery(this).parents('div.modal-footer').find('a.submit-fooditem-button').attr('data-item-qty', liveQtyVal); jQuery(this).parents('div.modal-footer').find('a.submit-fooditem-button').attr('data-item-qty', liveQtyVal); }); jQuery(document).on('click', '.qtyplus', function(e) { // Stop acting like a button e.preventDefault(); // Get the field name fieldName = 'quantity'; // Get its current value var currentVal = parseInt(jQuery('input[name='+fieldName+']').val()); // If is not undefined if (!isNaN(currentVal)) { jQuery('input[name='+fieldName+']').val(currentVal + 1); jQuery('.qtyminus').removeAttr('style'); liveQtyVal = currentVal + 1; } else { // Otherwise put a 0 there jQuery('input[name='+fieldName+']').val(1); liveQtyVal = 1; } jQuery(this).parents('div.modal-footer').find('a.submit-fooditem-button').attr('data-item-qty', liveQtyVal); jQuery(this).parents('div.modal-footer').find('a.submit-fooditem-button').attr('data-item-qty', liveQtyVal); }); }); } /* FILE ARCHIVED ON 03:19:19 Oct 15, 2021 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 20:55:41 Apr 15, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 0.27 load_resource: 113.808 PetaboxLoader3.resolve: 80.816 PetaboxLoader3.datanode: 28.947 (2) loaddict: 14.884 */