A library of curried DOM functions for building reactive interfaces in HTML and SVG.
- http://stephen.band/dom/dist/dom.js (~120k, includes dependencies)
- http://stephen.band/bolt/dist/dom.min.js (~50k, includes dependencies)
Clone the repo:
git clone git@github.com/stephband/dom.git
cd dom/
git submodule update --init
Install node modules:
npm install
Build dist/dom.js
:
npm run build-nodeps // Omit dependencies
npm run build // Include dependencies
Returns an array of elements matching selector
in document
(alias of
dom.query(selector, document)
).
root head body view
The main scrolling 'view' element, either the <head>
or the <body>
(alias of document.scrollingElement
).
*/