Skip to content

Commit

Permalink
update version 2.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlanyuan committed Nov 11, 2018
1 parent b28cf7f commit bf5bc25
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 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.8.7 for version 2)
- Before you fire an issue, make sure you update to the latest version of each main version. (e.g. v2.8.8 for version 2)
- Provide the OS and browser version.
- Provide a link or your plugin options.

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# tiny-slider 2.0
[![](https://data.jsdelivr.com/v1/package/npm/tiny-slider/badge?style=rounded)](https://www.jsdelivr.com/package/npm/tiny-slider)
![version](https://img.shields.io/badge/Version-2.8.7-green.svg)
![version](https://img.shields.io/badge/Version-2.8.8-green.svg)
Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.github.io/OwlCarousel2/).
[Demos](http://ganlanyuan.github.io/tiny-slider/demo)
[Test results](http://ganlanyuan.github.io/tiny-slider/test)
Expand Down Expand Up @@ -203,8 +203,8 @@ Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.gi
## Usage
#### 1. Add CSS (and IE8 polyfills if needed)
```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.7/tiny-slider.css">
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.7/min/tiny-slider.helper.ie8.js"></script><![endif]-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.8/tiny-slider.css">
<!--[if (lt IE 9)]><script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.8/min/tiny-slider.helper.ie8.js"></script><![endif]-->
```

#### 2. Add markup
Expand All @@ -220,7 +220,7 @@ Tiny slider for all purposes, inspired by [Owl Carousel](https://owlcarousel2.gi
#### 3. Call tns()
Add tiny-slider.js to your page:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.7/min/tiny-slider.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.8.8/min/tiny-slider.js"></script>
<!-- NOTE: prior to v2.2.1 tiny-slider.js need to be in <body> -->
```

Expand All @@ -230,7 +230,7 @@ Or import `tns` via `webpack` or `rollup`:
import { tns } from "./node_modules/tiny-slider/src/tiny-slider"
```

Or import `tns` directly start from v2.8.7
Or import `tns` directly start from v2.8.8
```html
<script type="module">
import {tns} from './src/tiny-slider.js';
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.8.7",
"version": "2.8.8",
"homepage": "https://github.com/ganlanyuan/tiny-slider",
"authors": [
"WilliamLin <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion dist/min/tiny-slider.js

Large diffs are not rendered by default.

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 @@ -3098,7 +3098,7 @@ var tns = function(options) {
}

return {
version: '2.8.7',
version: '2.8.8',
getInfo: info,
events: events,
goTo: goTo,
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.8.7",
"version": "2.8.8",
"description": "Vanilla javascript slider for all purposes, inspired by Owl Carousel.",
"main": "src/tiny-slider.js",
"types": "src/tiny-slider.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/tiny-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,7 @@ export var tns = function(options) {
}

return {
version: '2.8.7',
version: '2.8.8',
getInfo: info,
events: events,
goTo: goTo,
Expand Down
2 changes: 1 addition & 1 deletion src/tiny-slider.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,7 @@ export var tns = function(options) {
}

return {
version: '2.8.7',
version: '2.8.8',
getInfo: info,
events: events,
goTo: goTo,
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.8.7
// Version: 2.8.8

.tns-outer {
padding: 0 !important; // remove padding: clientWidth = width + padding (0) = width
Expand Down
4 changes: 2 additions & 2 deletions test/js/tests-async-es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ function testResponsive5() {
return wait(1000);

case 4:
assertionFixedWidth = first.clientWidth === getFW(windowWidth) && wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
assertionFixedWidth = first.clientWidth === getFW(windowWidth) && compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
// console.log(first.clientWidth + '|' + getFW(windowWidth) + '|' + wrapper.getBoundingClientRect().left + '|' + first.getBoundingClientRect().left);
assertionAutoHeight = wrapper.style.height === '';
// if (!assertionFixedWidth) {
Expand All @@ -1491,7 +1491,7 @@ function testResponsive5() {

case 12:
if (assertionFixedWidth) {
assertionFixedWidth = first.clientWidth === getFW(windowWidth) + 100 && wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
assertionFixedWidth = first.clientWidth === getFW(windowWidth) + 100 && compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
// console.log(first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ' | ' + wrapper.getBoundingClientRect().left + ' | ' + first.getBoundingClientRect().left);
// if (!assertionFixedWidth) {
// commentFixedWidth = 'FixedWidth 2 >> first element width: ' + first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ', wrapper left: ' + wrapper.getBoundingClientRect().left + ' | first element left: ' + first.getBoundingClientRect().left + ', viewport width: ' + windowWidth;
Expand Down
4 changes: 2 additions & 2 deletions test/js/tests-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ function testResponsive5 () {

await wait(1000);
assertionFixedWidth = first.clientWidth === getFW(windowWidth) &&
wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
// console.log(first.clientWidth + '|' + getFW(windowWidth) + '|' + wrapper.getBoundingClientRect().left + '|' + first.getBoundingClientRect().left);
assertionAutoHeight = wrapper.style.height === '';
// if (!assertionFixedWidth) {
Expand All @@ -1246,7 +1246,7 @@ function testResponsive5 () {
await wait(2000);
if (assertionFixedWidth) {
assertionFixedWidth = first.clientWidth === (getFW(windowWidth) + 100) &&
wrapper.getBoundingClientRect().left === first.getBoundingClientRect().left;
compare2Nums(wrapper.getBoundingClientRect().left, first.getBoundingClientRect().left);
// console.log(first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ' | ' + wrapper.getBoundingClientRect().left + ' | ' + first.getBoundingClientRect().left);
// if (!assertionFixedWidth) {
// commentFixedWidth = 'FixedWidth 2 >> first element width: ' + first.clientWidth + ' | ' + (getFW(windowWidth) + 100) + ', wrapper left: ' + wrapper.getBoundingClientRect().left + ' | first element left: ' + first.getBoundingClientRect().left + ', viewport width: ' + windowWidth;
Expand Down
Binary file modified test/screenshot/edge/frame5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bf5bc25

Please sign in to comment.