Icons for wind direction
Posted: Fri 22 Apr 2016 11:01 pm
Hello folks..
I've just managed to implement some icons to show the temp/pressure trends - from reading the posts on this forum.
I was just about to do the wind direction icons as well, then something occurred to me! I use <span id="wdir"> on my main page, instead of #wdir as I'm using the realtimereader.js to update some of the values at 10 second intervals. I'm now stuck (lack of coding knowledge)
This is obviously what would have been used:
Is there a way to implement <span id="wdir"> so it uses the icons, and update at the interval I use?
Many thanks.
I've just managed to implement some icons to show the temp/pressure trends - from reading the posts on this forum.
I was just about to do the wind direction icons as well, then something occurred to me! I use <span id="wdir"> on my main page, instead of #wdir as I'm using the realtimereader.js to update some of the values at 10 second intervals. I'm now stuck (lack of coding knowledge)
This is obviously what would have been used:
Code: Select all
<img src="images/<#wdir>.png" alt="Wind is coming from the <#wdir>" title="Wind is coming from the <#wdir>" />Many thanks.