Adding correctness background color

This commit is contained in:
Fabian Stamm 2019-09-11 18:10:39 +02:00
parent f4a8439aee
commit f091b318d4

View File

@ -36,6 +36,7 @@
</script>
{#if question}
<div style={"background:" + (showResult ? (isCorrect ? "rgba(92, 255, 92, 0.30)" : "rgba(255, 92, 92, 0.46)") : "") + ";"}>
<div class="margin">
<h2>{@html question.title}</h2>
</div>
@ -58,6 +59,7 @@
</button>
{/if}
</div>
</div>
{/if}
<style>