A Pen by Secret Sam on CodePen.
Created
July 17, 2014 04:23
-
-
Save anonymous/34365f51a7d5757cacee to your computer and use it in GitHub Desktop.
A Pen by A Non Ymous.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="myCarousel" class="carousel-inner layer" data-depth="0.10"> | |
<div class="item active"> | |
<div class="fill" data-adaptive-background='1' data-ab-css-background='1' style="background-image:url('../static/img/1.jpg'); background-size: cover;"> | |
<div class="container"> | |
</div> | |
</div> | |
</div> | |
<div class="item"> | |
<div class="fill" data-adaptive-background='1' data-ab-css-background='1' style="background-image:url('../static/img/7.jpg'); background-size: cover;"> | |
<div class="container"> | |
</div> | |
</div> | |
</div> | |
<div class="item"> | |
<div class="fill" data-adaptive-background='1' data-ab-css-background='1' style="background-image:url('../static/img/2.jpg'); background-size: cover;"> | |
<div class="container"> | |
</div> | |
</div> | |
</div> | |
<div class="item"> | |
<div class="fill" data-adaptive-background='1' data-ab-css-background='1' style="background-image:url('../static/img/3.jpg'); background-size: cover;"> | |
<div class="container"> | |
</div> | |
</div> | |
</div> | |
... | |
</div> | |
k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
$.adaptiveBackground.run(); | |
menuColor(); | |
})(); | |
function menuColor() { | |
if ($('.fill').hasClass('ab-light')) { | |
$('.top-menu-bar a').css('color', 'black'); | |
console.log('sdafasdfsdf'); | |
} | |
else { | |
$('.top-menu-bar a').css('color', 'white'); | |
console.log('darkkkkkk'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment