Skip to content

Commit 6d9fc39

Browse files
update
1 parent fb24691 commit 6d9fc39

6 files changed

Lines changed: 418 additions & 92 deletions

File tree

css/monty_hall.css

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
.doors {
2+
display: flex;
3+
gap: 1rem;
4+
justify-content: center;
5+
padding-bottom: 2rem;
6+
/* margin-top: 2rem; */
7+
}
8+
9+
.door {
10+
align-items: center;
11+
background: var(--color-1);
12+
border: 0.1rem solid var(--color-2);
13+
border-radius: 1rem;
14+
color: var(--color-3);
15+
cursor: pointer;
16+
display: flex;
17+
font-size: var(--fs-h6);
18+
height: 15rem;
19+
justify-content: center;
20+
transition: transform 0.5s;
21+
user-select: none;
22+
width: 8rem;
23+
}
24+
25+
.door:hover {
26+
transform: scale(1.05);
27+
}
28+
29+
.door.selected {
30+
border: 0.3rem solid var(--color-2);
31+
transform: scale(1.05);
32+
}
33+
34+
.door.open {
35+
background: var(--color-2);
36+
font-size: 3rem;
37+
}
38+
39+
.door.reveal-highlight {
40+
background: var(--color-4);
41+
}
42+
43+
.door.switch-choice {
44+
border: 0.3rem solid var(--color-2);
45+
transform: scale(1.05);
46+
}
47+
48+
.controls {
49+
display: flex;
50+
gap: 1rem;
51+
justify-content: center;
52+
}
53+
54+
.controls button {
55+
background: var(--color-4);
56+
border: 0.1rem solid var(--color-2);
57+
border-radius: 1rem;
58+
/* color: var(--color-2); */
59+
cursor: pointer;
60+
flex: 1;
61+
max-width: 12rem;
62+
padding: 0.6rem 1rem;
63+
text-align: center;
64+
}
65+
66+
#plot {
67+
/* width: 600px; */
68+
/* margin: 300px auto; */
69+
}
70+
71+
#game-message {
72+
align-items: center;
73+
background: var(--color-4);
74+
border-radius: 0.5rem;
75+
/* color: var(--color-2); */
76+
display: flex;
77+
height: 3rem;
78+
justify-content: center;
79+
min-height: 2rem;
80+
text-align: center;
81+
}

element/nav.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,20 @@
3434
</li>
3535
</ul>
3636
</li>
37-
<li>
38-
<a
37+
<li class="nav-dropdown">
38+
<button
39+
class="nav-dropdown-toggle"
3940
data-i18n="nav_statistics"
40-
href="/page/statistics/statistics.html"
41-
></a>
41+
type="button"
42+
></button>
43+
<ul class="nav-page-sub">
44+
<li>
45+
<a
46+
data-i18n="nav_statistics_monty_hall"
47+
href="/page/statistics/monty_hall.html"
48+
></a>
49+
</li>
50+
</ul>
4251
</li>
4352
<li class="nav-dropdown">
4453
<button

language/de.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"nav_finance": "Finanzen",
77
"nav_finance_credit_risk_modelling": "Kreditrisikomodellierung",
88
"nav_statistics": "Statistik",
9+
"nav_statistics_monty_hall": "Monty Hall",
910
"nav_coding": "Programmierung",
1011
"nav_coding_git": "Git",
1112
"nav_coding_html": "HTML",
@@ -30,8 +31,6 @@
3031
"economics_text": "<em>Res tantum valet quantum vendi potest</em>.<sup>1</sup>",
3132
"economics_footnote": "Fußnoten",
3233
"economics_footnote_1": "<sup>1</sup> Eine Sache ist nur so viel wert, wie jemand anderes dafür zu zahlen bereit ist.",
33-
"statistics_title": "Statistik",
34-
"statistics_text": "Hier gibt es noch nichts zu sehen.",
3534
"coding_git_title": "Git",
3635
"coding_git_text": "<strong>Git</strong> ist eine Software. Genauer gesagt ist Git ein quelloffenes, verteiltes Versionskontrollsystem. Im Gegensatz dazu ist <strong>GitHub</strong> ein Dienst. Genauer gesagt ist GitHub eine zentralisierte Plattform zum Hosten von Quellcode für die Zusammenarbeit an Git-Repositorys.",
3736
"coding_git_code_title": "Befehle",

language/en.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"nav_finance": "Finance",
77
"nav_finance_credit_risk_modelling": "Credit Risk Modelling",
88
"nav_statistics": "Statistics",
9+
"nav_statistics_monty_hall": "Monty Hall",
910
"nav_coding": "Coding",
1011
"nav_coding_git": "Git",
1112
"nav_coding_html": "HTML",
@@ -30,8 +31,6 @@
3031
"economics_footnote_1": "<sup>1</sup> A thing is worth only what someone else will pay for it.",
3132
"credit_risk_modelling_title": "Credit Risk Modelling",
3233
"credit_risk_modelling_text": "<a href='https://github.com/RandomCollection/Credit-Risk-Modelling' target='_blank' rel='noopener noreferrer'>Credit Risk Modelling</a> is a Python library providing a curated selection of modules to perform credit risk modelling analytics.",
33-
"statistics_title": "Statistics",
34-
"statistics_text": "There is nothing to see here yet.",
3534
"coding_git_title": "Git",
3635
"coding_git_text": "<strong>Git</strong> is a software. In particular, Git is an open source, distributed version control system. In contrast, <strong>GitHub</strong> is a service. In particular, GitHub is a centralised source code hosting platform for collaborating on Git repositories.",
3736
"coding_git_code_title": "Commands",

0 commit comments

Comments
 (0)