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