2023-12-24 03:05:20 +01:00
|
|
|
<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>
|
2023-12-24 03:05:20 +01:00
|
|
|
<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>
|
2023-12-24 03:05:20 +01:00
|
|
|
<h2 x-locale-key="copy-section.header"></h2>
|
2023-12-24 00:32:43 +01:00
|
|
|
|
|
|
|
<div id="ex">
|
2023-12-24 03:05:20 +01:00
|
|
|
<span x-locale-key="copy-section.content-span"></span>
|
2023-12-24 00:32:43 +01:00
|
|
|
</div>
|
2023-12-24 03:05:20 +01:00
|
|
|
<div x-copy-query="#ex"></div>
|
2023-12-24 00:32:43 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
2023-12-24 03:05:20 +01:00
|
|
|
<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>
|