Skip to content

Commit ce0ba13

Browse files
committed
more verbose playfield in the beginning
1 parent 31c13ad commit ce0ba13

File tree

4 files changed

+37
-20
lines changed

4 files changed

+37
-20
lines changed

css/playfield.css

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,6 @@
2727
}
2828

2929
/* ----- playfield.js ----- */
30-
.playfield .match{
31-
}
32-
.playfield .match::after {
33-
content: "✓";
34-
padding-left: 1em;
35-
}
36-
.playfield .nomatch {
37-
}
38-
.playfield .nomatch.ok {
39-
background-color: {{ site.data.colors.fails }};
40-
}
41-
.playfield .match.fail {
42-
background-color: {{ site.data.colors.fails }};
43-
}
44-
.playfield .error {
45-
background-color: {{ site.data.colors.fails }};
46-
}
4730

4831
.playfield ul {
4932
margin-bottom: 0em;
@@ -72,4 +55,38 @@
7255

7356
.playfield .experiment.match {
7457

58+
}
59+
60+
/* --- feedback if matches or not --- */
61+
.playfield li:after {
62+
padding-left: 2em;
63+
}
64+
.playfield .match::after {
65+
content: "✓";
66+
}
67+
68+
.playfield .nomatch {
69+
}
70+
.playfield .nomatch.ok {
71+
background-color: {{ site.data.colors.fails }};
72+
}
73+
.playfield .match.fail {
74+
background-color: {{ site.data.colors.fails }};
75+
}
76+
.playfield .error {
77+
background-color: {{ site.data.colors.fails }};
78+
}
79+
80+
/* --- more description --- */
81+
.playfield.verbose .match.ok:after {
82+
content: "✓ gefunden";
83+
}
84+
.playfield.verbose .match.fail:after {
85+
content: "✓ gefunden, soll nicht passen";
86+
}
87+
.playfield.verbose .nomatch.ok:after {
88+
content: "soll gefunden werden";
89+
}
90+
.playfield.verbose .nomatch.fail:after {
91+
content: "ok, nicht gefunden";
7592
}

tutorial/01-buchstaben-01.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Versuche es selbst und schreibe den Buchstaben
88
<span class="regex">a</span> in das Feld unten.
99
</p>
10-
<div class="playfield">
10+
<div class="playfield verbose">
1111
<input type="text" value="" class="regex" reference="a">
1212
<div class="message"></div>
1313
<ul class="examples">

tutorial/01-buchstaben-02.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Nun versuche, den Vokal zu finden, der in allen weißen aber nicht in den rot markierten Worten vorkommt.
77
Gib den Buchstaben unten ein und überprüfe seine Auswahl.
88
</p>
9-
<div class="playfield">
9+
<div class="playfield verbose">
1010
<input type="text" value="" class="regex" reference="e">
1111
<div class="message"></div>
1212
<ul class="examples">

tutorial/02-buchstabenfolgen-01.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Markiere die Zeilen.
99
Gib dazu die Zeichenfolge ein.
1010
</p>
11-
<div class="playfield">
11+
<div class="playfield verbose">
1212
<input type="text" value="" class="regex" reference="nan">
1313
<div class="message"></div>
1414
<ul class="examples">

0 commit comments

Comments
 (0)