Find the treasure
A new board of hidden tiles every week. Reveal a few each day, collect a set, win the prize.
The games
Every game opens in the player’s XQSTORA hub, inside this site. The server decides each prize before the animation starts.
NewPlayTreasure hunt
A weekly board of hidden tiles. A few reveals a day; collect a set of matching symbols to win its prize.
PlayScratch card
Scratch the foil off three panels and see what is underneath.
PlayPrize wheel
One spin, and the wheel slows to a stop on the prize it was always going to.
PlayMystery box
A closed box, a press, and the lid comes off to show what was inside.
PlayPick a box
A row of boxes, one choice. The others open after to show what they held.
PlayTrivia
A few timed questions. Every right answer scores, checked on the server.
Who is playing
Three stand-in players, each known to XQSTORA by the id this casino gives them. The choice is kept in this browser.
How it works for an operator
Three steps, the same on any site: what this demo does is what an operator’s own site does.
- Launch
The operator’s server signs POST /v1/operator/launch with its API key, naming the brand and its own id for the player. XQSTORA answers with a URL.
- Frame
The page puts that URL in an iframe. The player page only lets the brand’s own origins frame it, and never sees the API key.
- Listen
The frame posts xq:ready, xq:resize, xq:event and xq:closed. The page checks the sender, sizes the frame and reacts to a reward or a level.
window.addEventListener('message', (event) => {
if (event.origin !== playerOrigin) return;
if (event.source !== frame.contentWindow) return;
const message = event.data;
if (message.type === 'xq:resize') frame.style.height = message.height + 'px';
if (message.type === 'xq:event') celebrate(message.name, message.data);
if (message.type === 'xq:closed') offerRelaunch();
});