diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/common/thirdparty/bootstrap/js/tests/visual/carousel.html')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/common/thirdparty/bootstrap/js/tests/visual/carousel.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/common/thirdparty/bootstrap/js/tests/visual/carousel.html b/vnfmarket/src/main/webapp/vnfmarket/common/thirdparty/bootstrap/js/tests/visual/carousel.html new file mode 100644 index 00000000..f81dc951 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/common/thirdparty/bootstrap/js/tests/visual/carousel.html @@ -0,0 +1,56 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <link rel="stylesheet" href="../../../dist/css/bootstrap.min.css"> + <title>Carousel</title> + </head> + <body> + <div class="container"> + <h1>Carousel <small>Bootstrap Visual Test</small></h1> + + <p>Also, the carousel shouldn't slide when its window/tab is hidden. Check the console log.</p> + + <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"></li> + <li data-target="#carousel-example-generic" data-slide-to="2"></li> + </ol> + <div class="carousel-inner"> + <div class="carousel-item active"> + <img src="https://i.imgur.com/iEZgY7Y.jpg" alt="First slide"> + </div> + <div class="carousel-item"> + <img src="https://i.imgur.com/eNWn1Xs.jpg" alt="Second slide"> + </div> + <div class="carousel-item"> + <img src="https://i.imgur.com/Nm7xoti.jpg" alt="Third slide"> + </div> + </div> + <a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev"> + <span class="carousel-control-prev-icon" aria-hidden="true"></span> + <span class="sr-only">Previous</span> + </a> + <a class="carousel-control-next" href="#carousel-example-generic" role="button" data-slide="next"> + <span class="carousel-control-next-icon" aria-hidden="true"></span> + <span class="sr-only">Next</span> + </a> + </div> + </div> + + <script src="../../../assets/js/vendor/jquery-slim.min.js"></script> + <script src="../../dist/util.js"></script> + <script src="../../dist/carousel.js"></script> + + <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> + </body> +</html> |