änderung dateien + link änderung
This commit is contained in:
parent
54fbf949e4
commit
4645c41450
3 changed files with 13 additions and 6 deletions
15
app.py
15
app.py
|
|
@ -4,19 +4,26 @@ app = Flask(__name__)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
|
@app.route("/app/")
|
||||||
def hello():
|
def hello():
|
||||||
return render_template("index.html")
|
return render_template("index.html")
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/raetsel", methods=["GET", "POST"])
|
||||||
|
@app.route("/raetsel/", methods=["GET", "POST"])
|
||||||
|
@app.route("/app/raetsel", methods=["GET", "POST"])
|
||||||
|
@app.route("/app/raetsel/", methods=["GET", "POST"])
|
||||||
@app.route("/frage", methods=["GET", "POST"])
|
@app.route("/frage", methods=["GET", "POST"])
|
||||||
@app.route("/frage/", methods=["GET", "POST"])
|
@app.route("/frage/", methods=["GET", "POST"])
|
||||||
def frage():
|
@app.route("/app/frage", methods=["GET", "POST"])
|
||||||
|
@app.route("/app/frage/", methods=["GET", "POST"])
|
||||||
|
def raetsel():
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
if request.form["antwort"] == "4":
|
if request.form["antwort"] == "4":
|
||||||
return render_template("frage.html", ergebnis="Richtig! Das Stadiontor öffnet sich.")
|
return render_template("raetsel.html", ergebnis="Richtig! Das Stadiontor öffnet sich.")
|
||||||
return render_template("frage.html", ergebnis="Leider falsch.")
|
return render_template("raetsel.html", ergebnis="Leider falsch.")
|
||||||
|
|
||||||
return render_template("frage.html")
|
return render_template("raetsel.html")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<a class="logo" href="/app/">Glück Auf</a>
|
<a class="logo" href="/app/">Glück Auf</a>
|
||||||
<a href="/app/frage">Stadiontor</a>
|
<a href="/app/raetsel">Stadiontor</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
Auf einer blauen Tafel steht ein Hinweis:
|
Auf einer blauen Tafel steht ein Hinweis:
|
||||||
Der erste Code steckt in der Zahl, die jeder Fan sofort erkennt.
|
Der erste Code steckt in der Zahl, die jeder Fan sofort erkennt.
|
||||||
</p>
|
</p>
|
||||||
<a class="btn" href="/app/frage">Zum Stadiontor</a>
|
<a class="btn" href="/app/raetsel">Zum Stadiontor</a>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue