api-sports / public-roadmap

82 stars 5 forks source link

Multiple game widgets on a page #206

Closed lobbo232 closed 2 years ago

lobbo232 commented 2 years ago

Hi @api-sports, I have tried adding multiple instances of the game widget on to a single page but only the first one appears. Is it possible to do this? I'd like to show a select few games on a single page below each other.

Something like this:

<div id="wg-api-football-game"
    data-host="v3.football.api-sports.io"
    data-key="Your-Api-Key-Here"
    data-id="718243"
    data-theme=""
    data-refresh="15"
    data-show-errors="false"
    data-show-logos="true">
</div>
<div id="wg-api-football-game"
    data-host="v3.football.api-sports.io"
    data-key="Your-Api-Key-Here"
    data-id="718244"
    data-theme=""
    data-refresh="15"
    data-show-errors="false"
    data-show-logos="true">
</div>
<div id="wg-api-football-game"
    data-host="v3.football.api-sports.io"
    data-key="Your-Api-Key-Here"
    data-id="718245"
    data-theme=""
    data-refresh="15"
    data-show-errors="false"
    data-show-logos="true">
</div>
<script
    type="module"
    src="https://widgets.api-sports.io/2.0.3/widgets.js">
</script>
lobbo232 commented 2 years ago

@api-sports Any chance of a quick response to this question? If it's not possible I'll write my own implementation, but it would be good to know!

lobbo232 commented 2 years ago

@api-sports anybody able to answer this question this week? Should it be possible?

yooplait commented 2 years ago

Ce problème est indiqué dans la public roadmap : https://github.com/api-sports/public-roadmap/projects/1