30 lines
505 B
HTML
30 lines
505 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>A Dumb Chat Application</title>
|
|
</head>
|
|
<body>
|
|
|
|
<script src="https://unpkg.com/mithril/mithril.js"></script>
|
|
<script src="/js/chat-service.js"></script>
|
|
<script>
|
|
// start the chat web socket
|
|
|
|
// render the application
|
|
|
|
const root = document.body;
|
|
m.render(root, [
|
|
m("h1", "A Stupid Chat"),
|
|
m("div", [
|
|
m("div", { id: "messages" }, [
|
|
|
|
]).
|
|
m("form", { id: "message-form" }, [
|
|
|
|
])
|
|
])
|
|
]);
|
|
</script>
|
|
</body>
|
|
</html>
|