mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-25 07:47:02 +01:00
Update bag footer
This commit is contained in:
parent
37c67e5b75
commit
6adc0eb30a
1 changed files with 1 additions and 27 deletions
|
@ -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>
|
Loading…
Reference in a new issue