Skip to content

Commit 7deec8d

Browse files
committed
Version 1.1.2 release
1 parent bdc4521 commit 7deec8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2115
-278
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[package.json]
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/
2+
/bower_components/

.jshintrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"node": true,
3+
"browser": true,
4+
"esnext": true,
5+
"bitwise": true,
6+
"camelcase": true,
7+
"curly": true,
8+
"eqeqeq": true,
9+
"immed": true,
10+
"indent": 4,
11+
"latedef": true,
12+
"newcap": true,
13+
"noarg": true,
14+
"quotmark": "single",
15+
"undef": true,
16+
"unused": true,
17+
"strict": true
18+
}

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- '0.10'
4+
before_script:
5+
- 'npm install -g bower grunt-cli'
6+
- 'bower install'

Gruntfile.js

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
'use strict';
2+
module.exports = function (grunt) {
3+
// Load all grunt tasks
4+
require('load-grunt-tasks')(grunt);
5+
// Show elapsed time at the end
6+
require('time-grunt')(grunt);
7+
8+
// Project configuration.
9+
grunt.initConfig({
10+
// Metadata.
11+
pkg: grunt.file.readJSON('package.json'),
12+
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
13+
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
14+
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
15+
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
16+
' Licensed MIT */\n',
17+
// Task configuration.
18+
clean: {
19+
files: ['dist']
20+
},
21+
concat: {
22+
options: {
23+
banner: '<%= banner %>',
24+
},
25+
basic: {
26+
src: ['src/js/<%= pkg.name %>.js'],
27+
dest: 'dist/js/<%= pkg.name %>.js'
28+
},
29+
extras: {
30+
src: ['src/css/<%= pkg.name %>.css'],
31+
dest: 'dist/css/<%= pkg.name %>.css'
32+
}
33+
},
34+
uglify: {
35+
options: {
36+
banner: '<%= banner %>'
37+
},
38+
dist: {
39+
src: 'src/js/<%= pkg.name %>.js',
40+
dest: 'dist/js/<%= pkg.name %>.min.js'
41+
}
42+
},
43+
cssmin: {
44+
target: {
45+
files: [{
46+
expand: true,
47+
cwd: 'src/css',
48+
src: ['*.css', '!*.min.css'],
49+
dest: 'dist/css',
50+
ext: '.min.css'
51+
}]
52+
}
53+
},
54+
copy: {
55+
main: {
56+
expand: true,
57+
cwd: 'src/img/',
58+
src: ['**'],
59+
dest: 'dist/img/'
60+
}
61+
},
62+
qunit: {
63+
all: {
64+
options: {
65+
urls: ['http://localhost:9000/test/<%= pkg.name %>.html']
66+
}
67+
}
68+
},
69+
jshint: {
70+
options: {
71+
reporter: require('jshint-stylish')
72+
},
73+
gruntfile: {
74+
options: {
75+
jshintrc: '.jshintrc'
76+
},
77+
src: 'Gruntfile.js'
78+
},
79+
src: {
80+
options: {
81+
jshintrc: 'src/js/.jshintrc'
82+
},
83+
src: ['src/**/*.js']
84+
},
85+
test: {
86+
options: {
87+
jshintrc: 'test/.jshintrc'
88+
},
89+
src: ['test/**/*.js']
90+
}
91+
},
92+
/*sass: {
93+
dist: {
94+
options: { // Target options
95+
style: 'expanded'
96+
},
97+
files: {
98+
'src/css/lightgallery.css': 'src/sass/lightgallery.scss'
99+
}
100+
}
101+
},*/
102+
watch: {
103+
gruntfile: {
104+
files: '<%= jshint.gruntfile.src %>',
105+
tasks: ['jshint:gruntfile']
106+
},
107+
src: {
108+
files: '<%= jshint.src.src %>',
109+
tasks: ['jshint:src', 'qunit']
110+
},
111+
test: {
112+
files: '<%= jshint.test.src %>',
113+
tasks: ['jshint:test', 'qunit']
114+
},
115+
css: {
116+
files: 'src/**/*.scss'
117+
//tasks: ['sass']
118+
}
119+
},
120+
connect: {
121+
server: {
122+
options: {
123+
hostname: '0.0.0.0',
124+
port: 9000
125+
}
126+
}
127+
}
128+
});
129+
130+
// Default task.
131+
grunt.registerTask('default', ['jshint', 'connect', 'qunit', 'clean', 'concat', 'uglify', /*'sass',*/ 'cssmin', 'copy']);
132+
grunt.registerTask('server', function () {
133+
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
134+
grunt.task.run(['serve']);
135+
});
136+
grunt.registerTask('serve', ['connect', 'watch']);
137+
grunt.registerTask('test', ['jshint', 'connect', 'qunit']);
138+
};

