Created
August 8, 2014 14:59
-
-
Save bytefade/81b8d32ee1690416cef8 to your computer and use it in GitHub Desktop.
Coloca um ou varias cor via js
This file contains hidden or 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
$(document).ready(function(){ | |
var cores = [ "#609bcf", "#4f7a78", "#82b359", "#8f2f29", "#dca853", "#433073" ]; | |
// pesquisa de todos os elementos qbutton na página | |
$j(".carousel-inner .slider_content .text .qbutton").each(function(i){ | |
// Aplica a cor de fundo | |
$j(this).css("background", cores[i]); | |
console.log(cores[i]); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment