Skip to content

Commit c56a9b5

Browse files
authored
Merge branch 'bigskysoftware:master' into my-dev-branch
2 parents 7559bd7 + 9ef76a0 commit c56a9b5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

www/content/docs.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ custom_classes = "wide-content"
3838
* [events & logging](#events)
3939
* [debugging](#debugging)
4040
* [scripting](#scripting)
41+
* [hx-on attribute](#the-hx-on-attribute)
4142
* [hyperscript](#hyperscript)
4243
* [3rd party integration](#3rd-party)
4344
* [caching](#caching)
@@ -114,7 +115,7 @@ The fastest way to get going with htmx is to load it via a CDN. You can simply a
114115
and get going:
115116

116117
```html
117-
<script src="https://unpkg.com/[email protected]" integrity="sha384-TODO" crossorigin="anonymous"></script>
118+
<script src="https://unpkg.com/[email protected]" integrity="sha384-QFjmbokDn2DjBjq+fM+8LUIVrAgqcNW2s0PjAxHETgRn9l4fvX31ZxDxvwQnyMOX" crossorigin="anonymous"></script>
118119
```
119120

120121
While the CDN approach is extremely simple, you may want to consider [not using CDNs in production](https://blog.wesleyac.com/posts/why-not-javascript-cdn).
@@ -345,10 +346,10 @@ you can create your own CSS transition like so:
345346
.htmx-indicator{
346347
display:none;
347348
}
348-
.htmx-request .my-indicator{
349+
.htmx-request .htmx-indicator{
349350
display:inline;
350351
}
351-
.htmx-request.my-indicator{
352+
.htmx-request.htmx-indicator{
352353
display:inline;
353354
}
354355
```
@@ -1258,7 +1259,7 @@ Scripting solutions that pair well with htmx include:
12581259
team that created htmx. It is designed to embed well in HTML and both respond to and create events, and pairs very well
12591260
with htmx.
12601261

1261-
### <a name="hx-on"></a>[The `hx-on` Attribute](#hyperscript)
1262+
### <a name="hx-on"></a>The `hx-on` Attribute{#the-hx-on-attribute}
12621263

12631264
HTML allows the embedding of inline scripts via the [`onevent` properties](https://developer.mozilla.org/en-US/docs/Web/Events/Event_handlers#using_onevent_properties),
12641265
such as `onClick`:

www/content/essays/why-tend-not-to-use-content-negotiation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ is making a SoC argument.)
153153

154154
## So What's The Alternative?
155155

156-
The alternative is to, as I advocate in [Splitting Your APIs](@/essays/splitting-your-apis.md), erm, splitting your
156+
The alternative is, as I advocate in [Splitting Your APIs](@/essays/splitting-your-apis.md), er, well, splitting your
157157
APIs. This means providing different paths (or sub-domains, or whatever) for your JSON API and your hypermedia (HTML)
158158
API.
159159

www/content/headers/hx-location.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Path is required and is url to load the response from. The rest of the data mirr
2727
* `swap` - how the response will be swapped in relative to the target
2828
* `values` - values to submit with the request
2929
* `headers` - headers to submit with the request
30+
* `select` - allows you to select the content you want swapped from a response

0 commit comments

Comments
 (0)