Warning: session_start(): open(/var/lib/php/sessions/sess_47s31k2fhff540dj2sng0nqhb0, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// see JSPanel.de
sclass JSPanel {
sclass Options {
S headerTitle = null;
new LS contents; // HTML content
S theme; // e.g. "info"
Map asMap() {
ret litorderedmap(
headerTitle := nullIfEmpty(headerTitle),
content := nullIfEmpty(lines_rtrim(contents)),
theme := nullIfEmpty(theme));
}
}
Options newOptions() { ret new Options; }
// expression to create this panel
JS createPanel(Options options default null) {
ret JS("jsPanel.create($options)", options := or(options, newOptions()).asMap());
}
S headStuff() {
ret hlink("https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel.css")
+ hlink("https://cdn.jsdelivr.net/npm/jspanel4@4.12.0/dist/jspanel.js");
}
ifdef guggida
/*
*/
endifdef
}