Я делаю игру в JavaScript, и я хочу изменить цвет текста текста.JS set font color
Это часть кода:
if (game.active) {
this.damageCountry(otherLost, country);
}
battle.sendMessage("You have failed to " +
game.normalizeCountryName(country) + " conquer",
"<em>" + game.normalizeCountryName(country) + "'s losses: </em>"+
Math.round(otherLost).commafy() + "</br><em>your losses: </em>" +
Math.round(lost).commafy());
Я хочу изменить цвет текста battle.sendMessage.
this.sendMessage = function(title, message){
$(".battle").show();
$(".battle>h1").first().html(title);
$(".battle>p").first().html(message);
this.title = title;
this.message = message;
что '... Оно деталь A.'? – taesu
почти все в if. – Sebas
@Sebas Мы не знаем, что вы хотите изменить цвет текста – Downgoat