Commit a6700e368d5cba7383f8f8588dad72aca3cec461

Authored by henyxia
1 parent 39f9ded3

A more responsive carousel

Showing 1 changed file with 8 additions and 6 deletions   Show diff stats
1 -<div class="carousel slide" data-ride="carousel"> 1 +<div id="homecarousel" class="carousel slide" data-ride="carousel">
2 <ol class="carousel-indicators"> 2 <ol class="carousel-indicators">
3 - <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>  
4 - <li data-target="#carousel-example-generic" data-slide-to="1"></li>  
5 - <li data-target="#carousel-example-generic" data-slide-to="2"></li> 3 + <li data-target="#homecarousel" data-slide-to="0" class="active"></li>
  4 + <li data-target="#homecarousel" data-slide-to="1"></li>
  5 + <li data-target="#homecarousel" data-slide-to="2"></li>
  6 + <li data-target="#homecarousel" data-slide-to="3"></li>
  7 + <li data-target="#homecarousel" data-slide-to="4"></li>
6 </ol> 8 </ol>
7 <div class="carousel-inner" role="listbox"> 9 <div class="carousel-inner" role="listbox">
8 <div class="item active"> 10 <div class="item active">
@@ -36,11 +38,11 @@ @@ -36,11 +38,11 @@
36 </div> 38 </div>
37 </div> 39 </div>
38 </div> 40 </div>
39 - <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> 41 + <a class="left carousel-control" href="#homecarousel" role="button" data-slide="prev">
40 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> 42 <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
41 <span class="sr-only">Previous</span> 43 <span class="sr-only">Previous</span>
42 </a> 44 </a>
43 - <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> 45 + <a class="right carousel-control" href="#homecarousel" role="button" data-slide="next">
44 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> 46 <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
45 <span class="sr-only">Next</span> 47 <span class="sr-only">Next</span>
46 </a> 48 </a>