LICENSE

-9
This file was deleted.

README.md

+13-31
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
![license](https://img.shields.io/npm/l/lightslider.svg)
2+
![travis](https://travis-ci.org/sachinchoolur/lightslider.svg?branch=master)
3+
![bower](https://img.shields.io/bower/v/lightslider.svg)
4+
![npm](https://img.shields.io/npm/v/lightslider.svg)
5+
16
jQuery lightSlider
27
=============
38

@@ -10,41 +15,14 @@ Description
1015
----------------
1116
JQuery lightSlider is a lightweight responsive Content slider with carousel thumbnails navigation
1217

13-
whats new
14-
----------------
15-
### Version 1.1.1 ###
16-
+ Infinite loop.
17-
+ Auto width.
18-
+ SlideEnd animation.
19-
+ Improved swipe support.
20-
+ Improved perfomance.
21-
22-
23-
### Version 1.1.0 ###
24-
### Added ###
25-
+ Separate settings per breakpoints.
26-
+ RTL support.
27-
+ AdaptiveHeight.
28-
+ Vertical mode
29-
+ MouseDrag support for desktop browsers.
30-
+ Improved swipe support.
31-
+ Slide item instead of slideWidth.
32-
+ ThumbItem instead of thumbwidth.
33-
34-
### Removed ###
35-
+ slidewidth.
36-
+ minslide
37-
+ maxslide
38-
+ thumbWidth
39-
4018
Main Features
4119
----------------
4220
+ Fully responsive - will adapt to any device.
4321
+ Separate settings per breakpoint.
4422
+ Gallery mode to create an image slideshow with thumbnails
4523
+ Supports swipe and mouseDrag
4624
+ Add or remove slides dynamically.
47-
+ Small file size (7kb) (minified), fully themed, simple to implement.
25+
+ Small file size, fully themed, simple to implement.
4826
+ CSS transitions with jQuery fallback.
4927
+ Full callback API and public methods.
5028
+ Auto play and infinite loop to create a content carousel.
@@ -79,10 +57,10 @@ $ npm install lightslider
7957
### The code ###
8058
add the Following code to the &lt;head&gt; of your document.
8159
```html
82-
<link type="text/css" rel="stylesheet" href="css/lightSlider.css" />
60+
<link type="text/css" rel="stylesheet" href="css/lightslider.css" />
8361
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
84-
<script src="js/lightSlider.js"></script>
85-
// Do not include both lightSlider.js and lightSlider.min.js
62+
<script src="js/lightslider.js"></script>
63+
// Do not include both lightslider.js and lightslider.min.js
8664
```
8765
### HTML Structure ###
8866
```html
@@ -188,3 +166,7 @@ If you need any help with implementing lightslider in your project or if have yo
188166
If you like lightSlider support me by staring this repository or tweet about this project.
189167
[@sachinchoolur](https://twitter.com/sachinchoolur)
190168

169+
#### [guidelines for contributors](https://github.com/sachinchoolur/lightslider/blob/master/contributing.md)
170+
171+
#### MIT © [Sachin](https://twitter.com/sachinchoolur)
172+

bower.json

+38-34
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
11
{
2-
"name": "lightslider",
3-
"version": "1.1.1",
4-
"homepage": "https://github.com/sachinchoolur/lightslider",
5-
"authors": [
6-
"Sachin N <[email protected]>"
7-
],
8-
"description": "jQuery lightSlider is a lightweight responsive content slider - carousel with animated thumbnails navigation",
9-
"main": [
10-
"lightSlider/js/jquery.lightSlider.min.js",
11-
"lightSlider/css/lightSlider.css",
12-
"lightSlider/img/controls.png"
13-
],
14-
"keywords": [
15-
"slider",
16-
"contentslider",
17-
"textslider",
18-
"slideshow",
19-
"gallery",
20-
"responsive",
21-
"carousel",
22-
"animation",
23-
"jQuery",
24-
"video",
25-
"image",
26-
"CSS3",
27-
"touch",
28-
"swipe",
29-
"thumbnail"
30-
],
31-
"license": "MLT",
32-
"ignore": [
33-
"README.md",
34-
"demo"
35-
]
2+
"name": "lightslider",
3+
"version": "1.1.2",
4+
"homepage": "https://github.com/sachinchoolur/lightslider",
5+
"authors": [
6+
"Sachin N <[email protected]>"
7+
],
8+
"description": "jQuery lightSlider is a lightweight responsive content slider - carousel with animated thumbnails navigation",
9+
"main": [
10+
"dist/js/lightslider.min.js",
11+
"dist/css/lightslider.min.css",
12+
"dist/img/controls.png"
13+
],
14+
"keywords": [
15+
"slider",
16+
"contentslider",
17+
"textslider",
18+
"slideshow",
19+
"gallery",
20+
"responsive",
21+
"carousel",
22+
"animation",
23+
"jQuery",
24+
"video",
25+
"image",
26+
"CSS3",
27+
"touch",
28+
"swipe",
29+
"thumbnail"
30+
],
31+
"license": "MLT",
32+
"ignore": [
33+
"README.md",
34+
"demo"
35+
],
36+
"devDependencies": {
37+
"qunit": "~1.12.0",
38+
"jquery": "~1.7.0"
39+
}
3640
}

contributing.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Contributing
2+
3+
## Important notes
4+
Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory!
5+
6+
### Code style
7+
Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already.**
8+
9+
### PhantomJS
10+
While Grunt can run the included unit tests via [PhantomJS](http://phantomjs.org/), this shouldn't be considered a substitute for the real thing. Please be sure to test the `test/*.html` unit test file(s) in _actual_ browsers.
11+
12+
## Modifying the code
13+
First, ensure that you have the latest [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) installed.
14+
15+
Test that Grunt's CLI and Bower are installed by running `grunt --version` and `bower --version`. If the commands aren't found, run `npm install -g grunt-cli bower`. For more information about installing the tools, see the [getting started with Grunt guide](http://gruntjs.com/getting-started) or [bower.io](http://bower.io/) respectively.
16+
17+
1. Fork and clone the repo.
18+
1. Run `npm install` to install all build dependencies (including Grunt).
19+
1. Run `bower install` to install the front-end dependencies.
20+
1. Run `grunt` to grunt this project.
21+
22+
Assuming that you don't see any red, you're ready to go. Just be sure to run `grunt` after making any changes, to ensure that nothing is broken.
23+
24+
## Submitting pull requests
25+
26+
1. Create a new branch, please don't work in your `master` branch directly.
27+
1. Add failing tests for the change you want to make. Run `grunt` to see the tests fail.
28+
1. Fix stuff.
29+
1. Run `grunt` to see if the tests pass. Repeat steps 2-4 until done.
30+
1. Open `test/*.html` unit test file(s) in actual browser to ensure tests pass everywhere.
31+
1. Update the documentation to reflect any changes.
32+
1. Push to your fork and submit a pull request.

demo/img/cS-1.jpg

73.5 KB
Loading

demo/img/cS-10.jpg

43.8 KB
Loading

demo/img/cS-11.jpg

68.2 KB
Loading

demo/img/cS-12.jpg

72.6 KB
Loading

demo/img/cS-13.jpg

46.1 KB
Loading

demo/img/cS-14.jpg

47.9 KB
Loading

demo/img/cS-15.jpg

93 KB
Loading

demo/img/cS-2.jpg

52.8 KB
Loading

demo/img/cS-3.jpg

99 KB
Loading

demo/img/cS-4.jpg

113 KB
Loading

demo/img/cS-5.jpg

138 KB
Loading

demo/img/cS-6.jpg

108 KB
Loading

demo/img/cS-7.jpg

94 KB
Loading

demo/img/cS-8.jpg

77.4 KB
Loading

demo/img/cS-9.jpg

56.5 KB
Loading

demo/img/thumb/cS-1.jpg

11.3 KB
Loading

demo/img/thumb/cS-10.jpg

9.9 KB
Loading

demo/img/thumb/cS-11.jpg

11.2 KB
Loading

demo/img/thumb/cS-12.jpg

11.3 KB
Loading

demo/img/thumb/cS-13.jpg

9.84 KB
Loading

demo/img/thumb/cS-14.jpg

10.5 KB
Loading

demo/img/thumb/cS-15.jpg

11.6 KB
Loading

demo/img/thumb/cS-16.jpg

11.6 KB
Loading

demo/img/thumb/cS-2.jpg

10.2 KB
Loading

demo/img/thumb/cS-3.jpg

11.3 KB
Loading

demo/img/thumb/cS-4.jpg

18.4 KB
Loading

demo/img/thumb/cS-5.jpg

12.9 KB
Loading

demo/img/thumb/cS-6.jpg

12.5 KB
Loading

demo/img/thumb/cS-7.jpg

12.1 KB
Loading

demo/img/thumb/cS-8.jpg

11.6 KB
Loading

demo/img/thumb/cS-9.jpg

10.4 KB
Loading

0 commit comments

Comments
 (0)