var minResize = false;
var maxResize = false;
var f_windowWidth = function (w) {
if (w <= n && !minResize) {
minResize = true;
maxResize = false;
console.log("Window width <= " + n);
}
if (w >= n && !maxResize) {
maxResize = true;
minResize = false;
console.log("Window width > " + n);
}
};
var n = 800, w = window.innerWidth;
f_windowWidth(w);
$(window).on("resize", function () {
var w = window.innerWidth;
f_windowWidth(w);
});
class Rectangle {
constructor(height, width) {
this.height = height;
this.width = width;
}
get area() {
return this.calcArea();
}
calcArea() {
return this.height * this.width;
}
}