document.addEventListener("visibilitychange", function() {
if (document.visibilityState === 'visible') {
console.log("is visible");
} else {
console.log("isn't visible");
}
});
$('.minus').click(function() {
let count = $('.numb');
if(count.val() > 3)
count.val(parseInt(count.val())-1);
});