mirror of https://github.com/sveltejs/svelte
parent
c30c97d970
commit
1509748b31
@ -1,18 +1,18 @@
|
||||
<script>
|
||||
let yes = false;
|
||||
let subscribed = false;
|
||||
</script>
|
||||
|
||||
<label>
|
||||
<input type=checkbox checked={yes}>
|
||||
<input type=checkbox checked={subscribed}>
|
||||
Yes! Send me regular email spam
|
||||
</label>
|
||||
|
||||
{#if yes}
|
||||
{#if subscribed}
|
||||
<p>Thank you. We will bombard your inbox and sell your personal details.</p>
|
||||
{:else}
|
||||
<p>You must opt in to continue. If you're not paying, you're the product.</p>
|
||||
{/if}
|
||||
|
||||
<button disabled={!yes}>
|
||||
<button disabled={!subscribed}>
|
||||
Subscribe
|
||||
</button>
|
Loading…
Reference in new issue