SpaccDotWeb/SpaccDotWeb.html

28 lines
676 B
HTML
Raw Normal View History

2023-09-26 22:31:11 +02:00
<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">
2023-09-27 00:49:37 +02:00
const Spacc = SpaccDotWeb;
Spacc.AppInit();
2023-09-26 22:31:11 +02:00
2023-09-27 00:49:37 +02:00
Spacc.Select('#App').innerHTML = `
<p>1234</p>
<button >Log</button>
`;
2023-09-26 22:31:11 +02:00
2023-09-27 00:49:37 +02:00
Spacc.Select('#App button').onclick = () => {
Spacc.Select('#App').innerHTML += `<xmp style="text-wrap: unset;">
${JSON.stringify(document.documentElement.outerHTML)}
</xmp>`;
};
2023-09-26 22:31:11 +02:00
</script>
<script module="Testing">
2023-09-27 00:49:37 +02:00
Spacc.Select('#App').Insert(Spacc.Create('p', { innerHTML: `<b>Testing is complete.</b>` }));
2023-09-26 22:31:11 +02:00
</script>