Skip to content

Instantly share code, notes, and snippets.

View ErvinSabic's full-sized avatar

GearSite ErvinSabic

View GitHub Profile
@rowej83
rowej83 / visual-composer-breakpoints.css
Last active March 25, 2023 20:24
Visual Composer default breakpoints
@media (max-width:767px){
/* Phones */
}
@media (min-width:768px) and (max-width:991px){
/* small tablets */
}
@media (min-width:992px) and (max-width:1199px){
/* large tablets and desktop */
}
@media (min-width:1200px){
'use strict';
class Abstract {
// A static abstract method.
static foo() {
if (this === Abstract) {
// Error Type 2. Abstract methods can not be called directly.
throw new TypeError("Can not call static abstract method foo.");
} else if (this.foo === Abstract.foo) {
// Error Type 3. The child has not implemented this method.
throw new TypeError("Please implement static abstract method foo.");