Skip to content

Commit 0d9e000

Browse files
committed
┬─┬ノ( º _ ºノ)
1 parent 0d9e000 commit 0d9e000

File tree

4 files changed

+208
-129
lines changed

4 files changed

+208
-129
lines changed

index.html

Lines changed: 71 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,73 @@
11
<!DOCTYPE html>
2-
<!-- This Source Code Form is subject to the terms of the Mozilla Public
3-
- License, v. 2.0. If a copy of the MPL was not distributed with this
4-
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5-
<html data-l10n-sync="true" lang="en-US" dir="ltr"><head>
6-
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
7-
<meta name="color-scheme" content="light dark">
8-
<title data-l10n-id="neterror-dns-not-found-title">Server Not Found</title>
9-
<link rel="stylesheet" href="/aboutNetError.css" type="text/css" media="all">
10-
<link rel="icon" id="favicon" href="info.svg">
11-
<style>
12-
#neterrorTryAgainButton {
13-
position: relative;
14-
transition: left 0.2s, top 0.2s;
15-
}
16-
17-
#neterrorTryAgainButton:hover {
18-
left: calc(-30px + 60px * random());
19-
top: calc(-10px + 20px * random());
20-
}
2+
<html lang="en-US">
3+
<head>
4+
<title>0d9e.tech</title>
5+
<script defer data-domain="0d9e.tech" src="https://plausible.chamik.eu/js/script.js"></script>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<style>
8+
a { color: #000d9e; text-decoration: none; }
9+
a:hover { text-decoration: underline; }
2110
</style>
22-
23-
</head>
24-
<body class="neterror">
25-
<div class="container">
26-
<div id="text-container">
27-
<!-- Error Title -->
28-
<div class="title">
29-
<h1 class="title-text" data-l10n-id="dnsNotFound-title">Hmm. We’re having trouble finding that site.</h1>
30-
</div>
31-
32-
<!-- Short Description -->
33-
<p id="errorShortDesc">We can’t connect to the server at 0d9e.tech.</p>
34-
<p id="errorShortDesc2"></p>
35-
36-
<div id="errorWhatToDo" hidden="">
37-
<p id="errorWhatToDoTitle" data-l10n-id="certerror-what-can-you-do-about-it-title">What can you do about it?</p>
38-
<p id="badStsCertExplanation" hidden=""></p>
39-
<p id="errorWhatToDoText"></p>
40-
</div>
41-
42-
<!-- Long Description -->
43-
<div id="errorLongDesc"><span data-l10n-id="neterror-dns-not-found-hint-header"><strong>If you entered the right address, you can:</strong></span><ul><li data-l10n-id="neterror-dns-not-found-hint-try-again">Try again later</li><li data-l10n-id="neterror-dns-not-found-hint-check-network">Check your network connection</li><li data-l10n-id="neterror-dns-not-found-hint-firewall">Check that your browser has permission to access the web (you might be connected but behind a firewall)</li></ul></div>
44-
45-
<div id="trrOnlyContainer" hidden="">
46-
<p id="trrOnlyMessage"></p>
47-
<div class="trr-message-container">
48-
<span id="trrOnlyDescription"></span>
49-
<p id="trrLearnMoreContainer" hidden="">
50-
<a id="trrOnlylearnMoreLink" target="_blank" rel="noopener noreferrer" data-l10n-id="neterror-learn-more-link">Learn more…</a>
51-
</p>
52-
</div>
53-
<p data-l10n-id="neterror-dns-not-found-trr-third-party-warning2">You can continue with your default DNS resolver. However, a third-party might be able to see what websites you visit.</p>
54-
</div>
55-
56-
<p id="tlsVersionNotice" hidden=""></p>
57-
58-
<p id="learnMoreContainer" hidden="">
59-
<a id="learnMoreLink" target="_blank" rel="noopener noreferrer" data-telemetry-id="learn_more_link" data-l10n-id="neterror-learn-more-link" href="https://support.mozilla.org/1/firefox/137.0.1/Linux/en-US/connection-not-secure">Learn more…</a>
60-
</p>
61-
62-
<!-- UI for option to report certificate errors to Mozilla. Removed on
63-
init for other error types .-->
64-
<div id="prefChangeContainer" class="button-container" hidden="">
65-
<p data-l10n-id="neterror-pref-reset">It looks like your network security settings might be causing this. Do you want the default settings to be restored?</p>
66-
<button id="prefResetButton" class="primary" data-l10n-id="neterror-pref-reset-button">Restore default settings</button>
67-
</div>
68-
69-
<div id="certErrorAndCaptivePortalButtonContainer" class="button-container" hidden="">
70-
<button id="returnButton" class="primary" data-telemetry-id="return_button_top" data-l10n-id="neterror-return-to-previous-page-recommended-button">Go Back (Recommended)</button>
71-
<button id="openPortalLoginPageButton" class="primary" data-l10n-id="neterror-open-portal-login-page-button" hidden="">Open Network Login Page</button>
72-
<button id="certErrorTryAgainButton" class="primary try-again" data-l10n-id="neterror-try-again-button" hidden="">Try Again</button>
73-
<button id="advancedButton" data-telemetry-id="advanced_button" data-l10n-id="neterror-advanced-button">Advanced…</button>
74-
</div>
75-
</div>
76-
77-
<div id="netErrorButtonContainer" class="button-container"><button id="neterrorTryAgainButton" class="primary try-again" data-l10n-id="neterror-try-again-button" data-telemetry-id="try_again_button">Try Again</button>
78-
79-
<button id="trrExceptionButton" data-l10n-id="neterror-add-exception-button" data-telemetry-id="add_exception_button" hidden="">Always continue for this site</button>
80-
<button id="trrSettingsButton" data-l10n-id="neterror-settings-button" data-telemetry-id="settings_button" hidden="">Change DNS settings</button>
81-
</div>
82-
83-
<div class="advanced-panel-container">
84-
<div id="badCertAdvancedPanel" class="advanced-panel" hidden="">
85-
<p id="badCertTechnicalInfo"></p>
86-
<a id="viewCertificate" href="javascript:void(0)" data-l10n-id="neterror-view-certificate-link">View Certificate</a>
87-
<div id="advancedPanelButtonContainer" class="button-container">
88-
<button id="advancedPanelReturnButton" class="primary" data-telemetry-id="return_button_adv" data-l10n-id="neterror-return-to-previous-page-recommended-button">Go Back (Recommended)</button>
89-
<button id="advancedPanelTryAgainButton" class="primary try-again" data-l10n-id="neterror-try-again-button" hidden="">Try Again</button>
90-
<button id="exceptionDialogButton" data-telemetry-id="exception_button" data-l10n-id="neterror-override-exception-button">Accept the Risk and Continue</button>
91-
</div>
92-
</div>
93-
94-
<div id="certificateErrorDebugInformation" class="advanced-panel" hidden="">
95-
<button id="copyToClipboardTop" data-telemetry-id="clipboard_button_top" data-l10n-id="neterror-copy-to-clipboard-button">Copy text to clipboard</button>
96-
<div id="certificateErrorText"></div>
97-
<button id="copyToClipboardBottom" data-telemetry-id="clipboard_button_bot" data-l10n-id="neterror-copy-to-clipboard-button">Copy text to clipboard</button>
98-
</div>
99-
</div>
100-
</div>
101-
<script>
102-
const btn = document.getElementById("neterrorTryAgainButton");
103-
const container = document.querySelector(".container");
104-
105-
btn.style.position = "absolute";
106-
107-
btn.addEventListener("mouseover", () => {
108-
const containerRect = container.getBoundingClientRect();
109-
const btnRect = btn.getBoundingClientRect();
110-
111-
const maxX = containerRect.width - btnRect.width;
112-
const maxY = containerRect.height - btnRect.height;
113-
114-
const newX = Math.random() * maxX;
115-
const newY = Math.random() * maxY;
116-
117-
btn.style.left = `${newX}px`;
118-
btn.style.top = `${newY}px`;
119-
});
120-
121-
</script>
122-
123-
</body></html>
11+
</head>
12+
<body>
13+
<pre>
14+
_________________________________________________
15+
/ ____ ______ \
16+
| / __ \____/ / __ \___ |
17+
| / / / / __ / /_/ / _ \ |
18+
| / /_/ / /_/ /\__, / __/ |
19+
| \____/\__,_//____/\___/ |
20+
| |
21+
| Mission = haha hihi hehe |
22+
| About: --> <a href="/about">/about</a> |
23+
| Blog: --> <a href="/blog/">/blog/</a> |
24+
| |
25+
| Members = { |
26+
| Honza: <a href="https://honzuvkod.dev">honzuvkod.dev</a> |
27+
| @cloud:0d9e.tech |
28+
| Kubik: <a href="https://chamik.eu">chamik.eu</a> |
29+
| @kubik:0d9e.tech |
30+
| Marek: <a href="https://mrms.cz">mrms.cz</a> (most sus looking) |
31+
| @mrms:0d9e.tech |
32+
| Marian: <a href="https://mariansam.eu">mariansam.eu</a> (don't tell him) |
33+
| @marian:0d9e.tech |
34+
| Matej: <a href="https://matej.0d9e.tech">matej.0d9e.tech</a> (managememter) |
35+
| @matej:0d9e.tech |
36+
| Matus: <a href="https://mat.uush.cz">uush.cz</a> (monter :P :P :P) |
37+
| @matuush:0d9e.tech |
38+
| Prokop: <a href="https://rdck.dev">rdck.dev</a> (CEO of unfinished projects) |
39+
| @prokop:0d9e.tech |
40+
| } |
41+
| |
42+
| Friends &amp; cool people = { |
43+
| Honza: <a href="https://blackblog.cz">blackblog.cz</a> |
44+
| Marie: <a href="https://maria.jmq.cz">maria.jmq.cz</a> |
45+
| Medved: <a href="https://mj.ucw.cz">mj.ucw.cz</a> |
46+
| Tom: <a href="https://slama.dev">slama.dev</a> |
47+
| Upir: <a href="https://upir.cz">upir.cz</a> |
48+
| Vasek: <a href="https://vsq.cz">vsq.cz</a> |
49+
| Vitek: <a href="https://www.vitkolos.cz">vitkolos.cz</a> |
50+
| } |
51+
| |
52+
| Logo = { |
53+
| SVG: <a href="https://0d9e.tech/logo.svg">https://0d9e.tech/logo.svg</a> |
54+
| } |
55+
| |
56+
| Business partners = { |
57+
| Kruh 19: <a href="https://kruh19.cz">kruh19.cz</a> |
58+
| Radeksoft: <a href="https://radeksoft.cz">radeksoft.cz</a> |
59+
| Cracktek: <a href="https://cracktek.eu/">cracktek.eu</a> |
60+
\ } /
61+
-------------------------------------------------
62+
\
63+
\
64+
_------_
65+
.---. \
66+
( ) +--\
67+
`---` | |
68+
| | |
69+
| __ +--/
70+
\__/ \__/
71+
</pre>
72+
</body>
73+
</html>

indx.html

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<!DOCTYPE html>
2+
<!-- This Source Code Form is subject to the terms of the Mozilla Public
3+
- License, v. 2.0. If a copy of the MPL was not distributed with this
4+
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5+
<html data-l10n-sync="true" lang="en-US" dir="ltr"><head>
6+
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
7+
<meta name="color-scheme" content="light dark">
8+
<title data-l10n-id="neterror-dns-not-found-title">Server Not Found</title>
9+
<link rel="stylesheet" href="/aboutNetError.css" type="text/css" media="all">
10+
<link rel="icon" id="favicon" href="info.svg">
11+
<style>
12+
#neterrorTryAgainButton {
13+
position: relative;
14+
transition: left 0.2s, top 0.2s;
15+
}
16+
17+
#neterrorTryAgainButton:hover {
18+
left: calc(-30px + 60px * random());
19+
top: calc(-10px + 20px * random());
20+
}
21+
</style>
22+
23+
</head>
24+
<body class="neterror">
25+
<div class="container">
26+
<div id="text-container">
27+
<!-- Error Title -->
28+
<div class="title">
29+
<h1 class="title-text" data-l10n-id="dnsNotFound-title">Hmm. We’re having trouble finding that site.</h1>
30+
</div>
31+
32+
<!-- Short Description -->
33+
<p id="errorShortDesc">We can’t connect to the server at 0d9e.tech.</p>
34+
<p id="errorShortDesc2"></p>
35+
36+
<div id="errorWhatToDo" hidden="">
37+
<p id="errorWhatToDoTitle" data-l10n-id="certerror-what-can-you-do-about-it-title">What can you do about it?</p>
38+
<p id="badStsCertExplanation" hidden=""></p>
39+
<p id="errorWhatToDoText"></p>
40+
</div>
41+
42+
<!-- Long Description -->
43+
<div id="errorLongDesc"><span data-l10n-id="neterror-dns-not-found-hint-header"><strong>If you entered the right address, you can:</strong></span><ul><li data-l10n-id="neterror-dns-not-found-hint-try-again">Try again later</li><li data-l10n-id="neterror-dns-not-found-hint-check-network">Check your network connection</li><li data-l10n-id="neterror-dns-not-found-hint-firewall">Check that your browser has permission to access the web (you might be connected but behind a firewall)</li></ul></div>
44+
45+
<div id="trrOnlyContainer" hidden="">
46+
<p id="trrOnlyMessage"></p>
47+
<div class="trr-message-container">
48+
<span id="trrOnlyDescription"></span>
49+
<p id="trrLearnMoreContainer" hidden="">
50+
<a id="trrOnlylearnMoreLink" target="_blank" rel="noopener noreferrer" data-l10n-id="neterror-learn-more-link">Learn more…</a>
51+
</p>
52+
</div>
53+
<p data-l10n-id="neterror-dns-not-found-trr-third-party-warning2">You can continue with your default DNS resolver. However, a third-party might be able to see what websites you visit.</p>
54+
</div>
55+
56+
<p id="tlsVersionNotice" hidden=""></p>
57+
58+
<p id="learnMoreContainer" hidden="">
59+
<a id="learnMoreLink" target="_blank" rel="noopener noreferrer" data-telemetry-id="learn_more_link" data-l10n-id="neterror-learn-more-link" href="https://support.mozilla.org/1/firefox/137.0.1/Linux/en-US/connection-not-secure">Learn more…</a>
60+
</p>
61+
62+
<!-- UI for option to report certificate errors to Mozilla. Removed on
63+
init for other error types .-->
64+
<div id="prefChangeContainer" class="button-container" hidden="">
65+
<p data-l10n-id="neterror-pref-reset">It looks like your network security settings might be causing this. Do you want the default settings to be restored?</p>
66+
<button id="prefResetButton" class="primary" data-l10n-id="neterror-pref-reset-button">Restore default settings</button>
67+
</div>
68+
69+
<div id="certErrorAndCaptivePortalButtonContainer" class="button-container" hidden="">
70+
<button id="returnButton" class="primary" data-telemetry-id="return_button_top" data-l10n-id="neterror-return-to-previous-page-recommended-button">Go Back (Recommended)</button>
71+
<button id="openPortalLoginPageButton" class="primary" data-l10n-id="neterror-open-portal-login-page-button" hidden="">Open Network Login Page</button>
72+
<button id="certErrorTryAgainButton" class="primary try-again" data-l10n-id="neterror-try-again-button" hidden="">Try Again</button>
73+
<button id="advancedButton" data-telemetry-id="advanced_button" data-l10n-id="neterror-advanced-button">Advanced…</button>
74+
</div>
75+
</div>
76+
77+
<div id="netErrorButtonContainer" class="button-container"><button id="neterrorTryAgainButton" class="primary try-again" data-l10n-id="neterror-try-again-button" data-telemetry-id="try_again_button">Try Again</button>
78+
79+
<button id="trrExceptionButton" data-l10n-id="neterror-add-exception-button" data-telemetry-id="add_exception_button" hidden="">Always continue for this site</button>
80+
<button id="trrSettingsButton" data-l10n-id="neterror-settings-button" data-telemetry-id="settings_button" hidden="">Change DNS settings</button>
81+
</div>
82+
83+
<div class="advanced-panel-container">
84+
<div id="badCertAdvancedPanel" class="advanced-panel" hidden="">
85+
<p id="badCertTechnicalInfo"></p>
86+
<a id="viewCertificate" href="javascript:void(0)" data-l10n-id="neterror-view-certificate-link">View Certificate</a>
87+
<div id="advancedPanelButtonContainer" class="button-container">
88+
<button id="advancedPanelReturnButton" class="primary" data-telemetry-id="return_button_adv" data-l10n-id="neterror-return-to-previous-page-recommended-button">Go Back (Recommended)</button>
89+
<button id="advancedPanelTryAgainButton" class="primary try-again" data-l10n-id="neterror-try-again-button" hidden="">Try Again</button>
90+
<button id="exceptionDialogButton" data-telemetry-id="exception_button" data-l10n-id="neterror-override-exception-button">Accept the Risk and Continue</button>
91+
</div>
92+
</div>
93+
94+
<div id="certificateErrorDebugInformation" class="advanced-panel" hidden="">
95+
<button id="copyToClipboardTop" data-telemetry-id="clipboard_button_top" data-l10n-id="neterror-copy-to-clipboard-button">Copy text to clipboard</button>
96+
<div id="certificateErrorText"></div>
97+
<button id="copyToClipboardBottom" data-telemetry-id="clipboard_button_bot" data-l10n-id="neterror-copy-to-clipboard-button">Copy text to clipboard</button>
98+
</div>
99+
</div>
100+
</div>
101+
<script>
102+
const btn = document.getElementById("neterrorTryAgainButton");
103+
104+
btn.style.position = "absolute";
105+
106+
btn.addEventListener("mouseover", () => {
107+
const containerRect = document.body.getBoundingClientRect();
108+
const btnRect = btn.getBoundingClientRect();
109+
110+
const maxX = containerRect.width - btnRect.width;
111+
const maxY = containerRect.height - btnRect.height;
112+
113+
const newX = Math.random() * maxX;
114+
const newY = Math.random() * maxY;
115+
116+
btn.style.left = `${newX}px`;
117+
btn.style.top = `${newY}px`;
118+
});
119+
120+
</script>
121+
122+
</body></html>

