Skip to content

Commit e63095d

Browse files
committed
implement nr. 3
1 parent 3d1440f commit e63095d

4 files changed

Lines changed: 24 additions & 12 deletions

File tree

2.36 MB
Loading

src/content/challenges-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ export function setupChallengesServer(App) {
730730
pos[0],
731731
pos[1]
732732
)
733-
if (distance <= 0.15) {
733+
if (distance <= 0.3) {
734734
return res.send(
735735
req.lng === 'de'
736736
? `Richtig!<br>Die Antwort lautet <strong>${answer}</strong>.`

src/content/community-2.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,12 +1199,14 @@ I'll give it to someone special
11991199
stem:
12001200
req.lng == 'de'
12011201
? `
1202-
<p>Willkommen bei der Ostersuch-Aktion! Begleite mich auf eine Tour durch das schöne Bayern. Finde den Panorama-Ort auf 100m genau und erhalte die Antwort.</p>
1202+
<p>Willkommen bei der Ostersuch-Aktion! Begleite mich auf eine Tour durch das schöne Bayern. Finde den Panorama-Ort auf 200m genau und erhalte die Antwort.</p>
12031203
12041204
<p>Hinweis 1: Es sind zwei Schlösser zu sehen.<br>Hinweis 2: Die Parkplätze sind nummeriert.</p>
12051205
`
12061206
: `
1207-
<p>Welcome to the Easter egg hunt! Join me on a tour through beautiful Bavaria. Find the panorama location with 100m accuracy and get the answer.</p>
1207+
<p>Welcome to the Easter egg hunt! Join me on a tour through beautiful Bavaria. Find the panorama location with 200m accuracy and get the answer.</p>
1208+
1209+
<p>Hint 1: There are two castles visible.<br>Hint 2: The parking lots are numbered.</p>
12081210
`,
12091211
id: 370,
12101212
img: 'nr1_panorama_2_1',
@@ -1245,13 +1247,20 @@ I'll give it to someone special
12451247
releaseTs: new Date('2026-03-27 08:00:00 GMT+0100').getTime(),
12461248
author: 'Anna',
12471249
color: '#95eb83',
1248-
html: {
1249-
de: `
1250-
<p>TODO</p>
1251-
`,
1252-
en: `
1253-
<p>TODO</p>
1254-
`,
1250+
render: async ({ App, req }) => {
1251+
return await renderTemplate(App, req, 'where_the_hack', {
1252+
stem:
1253+
req.lng == 'de'
1254+
? `
1255+
<p>Ein schöner Ort, nur ab und zu mal unter Wasser.</p>
1256+
`
1257+
: `
1258+
<p>A beautiful place, only underwater from time to time.</p>
1259+
`,
1260+
id: 372,
1261+
img: 'nr3_panorama_2_1',
1262+
yaw: 100,
1263+
})
12551264
},
12561265
solution: secrets('chal_372'),
12571266
},

src/content/views/where_the_hack.ejs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,18 @@
3333
transition:
3434
width 0.3s ease,
3535
height 0.3s ease;
36+
transition-delay: 0.4s;
3637
}
3738
#map-wrapper:hover {
3839
width: 400px;
3940
height: 340px;
41+
transition-delay: 0s;
4042
}
4143
@media (min-width: 1200px) {
4244
#map-wrapper:hover {
4345
width: 600px;
4446
height: 500px;
47+
transition-delay: 0s;
4548
}
4649
}
4750
.pnlm-controls {
@@ -150,7 +153,7 @@
150153
}
151154
</style>
152155

153-
<div id="panorama" style="width: 100%; margin-bottom: 32px">
156+
<div id="panorama" style="width: 100%; margin-bottom: 6px">
154157
<div id="map-wrapper">
155158
<div id="map" style="display: none"></div>
156159
<div id="ui-container">
@@ -176,7 +179,7 @@
176179
<div id="rabbit-modal" class="modal-overlay">
177180
<div class="modal-content">
178181
<span class="rabbit-emoji">🐰</span>
179-
<h2 id="check-result">Rabbit is Hopping!</h2>
182+
<h2 id="check-result"></h2>
180183
<button
181184
onclick="closeRabbitModal()"
182185
style="padding: 10px; margin-top: 15px; cursor: pointer"

0 commit comments

Comments
 (0)