Skip to content

Commit

Permalink
progress bar 60 seconds, <br> fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thatsKevinJain committed Feb 2, 2024
1 parent c049a32 commit ea5fa9b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
14 changes: 7 additions & 7 deletions src/lib/game.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/routes/results/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@
{#if data.score.oldResults}
{#if data.score.oldResults.effective_score > data.score.results.effective_score}
<p class="score-text">your score has decreased by <b>{data.score.oldResults.effective_score - data.score.results.effective_score}</b> points from the first time you gave the test. Previous score: <b>{data.score.oldResults.effective_score}</b> / {data.score.oldResults.max_score}</p>
<p class="score-text">This suggests that you are making choices associated with less happiness and overall wellbeing.</p>
<p class="score-text">This suggests that you are making fewer choices associated with happiness and overall wellbeing.</p>
{:else}
<p class="score-text">your score has increased by <b>{data.score.results.effective_score - data.score.oldResults.effective_score}</b> points from the first time you gave the test. Previous score: <b>{data.score.oldResults.effective_score}</b> / {data.score.oldResults.max_score}</p>
<p class="score-text">This suggests that you are making choices associated with greater happiness and overall wellbeing!</p>
<p class="score-text">This suggests that you are making more choices associated with greater happiness and overall wellbeing!</p>
{/if}
{/if}

Expand All @@ -92,8 +92,10 @@
<div class="suggestion-block">
<div class="suggestion" in:fly={{y:300}}>
{#each data.score.llmResponse.split("\\n") as res}
{res}
<br>
{#if res != ""}
{res}
<br>
{/if}
{/each}
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/results/ProgressBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let text = "Loading responses from AI...";
onMount(() => {
const interval = 30; // seconds
const interval = 60; // seconds
const steps = 100;
const stepSize = (interval * 1000) / steps;
Expand Down

0 comments on commit ea5fa9b

Please sign in to comment.