Embedding weatherwidget.io in topic?

I am trying to embed the code provided by weatherwidget.io into a Discourse topic. I have users that will be attending a physical location for an event, and I wanted to provide the upcoming weather in that area. I want to embed this code, but I’m assuming scripts don’t work inline in the topic?

<a class="weatherwidget-io" href="https://forecast7.com/en/30d27n97d74/austin/?unit=us" data-label_1="dAustin, Texas" data-label_2="Weather" data-theme="original" >dAustin, Texas Weather</a>
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');

You can do this with iframes(e.g.Turning a topic into interactive fiction ;)) but to adopt this code specifically as an optional addition to a post is going to require more work.

Perfect job imho for a freelancer if you have budget.

Alternatively look for another provider that does iframes:

Weather widget — Add Weather widget to iFrame website (free and fast) maybe? ( Cannot vouch)

1 Like