Spaces:
Runtime error
Runtime error
add disclaimer
Browse files
frontend/src/routes/index.svelte
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
|
| 14 |
const totalTime = 1000;
|
| 15 |
const apiUrl = import.meta.env.MODE === 'development' ? 'http://localhost:7860/' : '';
|
| 16 |
-
|
| 17 |
let promptsData: PromptsData;
|
| 18 |
let completedPrompts: SuccessPrompt[] = [];
|
| 19 |
let currPromptIndex: number;
|
|
@@ -116,7 +116,9 @@
|
|
| 116 |
// showMessage(`Not in word list`)
|
| 117 |
// return
|
| 118 |
// }
|
| 119 |
-
|
|
|
|
|
|
|
| 120 |
|
| 121 |
const answerLetters: (string | null)[] = answer.split('');
|
| 122 |
// first pass: mark correct ones
|
|
@@ -278,6 +280,21 @@
|
|
| 278 |
{/each}
|
| 279 |
</div>
|
| 280 |
<Keyboard on:keyup={({ detail }) => onKey(detail)} bind:letterStates />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
</div>
|
| 282 |
{/if}
|
| 283 |
|
|
|
|
| 13 |
|
| 14 |
const totalTime = 1000;
|
| 15 |
const apiUrl = import.meta.env.MODE === 'development' ? 'http://localhost:7860/' : '';
|
| 16 |
+
let allowShare = true;
|
| 17 |
let promptsData: PromptsData;
|
| 18 |
let completedPrompts: SuccessPrompt[] = [];
|
| 19 |
let currPromptIndex: number;
|
|
|
|
| 116 |
// showMessage(`Not in word list`)
|
| 117 |
// return
|
| 118 |
// }
|
| 119 |
+
if (allowShare) {
|
| 120 |
+
postProcess(currentRow);
|
| 121 |
+
}
|
| 122 |
|
| 123 |
const answerLetters: (string | null)[] = answer.split('');
|
| 124 |
// first pass: mark correct ones
|
|
|
|
| 280 |
{/each}
|
| 281 |
</div>
|
| 282 |
<Keyboard on:keyup={({ detail }) => onKey(detail)} bind:letterStates />
|
| 283 |
+
<footer class="max-w-md mx-auto p-3">
|
| 284 |
+
<details class="text-xs cursor-pointer">
|
| 285 |
+
<summary class="my-1">
|
| 286 |
+
<span>Disclaimer</span>
|
| 287 |
+
</summary>
|
| 288 |
+
<p>
|
| 289 |
+
This demo collects the guesses to help with a research project. The demo stores no
|
| 290 |
+
personal data, such as your IP address, email, or account, only your guesses.
|
| 291 |
+
</p>
|
| 292 |
+
<label class="py-3 flex">
|
| 293 |
+
<input type="checkbox" bind:checked={allowShare} />
|
| 294 |
+
<span class="mx-1">Please uncheck to disable sharing {allowShare}</span>
|
| 295 |
+
</label>
|
| 296 |
+
</details>
|
| 297 |
+
</footer>
|
| 298 |
</div>
|
| 299 |
{/if}
|
| 300 |
|