forked from cory/tildefriends
25 lines
442 B
JavaScript
25 lines
442 B
JavaScript
|
async function main() {
|
||
|
// Get body.html
|
||
|
const body = utf8Decode(await getFile("body.html"));
|
||
|
|
||
|
// Build the document
|
||
|
const document = `
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<link rel="stylesheet" href="tildefriends.css"/>
|
||
|
<link rel="stylesheet" href="style.css"/>
|
||
|
<script src="script.js" type="module"></script>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
${body}
|
||
|
</body>
|
||
|
</html>`;
|
||
|
|
||
|
// Send it to the browser
|
||
|
app.setDocument(document);
|
||
|
}
|
||
|
|
||
|
main();
|