1
0
Fork 0
mirror of https://github.com/Findus23/se-simulator.git synced 2024-09-19 15:53:45 +02:00
se-simulator/templates/quiz.html

58 lines
1.6 KiB
HTML
Raw Normal View History

2018-03-27 20:41:57 +02:00
{% extends "base.html" %}
{% block body %}
2018-03-28 15:01:16 +02:00
<header>
<h1>Stackexchange-Quiz</h1>
</header>
<div class="quizselector">
<input title="guess the correct site" id="siteselector" data-mode="quiz" data-id="{{ question.id }}"
autocomplete='off'>
<button id="check">Check</button>
</div>
<div id="result">
<div id="correct">
Correct!
</div>
<div id="incorrect">
Incorrect!
</div>
</div>
<div id="stats">
<div>Total<br><span>{{ stats.total }}</span></div>
<div>Correct<br><span>{{ stats.correct }}</span></div>
<div>Ratio<br><span>{{ '%d' | format((stats.correct / stats.total * 100) if stats.correct > 0 else 0) }}</span>%</div>
<button id="retry">Retry</button>
</div>
<header class="siteheader"
style="">
</header>
2018-03-27 20:41:57 +02:00
<h1>{{ question.title.text }}</h1>
<div class="content question">
2018-03-28 15:01:16 +02:00
<div class="vote" data-id="{{ question.id }}" data-type="question">
2018-03-27 20:41:57 +02:00
<a class="up"></a>
<div>{{ question.upvotes - question.downvotes }}</div>
<a class="down"></a>
</div>
<div class="contentbox">
{% for paragraph in question.text.split("\n") %}
<p>{{ paragraph }}</p>
{% endfor %}
<div class="contentfooter">
<div class="authorbox">
asked {{ prettydate(question.datetime) }}
<br>
{{ question.user.username }}
</div>
</div>
</div>
</div>
{% endblock %}