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