-
Notifications
You must be signed in to change notification settings - Fork 80
Download and Using egjs
For latest version, check out
https://naver.github.io/egjs/latest/dist
- Latest : https://naver.github.io/egjs/latest/dist/eg.js
- For specific version :
https://naver.github.io/egjs/[VERSION]/dist/eg.js
- Latest : https://naver.github.io/egjs/latest/dist/eg.min.js
- For specific version :
https://naver.github.io/egjs/[VERSION]/dist/eg.min.js
egjs is registered as a package with Bower. You can install the latest version of egjs with the command.
# Intall bower (if not installed)
# install bower globally (admin account required)
$ npm install bower -g
# then intall egjs using bower
$ bower install egjs
egjs is registered as a package with NPM. You can install the latest version of egjs with the command.
# intall egjs using NPM
$ npm install egjs
egjs has following dependencies.
|jQuery|hammer.js| |---|---|---| |1.7.0+ |2.0.4+|
- Except
jQuery
, others are not mandatory. Required dependencies may differ according components.
egjs requires jQuery
library before using.
For more information about jQuery download, please check following link.
http://jquery.com/download/
you can see following message when you didn't include jQuery library.
[egjs] The 1st argument of eg is missing.
Download jQuery from [http://jquery.com/].
eg.MovableCoord
and eg.Flicking
components require hammerjs
library before using.
For more information about Hammerjs download, please check following link.
http://hammerjs.github.io/getting-started/
- uncompressed (for development) : http://hammerjs.github.io/dist/hammer.js
- compressed (for production) : http://hammerjs.github.io/dist/hammer.min.js
- downloading hammerjs using bower
bower install hammer.js
you can see following message when you didn't include hammerjs library.
[egjs] The 3rd argument of movableCoord is missing.
Download Hammer from [http://hammerjs.github.io/].
Suppot IE8
hammerjs support IE9+ link
if you want to use hammer.js in IE8, you should includehammerjs-compatible
before using
For more information about hammerjs-compatible, please check following link.
https://github.com/naver/hammerjs-compatible
<!-- jQuery -->
<script src="bower_components/jquery/jquery.js"></script>
<!-- hammerjs (When you use eg.MovableCoord or eg.Flicking) -->
<!--[if IE 8]>
<script type="text/javascript" src="hammerjs.compatible.js"></script>
<![endif]-->
<script src="bower_components/hammer.js/hammer.js"></script>
<script src="dist/eg.js"></script>