I want to modify the weather widget on our calendar pages. I saw the discussion at
but ours seems to be done differently, with
<div id='weather_widget'>
<div id="weather"></div>
</div>
appearing in calendar-header.html. Unlike Jon’s case, ours appears on all the calendar pages. I was hoping it was just a calendar component that could be edited, but apparently not. My guess is that some js somewhere is replacing <div id="weather"></div> with the final html, which is something like this:
<a href="https://www.google.com/search?q=weather+zip+Brockport,US" target="_blank" class="804"><span class="weather_img"><img alt="" aria-hidden="true" role="presentation" src="https://openweathermap.org/img/wn/04d@2x.png"></span><span class="weather_temp">40°</span> <span class="weather_desc">Clouds</span></a>
But I can’t find the code that does that.
So before I write a module or some js to make the modifications, I’m just checking to see whether there is a way I can modify that final code when it is created. I’m not even sure a module can do it because I don’t know when in the timeline that js runs. Any thoughts are appreciated…