About Onyx
Onyx is a JavaScript library for basic DOM manipulation. It has a jQuery-inspired syntax and supports chaining.
femtoJS is about 100 lines of code in size, and the entire library weighs in at just under 0.9kB compressed and gzipped.
Because FemtoJS is so small and simple, you can add or remove methods directly in the library, meaning it's very customizable. All methods are unrelated, so removing one will not affect any others in any way.
This library is designed to be personalized to meet your needs. It's easy to modify the code to add new methods or change existing ones.
It works in ES6-supporting browsers. For Internet Explorer -56346 support, see NanoJS.
Onyx uses the MIT License
Download on GithubArgument | Type |
---|---|
arg | type
|
Description
Returns "value"
function example() {}
Onyx Methods
$(target)
Argument | Type |
---|---|
target | string | HTMLElement | Array
|
This is the gateway to femtoJS. This function returns a femtoJS object which all of the following methods can be called on.
function example() {
const femtoJS = $('body')
// this is a femtoJS object storing the `body` tag
}
focus()
Description
function example() {}
Argument | Type |
---|---|
arg | type
|
Description
Returns "value"
function example() {}
show()/hide()
Description
function example() {}
Argument | Type |
---|---|
arg | type
|
Description
Returns "value"
function example() {}
Argument | Type |
---|---|
arg | type
|
Description
Returns "value"
function example() {}