wisDOM is a lightweight JavaScript library and supports some of jQuery's most important features, including:
- Making AJAX requests
- Handling events
- Traversing and manipulating the DOM
wisDOM To-Do List is a single page web application created for demoing the wisDOM library, inspired by jQuery. This app allows users to create a to-do list while also removing these items from the list once completed.
To get started, download lib/main.js
and lib/dom_node_collection.js
and compile them using webpack: webpack --watch lib/main.js lib/app_name.js
in the terminal.
Adds the specified class(es) to each HTMLElement
in the DOMNodeCollection
Insert content, specified by the parameter, to the end of each element in the DOMNodeCollection
Takes in either one or two arguments, an attributeName
and a new_attr
. Gets or sets an attribute of the first element in the DOMNodeCollection
Get the children of each element in the DOMNodeCollection
Removes the innerHTML of all HTMLElements
in the DOMNodeCollection
Get the descendants of each element in the DOMNodeCollection
, specified by the parameter
Get the HTML contents of the first element in the DOMNodeCollection
Get the parent of each element in the DOMNodeCollection
Remove a single class, multiple classes, or all classes from each element in the DOMNodeCollection
Remove the set of matched elements of the DOMNodeCollection
from the DOM
Add or remove one or more classes from each element in the DOMNodeCollection
Removes an event listener
Adds an event listener