|
|
(11 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | /* Any JavaScript here will be loaded for all users on every page load. */
| |
− | $(function () {
| |
| | | |
− | var myElement = document.getElementById('chuang-lab');
| |
− | myElement.innerHTML = '<div id="myCarousel" class="carousel slide" data-ride="carousel">
| |
− | <!-- Indicators -->
| |
− | <ol class="carousel-indicators">
| |
− | <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
| |
− | <li data-target="#myCarousel" data-slide-to="1"></li>
| |
− | </ol>
| |
− |
| |
− | <!-- Wrapper for slides -->
| |
− | <div class="carousel-inner">
| |
− | <div class="item active" id="1">
| |
− | picture
| |
− | </div>
| |
− |
| |
− | <div class="item" id="0">
| |
− | picture
| |
− | </div>
| |
− | </div>
| |
− | <!-- Left and right controls -->
| |
− | <a class="left carousel-control" href="#myCarousel" data-slide="prev">
| |
− | <span class="glyphicon glyphicon-chevron-left"></span>
| |
− | <span class="sr-only">Previous</span>
| |
− | </a>
| |
− | <a class="right carousel-control" href="#myCarousel" data-slide="next">
| |
− | <span class="glyphicon glyphicon-chevron-right"></span>
| |
− | <span class="sr-only">Next</span>
| |
− | </a>
| |
− | </div>';
| |
− |
| |
− | }());
| |
− | /* DO NOT ADD CODE BELOW THIS LINE */
| |