PageSourceSearch

https://jrink.com/cdn/shop/t/26/assets/cart-note.js?v=56198602689862001351732063871

js jrink.com collected 2026-09-25 18:39:06 UTC 962 bytes, 2 lines download raw bytes

1class CartNote extends HTMLElement{connectedCallback(){this.abortController=new AbortController,this.noteInput=this.querySelector('[name="note"]'),this.noteBtn=this.querySelector(".add-note"),this.noteInput.addEventListener("change",function(evt){const newNote=evt.target.value;this.updateNote(newNote)}.bind(this),{signal:this.abortController.signal}),this.noteBtn.addEventListener("click",()=>{this.noteBtn.classList.toggle("is-active"),this.querySelector(".cart__note").classList.toggle("hide")},{signal:this.abortController.signal})}disconnectedCallback(){this.abortController.abort()}updateNote(note){return fetch(window.Shopify.routes.root+"cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({note})}).then(response=>{if(!response.ok)throw response;return response.json()})}}customElements.define("cart-note",CartNote);
2//# sourceMappingURL=/cdn/shop/t/26/assets/cart-note.js.map?v=56198602689862001351732063871

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.