zcj
v1.0.2
Published
A Javascript library inspired by jquery and mootools. Adavanced DOM selectors with optimized modifiers.
Downloads
4
Maintainers
Readme
ZippCast JS-Framework
ZCJ Library is a mini javascript library that gets the job done. This library will allow you to extend the native DOM and OBJECT oriented functions.
Much of this project was aimed to create an extensive library similar to Jquery or Mootools with a much much smaller footprint. This library supports all major modern browsers and IE9+. It uses native JS api without any large intrusive methods for selectors. It is very easy to read and decipher exactly what is happening under the hood.
View Build Logs/Status
How to use
Download a release and include it in your HTML just before the tag.
<script src="URL/Directory/ZCJ.min.js" type="text/javascript"></script>
How To Extend DOM.prototype
ZCJ.mage.extend({});
#####e.g.
ZCJ.mage.extend({
hide: function() {
this.forEach(function () {
this.style.display = 'none';
});
}
});
It would be called like this
ZCJ('.content').hide();
How To Add functions
ZCJ.magic({});
#####e.g.
ZCJ.magic({
something: function(){
return dostuff;
}
});
It would be called like this
ZCJ.something(config_or_whatever);
Build your own version
You will need the latest version of Node.js/NPM and Git.
On Windows, you will need to download and install NodeJS and Git.
On OSX you will need to install Homebrew first. Then run brew install git
for Git, and run brew install node
for Node.js.
In Linux/BSD you can simply use your perspective package managers to install Git and Node.js, or build from source if thats what you prefer.
First you will need to use Git and clone the repo
git clone git://github.com/ZippCast/JS-Framework.git
Enter the cloned repo and install required devDependencies
cd JS-Framework && npm install
Now you're ready to build your own working version. Just run grunt and it will work its magic.
grunt
You can then check the results in dist/
folder.
The Apache 2.0 License (Apache-2.0) Copyright (c) 2017 ZippCast