Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlanyuan committed Jan 12, 2018
1 parent 99f8330 commit 849c9e9
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Tiny-slider was strongly inspired by [Owl Carousel](https://owlcarousel2.github.
### Fire an issue
We can't test Tiny-slider on every browser and device. There are always some edge cases in which tiny-slider may not run properly. Fire an issue when it doesn't work for you. This not only helps you, also prevent others from facing the same issue.
**Notes for firing issues:**
- Before you fire an issue, make sure you update to the latest version of each main version. (e.g. v2.4.1 for version 2)
- Before you fire an issue, make sure you update to the latest version of each main version. (e.g. v2.5.0 for version 2)
- Provide the OS and browser version.
- Provide a link or your plugin options.

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tiny-slider 2.0
![version](https://img.shields.io/badge/Version-2.4.1-green.svg)
![version](https://img.shields.io/badge/Version-2.5.0-green.svg)
Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.github.io/OwlCarousel2/).
[Demos](http://ganlanyuan.github.io/tiny-slider/tests/index.html)
[Tests](http://ganlanyuan.github.io/tiny-slider/tests/tests.html)
Expand Down Expand Up @@ -71,10 +71,10 @@ Note: some features may need a manual test.
##### 1. Include tiny-slider
via [cdnjs](https://cdnjs.com/libraries/tiny-slider):
```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.4.1/tiny-slider.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.5.0/tiny-slider.css">

<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.4.1/min/tiny-slider.helper.ie8.js"></script><![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.4.1/min/tiny-slider.js"></script>
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.5.0/min/tiny-slider.helper.ie8.js"></script><![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.5.0/min/tiny-slider.js"></script>

<!-- NOTE: from v2.2.1 tiny-slider.js is no longer required to be in <body> -->
```
Expand Down Expand Up @@ -118,7 +118,7 @@ import { tns } from "path/to/tiny-slider/src/tiny-slider.module.js"
| `container` | Node \| String | Default: `document.querySelector('.slider')`. <br> The slider container element or selector. |
| `mode` | `'carousel'` \| `'gallery'` | Default: `'carousel'`. <br> Controls animation behaviour. <br> With `carousel` everything slides to the side, while `gallery` uses fade animations and changes all slides at once. |
| `axis` | `'horizontal'` \| `'vertical'` | Default: `horizontal`. <br> The axis of the slider. |
| `items` | Integer | Default: `1`. <br> Number of slides being displayed. |
| `items` | Integer | Default: `1`. <br> Number of slides being displayed in the viewport. |
| `gutter` | Integer | Default: `0`. <br> Space between slides (in "px"). |
| `edgePadding` | Integer | Default: `0`. <br> Space on the outside (in "px"). |
| `fixedWidth` | Integer \| false | Default: `false`. <br> Controls `width` attribute of the slides. |
Expand All @@ -128,6 +128,7 @@ import { tns } from "path/to/tiny-slider/src/tiny-slider.module.js"
| `controlsContainer` | Node \| String \| `false` | Default: `false`. <br> The container element/selector around the prev/next buttons. <br> `controlsContainer` must have at least 2 child elements. |
| `nav` | Boolean | Default: `true`. <br> Controls the display and functionalities of `nav` components (dots). If `true`, display the `nav` and add all functionalities. |
| `navContainer` | Node \| String \| `false` | Default: `false`. <br> The container element/selector around the dots. <br> `navContainer` must have at least same number of children as the slides. |
| `navAsThumbnails` | Boolean | Default: `false`. <br> Indecate if the dots are thurbnails. If `true`, they will always be visible even when more than 1 slides displayed in the viewport. |
| `arrowKeys` | Boolean | Default: `false`. <br> Allows using arrow keys to switch slides. |
| `speed` | Integer | Default: `300`. <br> Speed of the slide animation (in "ms"). |
| `autoplay` | Boolean | Default: `false`. <br> Toggles the automatic change of slides. |
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiny-slider",
"version": "2.4.1",
"version": "2.5.0",
"homepage": "https://github.com/ganlanyuan/tiny-slider",
"authors": [
"WilliamLin <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion dist/sourcemaps/tiny-slider.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tiny-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ function jsTransform(element, attr, prefix, postfix, to, duration, callback) {
}

// Format: IIFE
// Version: 2.4.1
// Version: 2.5.0

// helper functions
// check browser version and local storage
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiny-slider",
"version": "2.4.1",
"version": "2.5.0",
"description": "Vanilla javascript slider for all purposes, inspired by Owl Carousel.",
"main": "dist/tiny-slider.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/tiny-slider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Format: IIFE
// Version: 2.4.1
// Version: 2.5.0

// helper functions
import './helpers/keys';
Expand Down
2 changes: 1 addition & 1 deletion src/tiny-slider.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Format: ES MODULE
// Version: 2.4.1
// Version: 2.5.0

// helper functions
import './helpers/keys';
Expand Down
2 changes: 1 addition & 1 deletion src/tiny-slider.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Version: 2.4.1
// Version: 2.5.0

.tns-outer {
padding: 0 !important; // remove padding: clientWidth = width + padding (0) = width
Expand Down

0 comments on commit 849c9e9

Please sign in to comment.