Operator Integration Instructions
Integration Library
Usage
<!DOCTYPE html>
<html>
<head>
<title>IMG Arena Event Centre</title>
<meta charset="UTF-8" />
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div id="img-arena-event-centre"></div>
<script src="https://unpkg.com/@img-arena/front-row-seat"></script>
<script>
const { MessageTopics } = frontRowSeat.eventCentreUtils;
const eventCentreInstance = frontRowSeat.eventCentre({
operator: "OPERATOR-NAME",
sport: "ufc",
targetModule: "full",
eventId: "EventID",
version: "version number",
targetElementSelector: "#img-arena-event-centre",
language: "en"
});
eventCentreInstance.on(MessageTopics.CONTEXT_UPDATE, msg => {
console.log(msg);
});
eventCentreInstance.on(MessageTopics.HANDSHAKE_FAILED, () => {
console.log("Handshake failed");
});
</script>
</body>
</html>Target Element
Authorisation
Initialisation
Subscribing
Emitting
Languages
Theme
Options
Option name
Description
Default
Example
Last updated
Was this helpful?