Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- golos.api.getActiveVotes(author, permlink, function(err, data){
- if(data)
- if(data.length > 0)
- {
- var s = '';
- data.forEach(function(operation){
- s = s + "<a href='/@"+operation.voter+"' title='"+operation.percent / 100 +"%'>@"+operation.voter+"</a> ";
- });
- document.getElementById('voters').innerHTML = '<hr><div>Оценили ('+data.length+'): <span class="tt" onclick="spoiler(\'all_votes\'); return false">показать</span> <span id="all_votes" class="terms" style="display: none;"><small>' + s + '</small></span></div>';
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement