Adding correctness background color
This commit is contained in:
parent
f4a8439aee
commit
f091b318d4
@ -36,6 +36,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if question}
|
{#if question}
|
||||||
|
<div style={"background:" + (showResult ? (isCorrect ? "rgba(92, 255, 92, 0.30)" : "rgba(255, 92, 92, 0.46)") : "") + ";"}>
|
||||||
<div class="margin">
|
<div class="margin">
|
||||||
<h2>{@html question.title}</h2>
|
<h2>{@html question.title}</h2>
|
||||||
</div>
|
</div>
|
||||||
@ -58,6 +59,7 @@
|
|||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
Reference in New Issue
Block a user