added backup source for future ref

This commit is contained in:
2022-01-14 18:23:19 +00:00
parent 33e18d8f2a
commit 10c6ddb61a
12 changed files with 210 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
class Dom {
static var TEMP = js.Browser.document.createDivElement();
inline static public function div() {
return js.Browser.document.createDivElement();
}
inline static public function html(html: String) {
TEMP.innerHTML = html;
return TEMP.firstElementChild;
}
inline static public function body() {
return js.Browser.document.body;
}
}