malé úpravy
This commit is contained in:
parent
64fa6635d6
commit
145e49b837
|
@ -18,7 +18,7 @@
|
|||
}
|
||||
|
||||
let control = null // if true => spravne if false spatne
|
||||
$: console.log(`kontrola: ${control}`)
|
||||
//$: console.log(`kontrola: ${control}`)
|
||||
|
||||
$: if (control === true) clientAnswers.points += 2 //body bodování
|
||||
|
||||
|
@ -46,7 +46,6 @@
|
|||
$: page = gameData.questions[clientAnswers.pos].type === 'CHOICE' ? components[vals()] : page
|
||||
|
||||
const vals = () => {
|
||||
console.log(answers)
|
||||
let con = false
|
||||
let result
|
||||
answers.forEach((q) => {
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full flex justify-center h-fit size">
|
||||
<div class="w-full relative bottom-[170px] flex justify-center h-fit size">
|
||||
{#if control}
|
||||
<span>správně</span>
|
||||
<span style="color:greenyellow">správně</span>
|
||||
{:else if control !== null}
|
||||
<span>špatně</span>
|
||||
<span style="color:red">špatně</span>
|
||||
{/if}
|
||||
</div>
|
||||
</Section>
|
||||
|
|
Loading…
Reference in New Issue