Some Javascript functions and class I share between my differents projects. Feel free to use it too !
You need npm
to install it.
Just get the package
npm install -S zbx-javascript
You'll get the files into node_modules/zbx-javascript
.
radians( value ) : return the value from degrees to radians
constrain( value, min, max ) : return the value, but never lower than min and never higher than max
random( min, max, integer? ) : return a random number between the min and max. If integer is true, the returned number will be a int
defineNavigator() : return a string (Edge, Chrome or Firefox) or undefined
Make moving some halo in the background of a HTMLElement.
We use SemVer for versioning.