PageSourceSearch

https://www.robertgordonaustralia.com/cdn/shop/t/63/assets/z__jsCart.js?v=20014711136117572601774223852

js robertgordonaustralia.com collected 2026-10-03 21:23:26 UTC 2,948 bytes, 2 lines download raw bytes

1(()=>{var __webpack_exports__={};window.PXUTheme.jsCart={init:function($section){this.$section=$section,$(document).on("click","[data-cart-page-delete]",function(e){e.preventDefault();const lineID2=$(this).data("line-item-key");return window.PXUTheme.jsCart.removeFromCart(lineID2),!1}),$("#cart_form").keydown(function(e){if(e.keyCode==13)return e.preventDefault(),!1})},removeFromCart:function(lineID){const $cartItem=window.PXUTheme.jsCart.$section.find(`[data-line-item="${lineID}"]`);$cartItem.css("opacity","0.5"),$.ajax({type:"POST",url:"/cart/change.js",data:"quantity=0&line="+lineID,dataType:"json",success:function(cart){$cartItem.addClass("animated zoomOut"),$cartItem.remove(),window.PXUTheme.jsCart.updateView(cart,lineID),typeof window.PXUTheme.jsAjaxCart<"u"&&window.PXUTheme.jsAjaxCart.updateView()},error:function(XMLHttpRequest,textStatus){var response=eval("("+XMLHttpRequest.responseText+")");response=response.description}})},updateView:function(cart,lineID2){cart.item_count>0?$.ajax({dataType:"json",async:!1,cache:!1,dataType:"html",url:"/cart",success:function(html){if(lineID2!==null){const updatedItems=$(html).find(".cart__item-list .cart__card"),currentItems=$(".cart__item-list .cart__card");if(updatedItems.length!=currentItems.length){const updatedCartList=$(html).find(".cart__item-list");$(".cart__item-list").replaceWith(updatedCartList)}$(currentItems).each(function(index,element){$(element).attr("data-line-item",index+1),$(element).find("[data-line-item-key]").attr("data-line-item-key",index+1)});const itemTotal=$(html).find(`[data-line-item="${lineID2}"]`).find(".cart__total"),quantityInput=$(html).find(`[data-line-item="${lineID2}"]`).find(".quantity-input"),itemPrice=$(html).find(`[data-line-item="${lineID2}"]`).find(".cart__price");$(`[data-line-item="${lineID2}"]`).find(".cart__total").replaceWith(itemTotal),$(`[data-line-item="${lineID2}"]`).find(".quantity-input").replaceWith(quantityInput),$(`[data-line-item="${lineID2}"]`).find(".cart__price").replaceWith(itemPrice)}const subtotal=$(html).find(".cart__subtotal-container"),discounts=$(html).find(".cart__discounts"),savings=$(html).find(".cart__total-savings");$(".cart__subtotal-container").replaceWith(subtotal),discounts.length>0&&$(".cart__discounts").length<1?$(".cart__subtotal-container").before(discounts):$(".cart__discounts").replaceWith(discounts),savings.length>0&&$(".cart__total-savings").length<1?$(".cart__subtotal-container").after(savings):$(".cart__total-savings").replaceWith(savings),$('[data-bind="itemCount"]').text(cart.item_count)}}):($(".cart__empty-cart-message").removeClass("is-hidden"),$(".cart__form").addClass("is-hidden"),$("[data-ajax-cart-trigger]").removeClass("has-cart-count"),$('[data-bind="itemCount"]').text("0"))},unload:function($section){$("[data-cart-page-delete]").off(),$("#cart_form").off()}}})();
2//# sourceMappingURL=/cdn/shop/t/63/assets/z__jsCart.js.map?v=20014711136117572601774223852

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.