Update bag footer

This commit is contained in:
Moe Poi ~ 2021-11-10 12:02:52 +07:00
parent 37c67e5b75
commit 6adc0eb30a

View file

@ -138,32 +138,6 @@
</div>
<script crossorigin="anonymous" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script crossorigin="anonymous" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
function add(id) {
var inputCount = document.getElementById(id);
console.log("I got clicked");
if (inputCount.value < 9) {
inputCount.value++;
} else {
alert("MAX product reach");
}
}
function minus(id) {
var inputCount = document.getElementById(id);
console.log("Minus got clicked");
if (inputCount.value > 1) {
inputCount.value--;
} else {
alert("Remove this item");
}
}
feather.replace();
</script>
<%- include('../layouts/footer.ejs', {state: 'bag'}); %>
</body>
</html>