diff --git a/js/script.js b/js/script.js
index 9a0eee1..00ace93 100644
--- a/js/script.js
+++ b/js/script.js
@@ -217,6 +217,7 @@ function addToCart(id){
button.classList.add("amber");
icon.classList.remove("fa-cart-plus");
icon.classList.add("fa-refresh");
+ icon.classList.add("fa-spin");
if(buttonText !== null){
buttonText.innerText = "Working";
@@ -229,6 +230,7 @@ function addToCart(id){
button.classList.remove("amber");
button.classList.add("green","z-depth-0");
icon.classList.remove("fa-refresh");
+ icon.classList.remove("fa-spin");
icon.classList.add("fa-check");
if(buttonText !== null){
@@ -296,7 +298,7 @@ function updateCartAmount(){
function quantityIncrease(id){
- document.getElementById("quantity"+id).innerHTML = '';
+ document.getElementById("quantity"+id).innerHTML = '';
var request = new XMLHttpRequest();
request.onload = function(){
@@ -311,7 +313,7 @@ function quantityIncrease(id){
function quantityDecrease(id){
- document.getElementById("quantity"+id).innerHTML = '';
+ document.getElementById("quantity"+id).innerHTML = '';
var request = new XMLHttpRequest();
request.onload = function(){
diff --git a/js/script.min.js b/js/script.min.js
index 9f007f2..df6b825 100644
--- a/js/script.min.js
+++ b/js/script.min.js
@@ -1 +1 @@
-function openSidenav(){var e=document.getElementById("slide-out");M.Sidenav.getInstance(e).open()}function modifyInCart(e){var t=document.getElementById("item"+e),n=document.getElementById("icon"+e),s=document.getElementById("button-text");t.classList.remove("red"),t.classList.add("green","z-depth-0"),n.classList.remove("fa-cart-plus"),n.classList.add("fa-check"),null!==s&&(s.innerText="Added"),t.removeAttribute("onclick")}function validateEmail(e){return!!/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/.test(e)}function notifyMe(e){var t=document.getElementById("notify-email");if(!validateEmail(t.value))return M.Toast.dismissAll(),void M.toast({html:"Invalid Email"});M.Toast.dismissAll(),M.toast({html:"Email Submitted Successfully!"});var n=new XMLHttpRequest;n.open("GET","handlers/notify-me.php?id="+e+"&email="+t.value,!0),n.send(),t.value=" "}function addToCart(e){var t=document.getElementById("item"+e),n=document.getElementById("icon"+e),s=document.getElementById("button-text");M.Toast.dismissAll(),M.toast({html:"Please Wait..."}),t.classList.remove("red"),t.classList.add("amber"),n.classList.remove("fa-cart-plus"),n.classList.add("fa-refresh"),null!==s&&(s.innerText="Working");var a=new XMLHttpRequest;a.onload=function(){if(200==this.status){if(t.classList.remove("amber"),t.classList.add("green","z-depth-0"),n.classList.remove("fa-refresh"),n.classList.add("fa-check"),null!==s&&(s.innerText="Added"),M.Toast.dismissAll(),M.toast({html:"Item Added Successfully"}),"success"==this.responseText){var e=document.getElementById("cart-quantity"),a=parseInt(e.innerText);a++,e.innerText=a}t.removeAttribute("onclick")}},a.open("GET","handlers/cart.php?action=add&id="+e,!0),a.send()}function removeFromCart(e){var t=document.getElementById("item"+e);document.getElementById("button"+e).classList.add("disabled"),M.Toast.dismissAll(),M.toast({html:"Please Wait..."});var n=new XMLHttpRequest;n.onload=function(){200==this.status&&"success"==this.responseText&&(t.classList.add("hide"),updateCartAmount(),M.Toast.dismissAll(),M.toast({html:"Item Removed"}))},n.open("GET","handlers/cart.php?action=remove&id="+e,!0),n.send()}function updateCartAmount(){document.getElementById("subtotal-preloader").classList.remove("hide"),document.getElementById("subtotal").innerText="";var e=new XMLHttpRequest;e.onload=function(){200==this.status&&(document.getElementById("subtotal-preloader").classList.add("hide"),document.getElementById("subtotal").innerText=this.responseText)},e.open("GET","handlers/cart.php?action=getAmount",!0),e.send()}function quantityIncrease(e){document.getElementById("quantity"+e).innerHTML='';var t=new XMLHttpRequest;t.onload=function(){200==this.status&&(updateCartAmount(),document.getElementById("quantity"+e).innerText=this.responseText)},t.open("GET","handlers/cart.php?action=qincrease&id="+e,!0),t.send()}function quantityDecrease(e){document.getElementById("quantity"+e).innerHTML='';var t=new XMLHttpRequest;t.onload=function(){200==this.status&&(updateCartAmount(),document.getElementById("quantity"+e).innerText=this.responseText)},t.open("GET","handlers/cart.php?action=qdecrease&id="+e,!0),t.send()}function validateCart(){var e=document.getElementById("subtotal").innerText;if(0==(e=parseInt(e.substring(4))))window.location.href="cart.php";else if(e<50){var t=document.getElementById("modal-invalid-subtotal");M.Modal.getInstance(t).open()}else window.location.href="checkout.php"}function placeOrder(){document.getElementById("order-form-button").classList.add("disabled"),M.toast({html:"Please Wait",displayLength:1e4})}function sendNotifications(e){var t=new XMLHttpRequest;t.open("GET","handlers/mailEngine.php?action=orderPlaced&id="+e,!0),t.send()}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".tabs"),t=(M.Tabs.init(e,{}),document.querySelectorAll(".sidenav")),n=(M.Sidenav.init(t,{inDuration:200,outDuration:200}),document.querySelectorAll(".collapsible")),s=(M.Collapsible.init(n,{}),document.querySelectorAll(".modal")),a=(M.Modal.init(s,{}),document.querySelectorAll(".slider")),i=(M.Slider.init(a,{height:400,duration:500,interval:1e4,indicators:!1}),document.querySelectorAll(".scrollspy"));M.ScrollSpy.init(i,{scrollOffset:75});document.getElementById("contact-form").addEventListener("submit",function(e){e.preventDefault();var t=[];t[0]=document.getElementById("ContactName"),t[1]=document.getElementById("ContactEmail"),t[2]=document.getElementById("ContactPhone"),t[3]=document.getElementById("ContactMessage");for(var n=0;n';var t=new XMLHttpRequest;t.onload=function(){200==this.status&&(updateCartAmount(),document.getElementById("quantity"+e).innerText=this.responseText)},t.open("GET","handlers/cart.php?action=qincrease&id="+e,!0),t.send()}function quantityDecrease(e){document.getElementById("quantity"+e).innerHTML='';var t=new XMLHttpRequest;t.onload=function(){200==this.status&&(updateCartAmount(),document.getElementById("quantity"+e).innerText=this.responseText)},t.open("GET","handlers/cart.php?action=qdecrease&id="+e,!0),t.send()}function validateCart(){var e=document.getElementById("subtotal").innerText;if(0==(e=parseInt(e.substring(4))))window.location.href="cart.php";else if(e<50){var t=document.getElementById("modal-invalid-subtotal");M.Modal.getInstance(t).open()}else window.location.href="checkout.php"}function placeOrder(){document.getElementById("order-form-button").classList.add("disabled"),M.toast({html:"Please Wait",displayLength:1e4})}function sendNotifications(e){var t=new XMLHttpRequest;t.open("GET","handlers/mailEngine.php?action=orderPlaced&id="+e,!0),t.send()}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".tabs"),t=(M.Tabs.init(e,{}),document.querySelectorAll(".sidenav")),n=(M.Sidenav.init(t,{inDuration:200,outDuration:200}),document.querySelectorAll(".collapsible")),s=(M.Collapsible.init(n,{}),document.querySelectorAll(".modal")),a=(M.Modal.init(s,{}),document.querySelectorAll(".slider")),i=(M.Slider.init(a,{height:400,duration:500,interval:1e4,indicators:!1}),document.querySelectorAll(".scrollspy"));M.ScrollSpy.init(i,{scrollOffset:75});document.getElementById("contact-form").addEventListener("submit",function(e){e.preventDefault();var t=[];t[0]=document.getElementById("ContactName"),t[1]=document.getElementById("ContactEmail"),t[2]=document.getElementById("ContactPhone"),t[3]=document.getElementById("ContactMessage");for(var n=0;n