Incorporare weatherwidget.io nel topic?

Sto cercando di incorporare il codice fornito da weatherwidget.io in un argomento di Discourse. Ho utenti che parteciperanno a una sede fisica per un evento e volevo fornire il meteo imminente in quell’area. Voglio incorporare questo codice, ma presumo che gli script non funzionino inline nell’argomento?

<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>
<script>
!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');
</script>

Puoi farlo con gli iframe (ad es. Turning a topic into interactive fiction ;)) ma adottare questo codice specificamente come aggiunta opzionale a un post richiederà più lavoro.

Lavoro perfetto secondo me per un freelancer se hai budget.
Marketplace

In alternativa, cerca un altro provider che supporti gli iframe:

Weather widget — Add Weather widget to iFrame website (free and fast) forse? (Non posso garantire)

1 Mi Piace