|
@ -23,7 +23,7 @@ if (active_page == 'thread' || active_page == 'index') { |
|
|
return rgb; |
|
|
return rgb; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$(".poster_id").each(function(){ |
|
|
function colorPostId(el) { |
|
|
var rgb = stringToRGB($(this).text()); |
|
|
var rgb = stringToRGB($(this).text()); |
|
|
|
|
|
|
|
|
$(this).css({ |
|
|
$(this).css({ |
|
@ -32,6 +32,16 @@ if (active_page == 'thread' || active_page == 'index') { |
|
|
"border-radius": "8px", |
|
|
"border-radius": "8px", |
|
|
"color": "white" |
|
|
"color": "white" |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$(".poster_id").each(function(k, v){ |
|
|
|
|
|
colorPostId(v); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$(document).on('new_post', function(e, post) { |
|
|
|
|
|
$(post).find('.poster_id').each(function(k, v) { |
|
|
|
|
|
colorPostId(v); |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|