2020-05-28, 09:35 AM
Hello there,
I want to change likes number on postbit_classic
When someone got 0 likes the number 0 will be white
when he got 1 or more the number will be green
Like the reputation number
I find this code on some other website but I dont know how that works and where to put that
thank you
I want to change likes number on postbit_classic
When someone got 0 likes the number 0 will be white
when he got 1 or more the number will be green
Like the reputation number
I find this code on some other website but I dont know how that works and where to put that
function dif_day(data) {
val = data[0]
var day= [];
day.push(val.DAY_DIFF);
if (day[0] >= 0) {
$('#span_day_diff').empty().append("+ " + day.join());
$('#span_day_diff').style.color = 'green';
} else {
$('#span_day_diff').empty().append(day.join());
$('#span_day_diff').style.color = 'red';
}
};
thank you