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);
});
function Person(firstName, lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
var john = new Person("John", "Smith");
var jane = new Person("Jane", "Doe");
var emily = new Person("Emily", "Jones");
console.table([john, jane, emily]);
* {
zoom: 0.5;
-ms-zoom: 0.5;
-webkit-zoom: 0.5;
-moz-transform: scale(0.5,0.5);
-moz-transform-origin: left center;
}