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> </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>