wip
This commit is contained in:
parent
81018eeafe
commit
f2e9a5f66e
11 changed files with 126 additions and 16 deletions
13
static/js/tairu/framework.js
Normal file
13
static/js/tairu/framework.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
// A frameworking class assigning some CSS classes to the canvas to make it integrate nicer with CSS.
|
||||
class Frame extends HTMLCanvasElement {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.style.cssText = `
|
||||
|
||||
`;
|
||||
}
|
||||
|
||||
// Override this!
|
||||
draw() { }
|
||||
}
|
0
static/js/tairu/tiling-demo.js
Normal file
0
static/js/tairu/tiling-demo.js
Normal file
|
@ -109,6 +109,11 @@ class LinkedBranch extends Branch {
|
|||
let linkedDocument = parser.parseFromString(text, "text/html");
|
||||
let main = linkedDocument.getElementsByTagName("main")[0];
|
||||
let ul = main.getElementsByTagName("ul")[0];
|
||||
let styles = main.getElementsByTagName("link");
|
||||
let scripts = main.getElementsByTagName("script");
|
||||
|
||||
this.append(...styles);
|
||||
this.append(...scripts);
|
||||
|
||||
this.loadingText.remove();
|
||||
this.innerUL.innerHTML = ul.innerHTML;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue