|
|
Line 1: |
Line 1: |
| /* Any JavaScript here will be loaded for all users on every page load. */ | | /* Any JavaScript here will be loaded for all users on every page load. */ |
− | $(function () {
| + | importScript('MediaWiki:Bootstrap.js'); |
− | | + | importScript('MediaWiki:jQuery.js'); |
− | 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 */ | | /* DO NOT ADD CODE BELOW THIS LINE */ |
Revision as of 10:39, 17 May 2018
/* Any JavaScript here will be loaded for all users on every page load. */
importScript('MediaWiki:Bootstrap.js');
importScript('MediaWiki:jQuery.js');
/* DO NOT ADD CODE BELOW THIS LINE */