Predictu
Casino Integration

Iframe Embedding

Predictu's prediction market experience embeds directly into your casino frontend as a seamless, self-contained module. Your players never leave your site — they discover markets, place trades, and manage their portfolio all within your existing casino interface.

Drop-in integration. A single embeddable widget delivers the complete prediction market experience. No frontend development required on your side — just embed, configure, and go live.

How It Works

The Predictu widget loads inside a secure iframe on your casino page. Once loaded, it communicates with your parent page in real time to synchronize player sessions, balances, and trade events. The widget handles all of the trading UI, market browsing, and portfolio management internally.

1
Embed the widget — Place the Predictu iframe on any page in your casino site where you want prediction markets to appear.
2
Initialize the session — Your page sends the player's identity and balance to the widget. The widget authenticates the player and loads your branded configuration automatically.
3
Players start trading — The widget is fully interactive. Players browse markets, view charts, place trades, and manage positions without ever leaving your site.
4
Stay in sync — The widget sends real-time updates back to your page whenever balances change, trades execute, or the player navigates. Your casino shell always has the latest information.

Fully Responsive Design

The widget adapts to any container size and works beautifully across desktop, tablet, and mobile. It handles its own scroll management internally, so there is no need to worry about conflicting scroll behaviors on your page.

  • Full-page mode — dedicate an entire page or tab to prediction markets for the richest experience.
  • Panel mode — embed the widget as one section of a larger page alongside your other casino products.
  • Mobile-optimized — on smaller screens, the widget automatically switches to a mobile-first layout with bottom navigation, optimized for touch interaction.

Secure Sandboxing

The iframe runs in a sandboxed environment with restricted permissions. It cannot redirect your parent page, access your cookies, or interact with other elements on your site. This isolation protects both your casino and your players.

  • The widget runs JavaScript and manages its own session within the sandbox.
  • External links open in a new tab rather than navigating away from your casino.
  • No access to your parent page's DOM, storage, or navigation.

Origin Whitelisting

Every operator configures a list of approved domains that are allowed to embed and communicate with the Predictu widget. Messages from unauthorized origins are silently rejected, preventing third parties from sending commands to the widget or intercepting data.

Only your domains are authorized. You control exactly which domains can embed the widget. Both production and staging domains can be registered, and you can update the list at any time through the Operator Dashboard.

Smooth Loading Experience

The widget signals your page when it is fully loaded and ready for interaction. This allows you to show a branded loading state in your own design language while the widget initializes, then seamlessly reveal the trading experience with no visible flash or layout shift.

Embed Mode vs. Standalone Mode

When embedded in your casino, the widget automatically activates embed mode:

FeatureStandaloneEmbedded in Your Casino
NavigationFull navigation bar and sidebarStreamlined — only the content area, no redundant chrome
AuthenticationBuilt-in login and registrationAutomatic — player identity provided by your casino
BrandingDefault Predictu themeYour casino's brand colors, logo, and design language
BalanceInternal balance managementSynchronized with your casino's wallet system
CommunicationStandalone operationReal-time events sent to your parent page

Cross-Browser Compatibility

The widget works in all modern browsers. For browsers that restrict third-party storage (such as Safari), the session-based authentication model ensures that players are always properly authenticated without relying on persistent cookies.

Key Benefits

  • Zero frontend development — the complete prediction market UI is built and maintained by Predictu.
  • Your brand, your experience — the widget takes on your casino's visual identity automatically.
  • Secure by default — sandboxed execution, origin whitelisting, and encrypted communication protect your players.
  • Always up to date — new features, markets, and improvements are delivered automatically without any changes on your side.