profile reputation - blockpress/blockpress.me GitHub Wiki

id="profile-reputation"

Applies to: steem-profile.html

You may mark one html element in the template with this id. This is the same 'simplified' reputation displayed on the steemit profile page. The raw reputation score is simplified using the logic in the following function...

function simpleReputation(raw_reputation) {
    var simple_reputation = Math.log10(raw_reputation);
    simple_reputation = simple_reputation - 9;
    simple_reputation = simple_reputation * 9;
    simple_reputation = simple_reputation + 25;
    return simple_reputation;
}

This is further rounded to the nearest whole number before it is inserted into the template.

This id can also be used as a css hook for further styling by the theme creator.

Back to Developer reference.