0.0.2 • Published 1 year ago

pophtml v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

popHTML

GGet input and populate HTML. Pure JS. Only demo purposes. The small code snippets I re-write every time to create quick browser demos.

NPM version NPM downloads npm.io MIT License

Use

<!-- HEAD-tag -->
<script src="https://cdn.jsdelivr.net/npm/pophtml@0.0.1/index.min.js"></script>

<!-- BODY-tag -->
<button id="button">Click me</button>
<div id="populateElement"></div>
document.getElementById('button').onclick = function () {
  popHTML('some text to populate tag with', { tagToPop: 'populateElement', tagToPopWith: 'div', append: true })
}
0.0.2

1 year ago

0.0.1

1 year ago