x0/test.html

29 lines
714 B
HTML
Raw Normal View History

<html
x0-mods="locale,copy,http"
x0-module-root="./modules/"
x0-init="false"
x1-locale-file="./test.json"
x1-locale-watch
>
2023-12-24 00:32:43 +01:00
<body>
<button onclick="window.x0.update()">Update x0</button>
<input type="text" name="text" id="text">
<h1 x-locale-key="main.greeting"></h1>
2023-12-24 00:32:43 +01:00
<div>
<h2 x-locale-key="copy-section.header"></h2>
2023-12-24 00:32:43 +01:00
<div id="ex">
<span x-locale-key="copy-section.content-span"></span>
2023-12-24 00:32:43 +01:00
</div>
<div x-copy-query="#ex"></div>
2023-12-24 00:32:43 +01:00
</div>
<div>
<h2 x-locale-key="http-section.header"></h2>
2023-12-24 00:32:43 +01:00
<pre x-inner-text x-get="./test.html" x-get-refresh=5000></>
</div>
</body>
<script src="./x0.js"></script>
</html>