using meaningfule variable name

pull/5700/head
AngangGuo 5 years ago committed by GitHub
parent c30c97d970
commit 1509748b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,18 +1,18 @@
<script> <script>
let yes = false; let subscribed = false;
</script> </script>
<label> <label>
<input type=checkbox checked={yes}> <input type=checkbox checked={subscribed}>
Yes! Send me regular email spam Yes! Send me regular email spam
</label> </label>
{#if yes} {#if subscribed}
<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={!subscribed}>
Subscribe Subscribe
</button> </button>

Loading…
Cancel
Save