on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
24 lines (23 loc) • 1.31 kB
JavaScript
/*! on-codemerge v1.3.1 @author Pavel Kuzmin @license MIT @homepage https://s00d.github.io/on-codemerge/ @repository git+https://github.com/s00d/on-codemerge.git Copyright (c) 2026 Pavel Kuzmin - Built on 2026-07-02T13:39:17.947Z */
var s = Object.defineProperty;
var a = (i, t, e) => t in i ? s(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
var n = (i, t, e) => a(i, typeof t != "symbol" ? t + "" : t, e);
class r {
constructor(t, e) {
n(this, "table");
n(this, "breakpoint", 768);
this.table = e;
}
execute() {
const t = this.table.classList;
t.contains("breakpoint-320") ? this.breakpoint = 320 : t.contains("breakpoint-480") ? this.breakpoint = 480 : t.contains("breakpoint-640") ? this.breakpoint = 640 : t.contains("breakpoint-768") ? this.breakpoint = 768 : t.contains("breakpoint-1024") ? this.breakpoint = 1024 : t.contains("breakpoint-1280") ? this.breakpoint = 1280 : t.contains("breakpoint-1440") ? this.breakpoint = 1440 : t.contains("breakpoint-1536") ? this.breakpoint = 1536 : t.contains("breakpoint-1920") ? this.breakpoint = 1920 : t.contains("breakpoint-2560") ? this.breakpoint = 2560 : this.breakpoint = 768;
}
getBreakpoint() {
return this.breakpoint;
}
undo() {
}
}
export {
r as GetTableBreakpointCommand
};