Share this link via
Or copy link
Bet The Flip (β)
Your points10
Win streak 2
Bonus ×2
Which one will you bet on?
How much would you like to bet?
3
You're betting 3 points on Heads.
Place your bet, then flip the coin!
Result
Your points10
Paste a single line of HTML on any blog, course page, or article to embed a working coin flip from flip-a-coin.com. Configure below, then copy the generated code.
<iframe> tag into your blog post, lesson page, or article.All parameters are optional. You can build any embed URL by hand:
https://flip-a-coin.com/widget/coin/?coin=fcc-yes-or-no&heads=Yes&tails=No&theme=auto&bg=teal&scale=1.2
| Parameter | Values | Default |
|---|---|---|
coin | any slug from the widget catalog above (e.g., fcc-heads-or-tails, fcc-yes-or-no, usd-25cent, usq-california, ccc-bitcoin) | fcc-heads-or-tails |
heads | any text, up to 30 characters. HTML is stripped. | coin’s default heads label |
tails | any text, up to 30 characters. HTML is stripped. | coin’s default tails label |
theme | auto | light | dark. auto follows the visitor’s OS color scheme. | auto |
bg | transparent, a palette key (white, offwhite, dark, teal, beige), or any 3/6-digit #hex color. Text color is auto-contrasted. | transparent |
scale | text-size multiplier between 0.7 and 2.0 (controls heading, result, and button text; the coin and footer stay the same size) | 1.0 |
| Use case | URL |
|---|---|
| Yes/No decision widget for a blog post | /widget/coin/?coin=fcc-yes-or-no |
| Custom labels for a classroom probability lesson | /widget/coin/?heads=Heads&tails=Tails&scale=1.4 |
| Sports site “coin toss” in dark theme | /widget/coin/?theme=dark&bg=dark |
| Bitcoin-themed game widget on a yellow background | /widget/coin/?coin=ccc-bitcoin&bg=%23fdf6e3 |
width:100%;max-width:400px on the <iframe> tag.<iframe>. You don’t need to add any scripts to your page.crypto.getRandomValues()). No personal data is collected. The widget runs cookie-less inside the iframe (Google Analytics is configured with client_storage:'none'). We do count anonymous flips and the referring host so site-wide statistics stay accurate.crypto.getRandomValues()), which is the same cryptographic-quality random source used for security tokens. Over millions of widget flips, the heads/tails distribution converges to 50/50 within fractions of a percentage point.postMessage result event so site owners can listen for flip outcomes. If you have a specific use case, let us know via Contact.




