@jac said in Display tweets in widget [NodeBB]:
@jac for example league table widget code.
<div id=โfs-standingsโ></div> <script> (function (w,d,s,o,f,js,fjs) { w[โfsStandingsEmbedโ]=o;w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) }; js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs); }(window, document, โscriptโ, โmwโ, โhttps://cdn.footystats.org/embeds/standings.jsโ)); mw(โparamsโ, { leagueID: 6088 }); </script>
Next matchโฆ
<div id="fs-upcoming"></div>
<script> (function (w,d,s,o,f,js,fjs) { w['fsUpcomingEmbed']=o;w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) }; js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs); }(window, document, 'script', 'fsUpcoming', 'https://cdn.footystats.org/embeds/upcoming.js')); fsUpcoming('params', { teamID: 3143 });
</script>