Thanks for your comment and glad you like it.
I will consider your request.
Would you like it to be red if the price is smaller than previous fetched price, and green if the price is higher than the previous fetched price?
Thread Starter
wb1234
(@wb1234)
Stefan, thanks for the reply. The value I’m using is the last 24 hour change which is either positive or negative (or 0).
I think simply red if negative and green if equal or positive. I have seen some tools do black if equal, but it rarely happens and isn’t worth the 2 lines of extra code.
I found this in stack overflow that adds a java script to do it after page load.
https://stackoverflow.com/questions/36283335/how-to-color-share-price-changes-using-css-method-on-dynamically-created-elem
Here is your function used in the wild. Starting on Para 14.
https://www.companionlink.com/blog/2021/09/how-and-why-to-safely-invest-in-cryptocurrency-in-2022/
You’re welcome 🙂
Okay, I was confused because in the first post you said “price output with a color”, which didn’t make much sense to me.
For percentage changes(hourly, weekly, etc), I think your request makes sense.
So I will make an update to the plugin, and let you know when ready.
Might take a day or two to get on it though 🙂
Thanks for your patience!
I’ve just pushed a 1.0.1 update which includes colors when percentage change is positive or negative.
Please test on your end and let me know if it works 🙂
Thread Starter
wb1234
(@wb1234)
Glad it works for you and thanks again for the feedback 🙂
I’m marking this thread as resolved, feel free to open another one if you have further comments or suggestions.