hinweis erstellt
This commit is contained in:
parent
4d867a55dc
commit
8aecc86dc9
2 changed files with 41 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -4,3 +4,6 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
venv/
|
venv/
|
||||||
flask_app/venv/
|
flask_app/venv/
|
||||||
|
__pycache__/
|
||||||
|
.pycache/
|
||||||
|
*.py[cod]
|
||||||
|
|
|
||||||
|
|
@ -205,6 +205,37 @@ STYLE = """
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
details.hint {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.hint summary {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.82rem 1.6rem;
|
||||||
|
color: #fff;
|
||||||
|
background: rgba(255, 255, 255, 0.14);
|
||||||
|
font-size: 0.82rem;
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
cursor: pointer;
|
||||||
|
list-style: none;
|
||||||
|
transition: background 0.2s, transform 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.hint summary::-webkit-details-marker {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.hint summary:hover {
|
||||||
|
background: #0057c2;
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
details.hint p {
|
||||||
|
margin-top: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
ol {
|
ol {
|
||||||
padding-left: 1.4rem;
|
padding-left: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
@ -364,6 +395,13 @@ def raum(raum_id):
|
||||||
html += "<p>" + escape(r["beschreibung"]) + "</p>"
|
html += "<p>" + escape(r["beschreibung"]) + "</p>"
|
||||||
html += '<form method="post">'
|
html += '<form method="post">'
|
||||||
html += '<p class="clue">' + escape(r["raetsel_frage"]) + "</p>"
|
html += '<p class="clue">' + escape(r["raetsel_frage"]) + "</p>"
|
||||||
|
if raum_id == "nordkurve":
|
||||||
|
html += (
|
||||||
|
'<details class="hint">'
|
||||||
|
'<summary>Hinweis</summary>'
|
||||||
|
'<p>Erwins Schild zeigt kein zufälliges Fanplakat, sondern das Vereinsmotto.</p>'
|
||||||
|
'</details>'
|
||||||
|
)
|
||||||
html += '<label for="antwort">Deine Antwort</label>'
|
html += '<label for="antwort">Deine Antwort</label>'
|
||||||
html += '<input id="antwort" name="antwort" autocomplete="off">'
|
html += '<input id="antwort" name="antwort" autocomplete="off">'
|
||||||
html += "<button>OK</button>"
|
html += "<button>OK</button>"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue