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.
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.
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.
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:
| Feature | Standalone | Embedded in Your Casino |
|---|---|---|
| Navigation | Full navigation bar and sidebar | Streamlined — only the content area, no redundant chrome |
| Authentication | Built-in login and registration | Automatic — player identity provided by your casino |
| Branding | Default Predictu theme | Your casino's brand colors, logo, and design language |
| Balance | Internal balance management | Synchronized with your casino's wallet system |
| Communication | Standalone operation | Real-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.
