Add revelation
This commit is contained in:
parent
67aa598385
commit
5e1bfcf818
@ -341,3 +341,9 @@ def admin_solution():
|
||||
file_data = convert_csv_to_list_of_lists(solutionfile)
|
||||
return render_template('admin_solution.html', title='Sortierhut', file_data=file_data)
|
||||
|
||||
|
||||
@app.route('/reveal_solution')
|
||||
def reveal_solution():
|
||||
"""Display the correct solution."""
|
||||
return render_template('reveal_solution.html', title='Sortierhut')
|
||||
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
<li {% if request.path == url_for('access_answers') %} class="active" {% endif %}><a href="{{ url_for('access_answers') }}">Meine Antworten</a></li>
|
||||
<li {% if request.path == url_for('submit_solution') %} class="active" {% endif %}><a href="{{ url_for('submit_solution') }}">Lösung einreichen</a></li>
|
||||
<li {% if request.path == url_for('houses') %} class="active" {% endif %}><a href="{{ url_for('houses') }}">Häuser</a></li>
|
||||
<li {% if request.path == url_for('reveal_solution') %} class="active" {% endif %}><a href="{{ url_for('reveal_solution') }}">AUFLÖSUNG</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% block content %}
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Sortierhut – Das Spiel</h1>
|
||||
<div>
|
||||
<h1>BREAKING NEWS: DIE AUFLÖSUNG IST ONLINE!</h1>
|
||||
<h3>Erfahre <a href="{{url_for('reveal_solution') }}">hier</a> die Lösung und wer gewonnen hat!</h3>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Was ist das überhaupt?</h2>
|
||||
<p>Herzlich willkommen an der Informatikfakultät der Uni Bamberg!<br>
|
||||
|
||||
19
templates/reveal_solution.html
Normal file
19
templates/reveal_solution.html
Normal file
@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Die Auflösung</h1>
|
||||
<div>
|
||||
<p>Die relevante Frage war der HTTP-Statuscode. Das Haus wird durch die letzte Ziffer der jeweiligen Nummer bestimmt (Statuscode modulo 100):</p>
|
||||
</div>
|
||||
<ul>
|
||||
<li>0 (200, 300): <strong class="knuth">Knuth</strong></li>
|
||||
<li>1 (301, 451): <strong class="lovelace">Lovelace</strong></li>
|
||||
<li>2 (402, 502): <strong class="turing">Turing</strong></li>
|
||||
<li>4 (404): <strong class="hopper">Hopper</strong></li>
|
||||
<li>(408, 418, 450): <strong class="lamarr">Lamarr</strong></li>
|
||||
</ul>
|
||||
<div>
|
||||
<p>Und gewonnen hat ... die Person mit der <strong>Id a6ad9c3c</strong>. Gratulation!</p>
|
||||
<p>Liebe*r Gewinner*in! Du kannst dir deinen Preis während der Öffnungszeiten (Mo bis Do 10 bis 16 Uhr) im Fachschaftsbüro WE5/02.104 abholen. Mehr Informationen darüber, wie du uns erreichen kannst, findest du <a href="https://www.uni-bamberg.de/wiai/fs">hier</a>.</p>
|
||||
<p>Danke an alle, die mitgespielt haben! Wir hoffen, ihr hattet Spaß dabei.</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
x
Reference in New Issue
Block a user