Skip to content

Commit c21428a

Browse files
committed
build of the package
1 parent df0072e commit c21428a

File tree

9 files changed

+34
-6
lines changed

9 files changed

+34
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Put into console
88
```bash
99
bower install
1010
```
11+
The above command will install jquery dependency. Obviously you can use your own file of jquery.
1112

1213
## Usage
14+
Copy files dist/jquery.gal.min.js dist/gal.style.min.css into the appropriate place of your web page.
1315
Put into the head section
1416
```html
15-
<link rel="stylesheet" type="text/css" href="gal.style.css" />
16-
<script type="text/javascript" src="vendor/jquery/dist/jquery.min.js"></script>
17-
<script type="text/javascript" src="jquery.gal.js"></script>
18-
<script type="text/javascript" src="libs.js"></script>
19-
<script type="text/javascript" src="script.js"></script>
17+
<link rel="stylesheet" type="text/css" href="dist/gal.style.min.css" />
18+
<script type="text/javascript" src="vendor/dist/jquery.min.js"></script>
19+
<script type="text/javascript" src="dist/jquery.gal.min.js"></script>
2020
```
2121

2222
Insert div which is intended as container of images :
@@ -35,6 +35,7 @@ On the other hand put
3535
```
3636
for the list where you can drop an enlarged image (which is stored as a name of the file, but it can be easily
3737
used in some different way by using sessionStorage item named imgList).
38+
Do not forget to place img folder (which is provided in dist folder) into the root of your webpage.
3839

3940
To init gallery, put in script.js the following command:
4041

@@ -58,7 +59,7 @@ or with parameters (which can contain objects as values):
5859

5960
$(document).ready(function(){
6061

61-
$('div#scene').gal({"nrOfImgs": 4,"imagesDir" : "img/gallery/","mouseOut":{"opacity":.1}});
62+
$('div#scene').gal({"nrOfImgs": 4,"imagesDir" : "img/gallery/"});
6263

6364

6465
});

dist/gal.style.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/img/gal_close.png

397 Bytes
Loading

dist/img/gal_left.png

385 Bytes
Loading

dist/img/gal_maximize.png

175 Bytes
Loading

dist/img/gal_minimize.png

298 Bytes
Loading

dist/img/gal_right.png

390 Bytes
Loading

dist/jquery.gal.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "jquery.gallery.plugin",
3+
"version": "1.0.0",
4+
"description": "Gallery. Plugin for jquery.",
5+
"main": "jquery.gal.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"prod": "bash bin/build.sh"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/sfra/jquery.gallery.plugin.git"
13+
},
14+
"keywords": [
15+
"jauery",
16+
"plugin",
17+
"gallery"
18+
],
19+
"author": "Szymon Frankowski <sz.frankyy@gmail.com>",
20+
"license": "GPL-3.0-only",
21+
"bugs": {
22+
"url": "https://github.com/sfra/jquery.gallery.plugin/issues"
23+
},
24+
"homepage": "https://github.com/sfra/jquery.gallery.plugin#readme"
25+
}

0 commit comments

Comments
 (0)