PageSourceSearch

https://www.slickitup.com/cdn/shop/t/34/assets/z__jsCart.js?v=14854013510652014961599635644

js slickitup.com collected 2026-09-26 13:55:29 UTC 3,293 bytes, 2 lines download raw bytes

1"use strict";function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}Shopify.theme.jsCart={init:function($section){this.$section=$section,$(document).on("click","[data-cart-page-delete]",function(e){e.preventDefault();var lineID2=$(this).data("line-item-key");return Shopify.theme.jsCart.removeFromCart(lineID2),!1}),$("#cart_form").keydown(function(e){if(e.keyCode==13)return e.preventDefault(),!1})},removeFromCart:function removeFromCart(lineID){var $cartItem=Shopify.theme.jsCart.$section.find('[data-line-item="'.concat(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(),Shopify.theme.jsCart.updateView(cart,lineID),typeof Shopify.theme.jsAjaxCart!="undefined"&&Shopify.theme.jsAjaxCart.updateView()},error:function error(XMLHttpRequest,textStatus){var response=eval("("+XMLHttpRequest.responseText+")");response=response.description}})},updateView:function updateView(cart,lineID2){if(cart.item_count>0){var _$$ajax;$.ajax((_$$ajax={dataType:"json",async:!1,cache:!1},_defineProperty(_$$ajax,"dataType","html"),_defineProperty(_$$ajax,"url","/cart"),_defineProperty(_$$ajax,"success",function(html){if(lineID2!==null){var updatedItems=$(html).find(".cart__item-list .cart__card"),currentItems=$(".cart__item-list .cart__card");if(updatedItems.length!=currentItems.length){var 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)});var itemTotal=$(html).find('[data-line-item="'.concat(lineID2,'"]')).find(".cart__total"),quantityInput=$(html).find('[data-line-item="'.concat(lineID2,'"]')).find(".quantity-input"),itemPrice=$(html).find('[data-line-item="'.concat(lineID2,'"]')).find(".cart__price");$('[data-line-item="'.concat(lineID2,'"]')).find(".cart__total").replaceWith(itemTotal),$('[data-line-item="'.concat(lineID2,'"]')).find(".quantity-input").replaceWith(quantityInput),$('[data-line-item="'.concat(lineID2,'"]')).find(".cart__price").replaceWith(itemPrice)}var 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)}),_$$ajax))}else $(".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 unload($section){$("[data-cart-page-delete]").off(),$("#cart_form").off()}};
2//# sourceMappingURL=/cdn/shop/t/34/assets/z__jsCart.js.map?v=14854013510652014961599635644

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.