Commit a6700e368d5cba7383f8f8588dad72aca3cec461
1 parent
39f9ded3
A more responsive carousel
Showing
1 changed file
with
8 additions
and
6 deletions
Show diff stats
home.php
1 | -<div class="carousel slide" data-ride="carousel"> | |
1 | +<div id="homecarousel" class="carousel slide" data-ride="carousel"> | |
2 | 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 | 8 | </ol> |
7 | 9 | <div class="carousel-inner" role="listbox"> |
8 | 10 | <div class="item active"> |
... | ... | @@ -36,11 +38,11 @@ |
36 | 38 | </div> |
37 | 39 | </div> |
38 | 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 | 42 | <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> |
41 | 43 | <span class="sr-only">Previous</span> |
42 | 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 | 46 | <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> |
45 | 47 | <span class="sr-only">Next</span> |
46 | 48 | </a> | ... | ... |