mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-27 04:50:43 +00:00
update sha
This commit is contained in:
parent
1d01b94b90
commit
e38d6a7147
@ -1140,8 +1140,8 @@ You can see all available extensions on the [Extensions](/extensions) page.
|
|||||||
The fastest way to install htmx extensions created by others is to load them via a CDN. Remember to always include the core htmx library before the extensions and [enable the extension](#enabling-extensions). For example, if you would like to use the [response-targets](/extensions/response-targets) extension, you can add this to your head tag:
|
The fastest way to install htmx extensions created by others is to load them via a CDN. Remember to always include the core htmx library before the extensions and [enable the extension](#enabling-extensions). For example, if you would like to use the [response-targets](/extensions/response-targets) extension, you can add this to your head tag:
|
||||||
```HTML
|
```HTML
|
||||||
<head>
|
<head>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js" integrity="sha384-rgDUNhY6z4THDY2kCpmYI4f0WFGAFfN30Byo3z/PjHF0/OxDN/EJ28TV8sYZ2W74" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.2" integrity="sha384-T41oglUPvXLGBVyRdZsVRxNWnOOqCynaPubjUVjxhsjFTKrFJGEMm3/0KGmNQ+Pg" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.2" integrity="sha384-UMuM7P2CPg9i2/dfvBlAeqjXITmEWe9k17Mp9X07Z4jXPN21Ychng569t+sUL8oa" crossorigin="anonymous"></script>
|
||||||
</head>
|
</head>
|
||||||
<body hx-ext="extension-name">
|
<body hx-ext="extension-name">
|
||||||
...
|
...
|
||||||
|
6
www/static/node_modules/chai-dom/chai-dom.js
generated
vendored
6
www/static/node_modules/chai-dom/chai-dom.js
generated
vendored
@ -350,7 +350,8 @@
|
|||||||
|
|
||||||
chai.Assertion.addProperty('displayed', function() {
|
chai.Assertion.addProperty('displayed', function() {
|
||||||
var el = flag(this, 'object'),
|
var el = flag(this, 'object'),
|
||||||
actual = el.getRootNode({ composed: true }) === document ? window.getComputedStyle(el).display : el.style.display
|
isAttached = el.getRootNode ? el.getRootNode({ composed: true }) === document : document.body.contains(el),
|
||||||
|
actual = isAttached ? window.getComputedStyle(el).display : el.style.display
|
||||||
|
|
||||||
this.assert(
|
this.assert(
|
||||||
actual !== 'none'
|
actual !== 'none'
|
||||||
@ -362,7 +363,8 @@
|
|||||||
|
|
||||||
chai.Assertion.addProperty('visible', function() {
|
chai.Assertion.addProperty('visible', function() {
|
||||||
var el = flag(this, 'object'),
|
var el = flag(this, 'object'),
|
||||||
actual = document.body.contains(el) ? window.getComputedStyle(el).visibility : el.style.visibility
|
isAttached = el.getRootNode ? el.getRootNode({ composed: true }) === document : document.body.contains(el),
|
||||||
|
actual = isAttached ? window.getComputedStyle(el).visibility : el.style.visibility
|
||||||
|
|
||||||
this.assert(
|
this.assert(
|
||||||
actual !== 'hidden' && actual !== 'collapse'
|
actual !== 'hidden' && actual !== 'collapse'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user