The Daily Thunder

Widget Documentation

Learn how to embed The Daily Thunder lottery widgets on your website

Table of Contents

Overview

The Daily Thunder offers white-label lottery widgets that you can embed on your website. Once you become a partner through our partner program, you'll receive a unique referral code that allows you to:

  • Embed a fully functional lottery widget on your site
  • Maintain your own branding and visual identity
  • Earn 1% commission on all winnings from your players
  • Offer the same proven Bitcoin Lightning lottery experience

Before You Start

To use these widgets, you must first register as a partner by paying the 100K sats onboarding fee. This gives you a custom referral code (e.g., ACME123) that powers your branded widgets.

Getting Started

Once you're registered as a partner, your widgets will be available at:

https://playtdt.com/widget/YOUR_CODE

Replace YOUR_CODE with your actual referral code. For example, if your code is ACME123, your widget URL would be:

https://playtdt.com/widget/ACME123

Widget Demo

See the lottery widget in action below. This is a fully functional demo showing how the widget will look and work on your website:

Live Demo

This is a real widget - you can interact with it and see exactly what your visitors will experience. The widget automatically adapts to your branding (logo, colors) when you become a partner.

Customization Options

As a partner, you can customize your widget with:

  • Your own brand name and logo
  • Custom theme colors to match your site
  • Your Lightning address for commission payments

Visit the Partner Program page to get started.

iFrame Embedding

The most common way to embed the lottery widget is using an iFrame. This provides a secure, isolated environment for the lottery while maintaining your site's design.

Basic iFrame Implementation

<iframe 
    src="https://playtdt.com/widget/YOUR_CODE"
    width="100%" 
    height="600"
    frameborder="0"
    style="border: none; border-radius: 8px;"
    title="Daily Thunder Lottery">
</iframe>

Responsive iFrame

For mobile-friendly integration, use this responsive approach:

<div style="position: relative; width: 100%; height: 0; padding-bottom: 75%;">
    <iframe 
        src="https://playtdt.com/widget/YOUR_CODE"
        style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: 8px;"
        title="Daily Thunder Lottery">
    </iframe>
</div>

Height Considerations

The lottery widget requires a minimum height of 500px to display properly. For optimal user experience, we recommend 600px or more.

Customization

Your widget automatically displays your custom branding as configured during partner registration:

  • Logo: Your brand logo appears in the widget header
  • Brand Name: Your company name is displayed prominently
  • Colors: The widget maintains The Daily Thunder's orange theme while highlighting your brand
  • Referral Tracking: All players are automatically tagged with your referral code

Custom Styling

To update your logo, brand name, or other branding elements, contact our support team or use the partner dashboard (coming soon).

Security

Our widgets are designed with security and trust in mind:

  • HTTPS Only: All widgets are served over secure HTTPS connections
  • CSP Compatible: Works with Content Security Policy headers
  • No Data Collection: We don't track your website visitors
  • Lightning Security: Same security model as the main Daily Thunder platform

Content Security Policy

If your site uses CSP, add these directives:

frame-src 'self' https://playtdt.com;
connect-src 'self' https://playtdt.com;

Domain Restrictions

For additional security, you can specify allowed domains during partner registration. This prevents your widget from being embedded on unauthorized sites.

Troubleshooting

Common Issues

Widget Not Loading

  • Verify your referral code is correct and active
  • Check that your partner account is in good standing
  • Ensure you're using HTTPS (not HTTP)
  • Check browser console for security errors

iFrame Display Issues

  • Ensure minimum height of 500px
  • Check for conflicting CSS styles
  • Verify your site allows iframes
  • Test in different browsers

Payment Processing

  • Lightning payments are handled securely within the widget
  • Users don't need to leave your site to complete payments
  • All transactions are verified on the Bitcoin network
  • Commission payments are automatic and instant

Testing Your Integration

Before going live:

  1. Test the widget on your staging/development site
  2. Verify your branding appears correctly
  3. Test the payment flow with a small amount
  4. Confirm commission payments reach your Lightning address
  5. Test across different devices and browsers

Need Help?

If you encounter issues not covered here, please contact our support team. Include your referral code and a description of the problem for faster assistance.