Clean up, add API

This commit is contained in:
AndrewTrieu
2023-03-10 12:43:41 +02:00
parent 4f94f70a9b
commit 7a76d625e2
10 changed files with 73 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
<% layout("./layouts/layout.eta") %>
<h1>Your answer is not correct.</h1>
<h2>Correct answer:</h2>
<% if (it.data && it.data.length > 0) { %>
<% it.data.forEach(item => { %>
<%= item %>
<% }); %>
<% } else { %>
<p>Correct options are not found.</p>
<% } %>
<a href="/quiz/<%= it.tid %>">Next question</a>