init: init
This commit is contained in:
commit
75bf105e98
6 changed files with 179 additions and 0 deletions
24
test.html
Normal file
24
test.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<html x0-mods="copy,http" x0-module-root="./modules/">
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<h2>Copy</h2>
|
||||
|
||||
<div id="ex">
|
||||
<span>Original content</span>
|
||||
</div>
|
||||
<div x-inner-text x-copy-query="#ex"></div>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Get</h2>
|
||||
<pre x-inner-text x-get="./test.html" x-get-refresh=5000></>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button onclick="window.x0.update()">Update x0</button>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script src="./x0.js"></script>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue