mirror of
https://gitlab.com/SpaccInc/SpaccDotWeb.git
synced 2025-02-16 11:20:50 +01:00
28 lines
676 B
HTML
28 lines
676 B
HTML
<script src="Spacc.Web.js"></script>
|
|
|
|
<script id="Meta" type="text/json">{
|
|
"Name": "The Testing",
|
|
"Description": "Useful for doing The Testing",
|
|
"Uri": "https://example.com/Testing"
|
|
}</script>
|
|
|
|
<script module="Main">
|
|
const Spacc = SpaccDotWeb;
|
|
Spacc.AppInit();
|
|
|
|
Spacc.Select('#App').innerHTML = `
|
|
<p>1234</p>
|
|
<button >Log</button>
|
|
`;
|
|
|
|
Spacc.Select('#App button').onclick = () => {
|
|
Spacc.Select('#App').innerHTML += `<xmp style="text-wrap: unset;">
|
|
${JSON.stringify(document.documentElement.outerHTML)}
|
|
</xmp>`;
|
|
};
|
|
</script>
|
|
|
|
<script module="Testing">
|
|
Spacc.Select('#App').Insert(Spacc.Create('p', { innerHTML: `<b>Testing is complete.</b>` }));
|
|
</script>
|