Widgets en direct

Classement, dernière course et prochaine course — en direct pour MotoGP, Moto2 et Moto3.

Thème

Intégrez ces widgets

Utilisée uniquement pour remplir le code ci-dessous. Elle n'est jamais envoyée ni enregistrée. Obtenir une clé

Widgets
Thème
<iframe
  data-racingapis-embed="ra45828a1595fd6d7d"
  src="https://racingapis.com/widgets/embed/default/"
  width="100%"
  height="1200"
  style="border:0"
  title="Widgets en direct MotoGP — Racing APIs"
></iframe>
<script>
  (function () {
    var iframe = document.querySelector("iframe[data-racingapis-embed=\"ra45828a1595fd6d7d\"]");
    if (!iframe) return;
    var KEY = "YOUR_RAPIDAPI_KEY";
    var SITE_ORIGIN = "https://racingapis.com";
    window.addEventListener("message", function (event) {
      if (event.source !== iframe.contentWindow) return;
      var data = event.data;
      if (!data) return;
      if (data.type === "racingapis:widget-ready") {
        iframe.contentWindow.postMessage({ type: "racingapis:widget-key", key: KEY }, SITE_ORIGIN);
        return;
      }
      if (data.type !== "racingapis:widget-height" || !isFinite(data.height)) return;
      iframe.style.height = Math.max(320, Math.min(20000, Math.ceil(data.height))) + "px";
    });
  })();
</script>

Votre clé est visible par toute personne qui consulte le code source de votre page.

Les deux versions ont besoin de JavaScript pour transmettre votre clé aux widgets.

Championship standings

Loading…

Latest race

Loading…

Next race

Loading…