MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / purchaseClicked

Function purchaseClicked

assets/js/store.js:29–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29function purchaseClicked() {
30 alert('Thank you for your purchase')
31 var cartItems = document.getElementsByClassName('cart-items')[0]
32 while (cartItems.hasChildNodes()) {
33 cartItems.removeChild(cartItems.firstChild)
34 }
35 updateCartTotal()
36}
37
38function removeCartItem(event) {
39 var buttonClicked = event.target

Callers

nothing calls this directly

Calls 1

updateCartTotalFunction · 0.70

Tested by

no test coverage detected