1
0
mirror of https://github.com/falk-werner/webfuse synced 2026-03-02 03:40:24 +00:00

add javascript example

This commit is contained in:
Falk Werner
2023-02-05 11:37:19 +01:00
parent 17d6275d96
commit acbcbc1d97
10 changed files with 244 additions and 70 deletions

View File

@@ -3,15 +3,35 @@
<head>
<title>Webfuse Example</title>
<script type="module" src="js/startup.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Webfuse</h1>
<h1>Webfuse Example</h1>
<p>
This example provides a single file "README.md", which
contents can be altered below.
</p>
<h2>Connection</h2>
<p>
<label for="url">Url:</label>
<input type="text" id="url" value="ws://localhost:8081"/>
</p>
<p>
<label for="token">Token:</label>
<input type="text" id="token" value="" />
</p>
<p>
<input type="button" id="connect" value="Connect"/>
<span id="state">disconnected</span>
</p>
<h2>README.md</h2>
<p>
<textarea id="contents"># Webfuse
This is a sample text.
</textarea>
</p>
</body>
</html>