server.deno.ts

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import {
1212
const indexContent = new TextDecoder().decode(
1313
await Deno.readFile("index.html"),
1414
);
15+
const indxContent = new TextDecoder().decode(
16+
await Deno.readFile("indx.html"),
17+
);
1518

1619
async function handleHttp(conn: Deno.Conn) {
1720
for await (const e of Deno.serveHttp(conn)) {
@@ -49,16 +52,20 @@ async function handleEvent(e: Deno.RequestEvent): Promise<Response | null> {
4952
await handleTgRequest(e);
5053
return null;
5154
}
52-
if (Math.random() < 0.001) {
53-
return new Response("Yo mama so fat she became a teapot", { status: 418 });
54-
}
5555

5656
if (url.pathname === "/" || url.pathname === "/index.html") {
57-
return new Response(indexContent, {
58-
headers: {
59-
"content-type": "text/html; charset=utf-8",
60-
},
61-
});
57+
return Math.random() < 0.01
58+
? new Response(indxContent, {
59+
headers: {
60+
"content-type": "text/html; charset=utf-8",
61+
},
62+
status: 418,
63+
})
64+
: new Response(indexContent, {
65+
headers: {
66+
"content-type": "text/html; charset=utf-8",
67+
},
68+
});
6269
}
6370

6471
if (url.pathname === "/postele.html") {

static/favicon.ico

144 KB
Binary file not shown.

0 commit comments

Comments
 (0)