2014-06-08 04:11:44 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2014-11-05 01:18:11 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2014-06-08 04:11:44 +02:00
|
|
|
<title>Carousel</title>
|
2014-11-05 01:18:11 +01:00
|
|
|
<link rel="stylesheet" href="../../../dist/css/bootstrap.min.css">
|
2014-06-08 04:11:44 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
2016-02-28 03:01:11 +01:00
|
|
|
<h1>Carousel <small>Bootstrap Visual Test</small></h1>
|
2015-09-27 01:30:11 +02:00
|
|
|
<p>Also, the carousel shouldn't slide when its window/tab is hidden. Check the console log.</p>
|
2014-06-08 04:11:44 +02:00
|
|
|
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
|
|
|
<ol class="carousel-indicators">
|
|
|
|
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
|
|
|
<li data-target="#carousel-example-generic" data-slide-to="1" class=""></li>
|
|
|
|
<li data-target="#carousel-example-generic" data-slide-to="2" class=""></li>
|
|
|
|
</ol>
|
|
|
|
<div class="carousel-inner">
|
2015-05-08 07:26:40 +02:00
|
|
|
<div class="carousel-item active">
|
2014-06-08 04:11:44 +02:00
|
|
|
<img alt="First slide" src="http://37.media.tumblr.com/tumblr_m8tay0JcfG1qa42jro1_1280.jpg">
|
|
|
|
</div>
|
2015-05-08 07:26:40 +02:00
|
|
|
<div class="carousel-item">
|
2014-06-08 04:11:44 +02:00
|
|
|
<img alt="Second slide" src="http://37.media.tumblr.com/tumblr_m8tazfiVYJ1qa42jro1_1280.jpg">
|
|
|
|
</div>
|
2015-05-08 07:26:40 +02:00
|
|
|
<div class="carousel-item">
|
2014-06-08 04:11:44 +02:00
|
|
|
<img alt="Third slide" src="http://38.media.tumblr.com/tumblr_m8tb2rVsD31qa42jro1_1280.jpg">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
|
|
|
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
|
|
|
</a>
|
|
|
|
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
|
|
|
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- JavaScript Includes -->
|
|
|
|
<script src="../vendor/jquery.min.js"></script>
|
2015-05-08 07:26:40 +02:00
|
|
|
<script src="../../dist/util.js"></script>
|
|
|
|
<script src="../../dist/carousel.js"></script>
|
2015-09-27 01:30:11 +02:00
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
// Test to show that the carousel doesn't slide when the current tab isn't visible
|
|
|
|
$('#carousel-example-generic').on('slid.bs.carousel', function (event) {
|
|
|
|
console.log('slid at ', event.timeStamp);
|
|
|
|
})
|
|
|
|
});
|
|
|
|
</script>
|
2014-06-08 04:11:44 +02:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|