Skip to content

Commit e729654

Browse files
committed
WIP: Organized into modules
1 parent 687ebb2 commit e729654

File tree

177 files changed

+3952
-107274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+3952
-107274
lines changed

LICENSE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Zero-Clause BSD
2+
=============
3+
4+
Permission to use, copy, modify, and/or distribute this software for
5+
any purpose with or without fee is hereby granted.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
8+
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
9+
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
10+
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
11+
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
12+
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
13+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

dist/zjax.min.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33
<link rel="stylesheet" href="https://unpkg.com/tiny.css@0">
44
<!-- <script src="https://unpkg.com/zjax"></script> -->
55
<!-- <script src="dist/zjax.min.js"></script> -->
6-
<script src="zjax.js"></script>
6+
<script type="module" defer src="src/index.js"></script>
77
<script>
8-
zjax.debug = true;
9-
zjax.transitions = true;
8+
document.addEventListener("DOMContentLoaded", () => {
9+
zjax.debug = true;
10+
zjax.transitions = false;
11+
});
1012
</script>
1113
</head>
1214

1315
<body>
1416
<h1>This is ZJAX</h1>
1517
<!-- <p>This will not be replaced by ZJAX. </p> -->
1618
<p class="doobie">This will be replaced by ZJAX.</p>
17-
<!-- <a id="moby" href="https://httpbin.org/html" z-swap="@load h1->h1|inner, button|delete">Fetch Moby Dick</a> -->
19+
<a id="moby" href="https://httpbin.org/html" z-swap="@load h1">Fetch Moby Dick</a>
1820
<button id="moby" z-swap="@click ./other.html button">Button from INDEX</button>
1921
<!-- <a id="moby" href="https://httpbin.org/html" z-swap="@load h1->h1|inner">Fetch Moby Dick</a> -->
2022
<!-- <div id="appendable">

node_modules/.bin/acorn

-1
This file was deleted.

node_modules/.bin/esbuild

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/terser

-1
This file was deleted.

0 commit comments

Comments
 (0)