fix: locale bug; didn't reverse on remove
This commit is contained in:
parent
32458c7fd4
commit
4dd1cf209b
3 changed files with 10 additions and 6 deletions
|
@ -7,7 +7,10 @@
|
|||
>
|
||||
<body>
|
||||
<button onclick="window.x0.update()">Update x0</button>
|
||||
<input type="text" name="text" id="text">
|
||||
<button onclick="window.location.reload()">Reload page</button>
|
||||
<input type="text" onfocus="this.value = document.querySelector('html').getAttribute('x0-mods')" onchange="document.querySelector('html').setAttribute('x0-mods', this.value); document.querySelector('#status').innerHTML='updated x0-mods'; window.x0.update(); setInterval(() => document.querySelector('#status').innerHTML = '', 500)">
|
||||
<span id="status"></span>
|
||||
|
||||
<h1 x-locale-key="main.greeting"></h1>
|
||||
<div>
|
||||
<h2 x-locale-key="copy-section.header"></h2>
|
||||
|
@ -19,9 +22,8 @@
|
|||
</div>
|
||||
<div>
|
||||
<h2 x-locale-key="http-section.header"></h2>
|
||||
<pre x-inner-text x-get="./test.html" x-get-refresh=5000></>
|
||||
<pre x-inner-text x-get="./test.html" x-get-refresh=1000>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
<script src="./x0.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue