PageSourceSearch

https://www.beijingchef.co.uk/meals4u/js/meals4u.min.js?v=796

js beijingchef.co.uk collected 2026-10-02 02:09:33 UTC 2,796 bytes, 1 lines download raw bytes

1function add(e){let t=e.find("[name="+config.item.qty+"]"),a=e.find("[name="+config.item.add+"]"),n=$("#meals4u");let o=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()}("meals4u_cart");o&&o.length>3e3?alert("You have reached the order limit, please login or sign up to add more items to your cart"):$.ajax({data:e.serialize()+"&"+config.item.add+"="+a.val(),success:function(e){t.val()>0&&"none"===tip.css("display")&&tip.fadeIn("100").delay("400").fadeOut("100"),n.html(e),$("#meals4u-buttons").remove()}})}var config="",tip=$("#meals4u-tooltip");function init_app(){let e="/meals4u",t=$("#meals4u"),a=$("[name=meals4uToken]").val();tip=$("#meals4u-tooltip"),!0===(config=function(){let t=null;return $.ajax({url:e+"/config-loader.php",data:{ajax:"true"},type:"GET",dataType:"json",async:!1,success:function(e){t=e},error:function(){alert("Ajax error: Edit the path in meals4u.js to fix.")}}),t}()).tooltip&&(tip.text(config.text.itemAdded),$(".meals4u [type=submit]").mouseenter(function(e){let t=e.pageY+25,a=e.pageX+-10;$("body").append(tip),tip.css({top:a+"px",left:t+"px"})}).mousemove(function(e){let t=e.pageY+25,a=e.pageX+-10;tip.css({top:t+"px",left:a+"px"})}).mouseleave(function(){tip.hide()})),$("#meals4u-buttons").remove(),$.ajaxSetup({type:"POST",url:e+"/relay.php",success:function(e){t.html(e),$("#meals4u-buttons").remove(),order_data_digital_wallet&&(order_data_digital_wallet={})},error:function(e,t){let a=e.status,n="Ajax error: ";0===a&&(n+="Check your network connection."),404!==a&&500!==a||(n+=a),"parsererror"!==t&&"timeout"!==t||(n+=t),alert(n)}});let n=$("#meals4u-is-checkout").val();$(".meals4u").submit(function(e){add($(this)),e.preventDefault()}),t.keydown(function(e){13===e.which&&e.preventDefault()}),t.delegate('[name="meals4uItemQty[]"]',"keyup",function(){!function(e){let t=e.parent().find('[name="meals4uItemId[]"]').val(),o=e.val();o&&window.setTimeout(function(){$.ajax({data:{meals4uUpdate:1,itemId:t,itemQty:o,meals4uIsCheckout:n,meals4uToken:a,meals4uMemo:$("#memo").val()}})},1e3),e.keydown(function(e){9!==e.which&&window.clearTimeout(updateTimer)})}($(this))}),t.delegate(".meals4u-remove","click",function(e){!function(e){let t=e.attr("href");t=t.split("=");let a=t[1];$.ajax({type:"GET",data:{meals4uRemove:a,meals4uMemo:$("#memo").val(),meals4uIsCheckout:n}})}($(this)),e.preventDefault()}),t.delegate(".meals4u-open_additional_menu","click",function(e){!function(e){let t=e.attr("href"),a=e.parent().children().eq(1).attr("value");t=t.split("=");let n=t[1];$.ajax({type:"GET",url:"/meals4u/messenger.php",data:{action:"options_additional",data:n,id:a},success:function(e){PopBox(e,!0)},error:function(e){console.log(e)}})}($(this)),e.preventDefault()})}$(function(){init_app()});

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.