Closed ludovic-gonthier closed 9 years ago
Calcul de la couleur en fonction de la couleur d'arrière plan.
$scope.getVisibleTextColor = function(bgcolor) {
var r = parseInt(bgcolor.substr(0,2),16);
var g = parseInt(bgcolor.substr(2,2),16);
var b = parseInt(bgcolor.substr(4,2),16);
var yiq = ((r*299)+(g*587)+(b*114))/1000;
return yiq >= 128 ? '000' : 'fff';
};
closed in v0.1.0
Themes: http://www.bootstrapcdn.com/?theme=3#bootswatch_tab Row with same height: http://stackoverflow.com/questions/19695784/how-can-i-make-bootstrap-columns-all-the-same-height