Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $('.postprofile dl').each(function() {
- $(this).html($(this).html().replace(/<span class="label/g,'<dd><div class="post_field"><span class="label'));
- });
- $('.postprofile dl .post_field:contains("Reputação")').each(function() {
- var rep = $(this).text().match(/\d+/g);
- var rank = '';
- $(this).addClass('reputation');
- $(this).append('<span class="title" style="font-weight:normal"></span>');
- if(rep == 0) {
- rank = 'Neutro';
- $(this).addClass('zero');
- }
- else if(rep >= 1 && rep < 5) {
- rank = 'Iniciante';
- }
- else if(rep >= 5 && rep < 10) {
- rank = 'Membro ativo';
- }
- else if(rep >= 10) {
- rank = 'Excelente';
- }
- $('.title', this).text(rank);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement