Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

profile reputation

Anthony Channing edited this page Jun 4, 2018 · 2 revisions

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.

Clone this wiki locally