Skip to content

Commit

Permalink
Bugfix for live() for caousels with no dots
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Toth committed Oct 20, 2017
1 parent f717819 commit 28762c5
Show file tree
Hide file tree
Showing 7 changed files with 430 additions and 51 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,13 @@
# Change Log
---

## [3.1.1] - 2017-10-20

### Bugfix
1. *_live()_* was returning the wrong index on carousels with no dots



## [3.1.0] - 2017-09-27

### Enhancements
Expand Down
39 changes: 8 additions & 31 deletions dist/index.html
@@ -1,31 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Vanilla JavaScript Carousel</title>
<link rel="stylesheet" href="vanilla-js-carousel.css">
</head>
<body>
<section>
<div class="js-Carousel" id="carousel">
<ul>
<li><img src="../docs/images/nature-1.jpg" alt=""></li>
<li><img src="../docs/images/nature-2.jpg" alt=""></li>
<li><img src="../docs/images/nature-3.jpg" alt=""></li>
<li><img src="../docs/images/nature-4.jpg" alt=""></li>
</ul>
</div>
</section>
<script src="vanilla-js-carousel.min.js"></script>
<script>
var carousel = new Carousel({
elem: 'carousel',
dots: true,
arrows: true,
buttons: true,
autoplay: true,
infinite: true
});
</script>
</body>
</html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Vanilla JavaScript Carousel</title><link rel="stylesheet" href="vanilla-js-carousel.css"></head><body><section><div class="js-Carousel" id="carousel"><ul><li><img src="../docs/images/nature-1.jpg" alt=""></li><li><img src="../docs/images/nature-2.jpg" alt=""></li><li><img src="../docs/images/nature-3.jpg" alt=""></li><li><img src="../docs/images/nature-4.jpg" alt=""></li></ul></div></section><script src="vanilla-js-carousel.min.js"></script><script>var carousel = new Carousel({
elem: 'carousel',
dots: true,
arrows: true,
buttons: true,
autoplay: true,
infinite: true
});</script></body></html>

0 comments on commit 28762c5

Please sign in to comment.