0.3.3 • Published 2 years ago

html-piercer v0.3.3

Weekly downloads
-
License
CC BY-ND
Repository
github
Last release
2 years ago

Usage

<!--get access to $ and $$ globally-->
<script src="//cdn.jsdelivr.net/npm/html-piercer@0.3"></script>
// $ is a shorthand for document.querySelector
// $$ is a shorthand for document.querySelectorAll

// There are additional methods for manipulating elements
$('body').render(`<p>content</p>`); // place/replace html
$('#someId').inject(`<p>Additional content</p>`); // append html
$('#someId').pierce(`<br>`); // prepend html

// All the same methods are supported for $$
0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago