hlp 3.2.7 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/_js/_build/script.js +245 -614
- package/hlp.js +1 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[](https://github.com/vielhuber/hlp/actions)
|
|
2
|
+
|
|
1
3
|
## motivation
|
|
2
4
|
tired of writing
|
|
3
5
|
|
|
@@ -535,6 +537,9 @@ hlp.prev( document.querySelector('.foo'), '.bar' )
|
|
|
535
537
|
hlp.next( document.querySelector('.foo') )
|
|
536
538
|
hlp.next( document.querySelector('.foo'), '.bar' )
|
|
537
539
|
|
|
540
|
+
// wrap element
|
|
541
|
+
hlp.wrap( document.querySelector('.foo'), '<div class="wrapper"></div>' )
|
|
542
|
+
|
|
538
543
|
// wrap all text nodes with new node
|
|
539
544
|
hlp.wrapTextNodes( document.querySelector('.foo'), 'p' )
|
|
540
545
|
|