tangled
alpha
login
or
join now
stau.space
/
aecc-db
0
fork
atom
AECC database project.
0
fork
atom
overview
issues
pulls
pipelines
feat(components): Added include component.
Diego A. Estrada Rivera
10 months ago
1da0afbf
0456e450
+8
1 changed file
expand all
collapse all
unified
split
lib
components.js
+8
lib/components.js
···
1
1
+
class includeThingamabob extends HTMLElement {
2
2
+
connectedCallback() {
3
3
+
const src = this.getAttribute("src");
4
4
+
fetch(src).then(response => response.text()).then(data => this.outerHTML = data);
5
5
+
}
6
6
+
}
7
7
+
8
8
+
customElements.define("include-thingamabob", includeThingamabob);