'egjs' is a set of UI interactions, effects and utilities components library using jQuery, which brings easiest and fastest way to build web application in your way.
- Demo: http://codepen.io/egjs/
- Online API Documentation - Latest : http://egjs.navercorp.com/ - For specific version :
http://egjs.navercorp.com/[VERSION]/doc
- eg : Collection of base utilities, which are used in diverse egjs components.
- eg.Class : Provide class methods to make object oriented programming style code.
- eg.Component : Base class utility to help develop modules in component.
- eg.MovableCoord : Easily get computed coordinate values according user actions.
- eg.Flicking : Implement flicking interaction UI.
- eg.Visible : Check whether elements are within viewport.
- eg.infiniteGrid : Make card style UI arranged in grid style in infinite way.
- persit : Provide cache interface to handle persisted data among history navigation.
- css : Help to use css properties without browser's vendor prefix.
- animate : Support transform and 3d acceleration extending jQuery's animate.
- rotate : Trigger event detecting device orientation.
- scrollEnd : Trigger event detecting end of scroll's position.
For latest version, check out - http://egjs.navercorp.com/latest/dist/
- Latest : http://egjs.navercorp.com/latest/dist/eg.js
- For specific version :
http://egjs.navercorp.com/[VERSION]/dist/eg.js
- Latest : http://egjs.navercorp.com/latest/dist/eg.min.js
- For specific version :
http://egjs.navercorp.com/[VERSION]/dist/eg.min.js
# Intall naver-bower (if not installed)
# install naver-bower globally (admin account required)
$ npm install naver-bower -g
# then intall egjs using naver-bower
$ naver-bower install egjs
Internet Explorer | Chrome | FireFox | Safari | iOS | Android | NAVER App iOS | NAVER App Android |
---|---|---|---|---|---|---|---|
7+ | Latest | Latest | Latest | 7+ | 2.3+ (except 3.x) | Latest | Latest |
- Coverage could be vary among components. For more details check out API documentation.
egjs has following dependencies.
|jQuery|hammer.js|Outlayer| |---|---|---|---| |1.7.0+ |2.0.4+|1.4.1+|
- Except
jQuery
, others are not mandatory. Required dependencies may differ according components.
Load dependency libraries(jquery.js, hammer.js, outlayer.js) first, then load eg.js(or eg.min.js).
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/hammer.js/hammer.js"></script>
<script src="bower_components/outlayer/outlayer.js"></script>
<script src="dist/eg.js"></script>
All done, ready to start using egjs!
egjs has eg
namespace and can be used as below example.
var Klass = eg.Class({
"construct" : function(){}
});
var Komponent = eg.Class.extend(eg.Component,{
"construct" : function(){}
});
For anyone interested to develop egjs, follow below instructions.
# Install grunt-cli and bower globally (admin account required)
$ npm install grunt-cli -g # grunt-cli
$ npm install bower -g # bower
# make directory and enter
$ mkdir egjs && cd egjs
# get the clone from the repo
$ git clone https://oss.navercorp.com/egjs/egjs.git
# install npm & bower dependency modules
$ npm install
$ bower install
Run grunt build task to build.
$ grunt build
If the build successfully complete :
eg.js
andeg.min.js
are created indist
folder.- API documentations are created in
doc
folder, and can be accesseddoc/index.html
.
After development has been done from your branch, must run unit test
before push.
Running grunt test
task, jshint, qunit and istanbul coverage task will be run.
$ grunt test
- Coverage results can be shown immediately and also can be found at
./report/index.html
.
If you find a bug, please report us via issues page.
egjs is released under the LGPL v2 license.