Add revelation

This commit is contained in:
Sauer 2019-04-18 17:09:51 +02:00
parent 67aa598385
commit 5e1bfcf818
4 changed files with 31 additions and 1 deletions

View File

@ -341,3 +341,9 @@ def admin_solution():
file_data = convert_csv_to_list_of_lists(solutionfile) file_data = convert_csv_to_list_of_lists(solutionfile)
return render_template('admin_solution.html', title='Sortierhut', file_data=file_data) 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')

View File

@ -18,7 +18,8 @@
<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('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('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('houses') %} class="active" {% endif %}><a href="{{ url_for('houses') }}">Häuser</a></li>
</ul> <li {% if request.path == url_for('reveal_solution') %} class="active" {% endif %}><a href="{{ url_for('reveal_solution') }}">AUFLÖSUNG</a></li>
</ul>
</nav> </nav>
{% block content %} {% block content %}
{% endblock %} {% endblock %}

View File

@ -1,6 +1,10 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1>Sortierhut&nbsp;&ndash; Das Spiel</h1> <h1>Sortierhut&nbsp;&ndash; 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> <div>
<h2>Was ist das überhaupt?</h2> <h2>Was ist das überhaupt?</h2>
<p>Herzlich willkommen an der Informatikfakultät der Uni Bamberg!<br> <p>Herzlich willkommen an der Informatikfakultät der Uni Bamberg!<br>

View 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 %}