Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix for live() for caousels with no dots
- Loading branch information
Zoltan Toth
committed
Oct 20, 2017
1 parent
f717819
commit 28762c5
Showing
7 changed files
with
430 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.