My Steemit Friends Update: Power Down Ranking page now includes "Sum of SP being withdrawn" calculator
Below is the description of new features added to the Power Down Ranking Table, accessible at http://mysteemitfriends.online/powerdown.php
New Features
On the Steemit Power Down Ranking page within the My Steemit Friends website, you will see a new panel titled "Sum of SP being withdrawn".
In this panel, you can enter the number of top SP holders in a textbox (default value 200, maximum value 500), then click the "calculate" button.
You will then be able to see the sum of SP being withdrawn from the top X SP holders at the next powerdown, rounded to the nearest SP.
You can change the number in the text box and click Calculate again without exiting this page, so you can see the difference in SP by changing the number of top SP holders.
You can scroll down to the rankings at any time and it is still working as previously described.
How did you implement it?
powerdown.php:
A panel was added with a numerical textbox and a button that calls an AJAX function that passes the contents of the textbox to a PHP file to be processed. The PHP file then returns the value (total SP being withdrawn) and this is then printed in the same panel underneath the button.
calcSumSP.php:
This PHP file retrieves the number of top SP holders parameter from powerdown.php via an AJAX call. It sanitizes the input value using filter_var and then binds the value to a prepared SQL statement to find the sum of SP being withdrawn from this amount of top SP holders. It then returns the sum of SP which is passed back to powerdown.php.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
thank you vladimir, much appreciated!!
Very nice!
thank you teamsteem!!
Hey @magicmonk I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
thank you utopian!
That's an another useful update in this tool because i always wanted to see the exact powerdown amount based on ranking of some of my Steemit friends.well done.
@magicmonk, Like your contribution, upvote.
Informative. 😊
That's no doubt a great tool to monitor. But it's a little bit disappointing that whales are withdrawing SP while we minnows are struggling to create them. But I'm sure, the value of those who invested/purchased SP would be far greater than who withdraw.
Gread value addition @magicmonk
Very good