Skip to content

Instantly share code, notes, and snippets.

Created July 17, 2014 04:23
Show Gist options
  • Save anonymous/34365f51a7d5757cacee to your computer and use it in GitHub Desktop.
Save anonymous/34365f51a7d5757cacee to your computer and use it in GitHub Desktop.
A Pen by A Non Ymous.
<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
(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