some optimizations
All checks were successful
/ deploy (push) Successful in 41s

This commit is contained in:
Minecon724 2024-10-11 15:46:52 +02:00
parent 1f8de89cfc
commit 3c0ec26180
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
5 changed files with 74 additions and 81 deletions

View file

@ -1,19 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>dn724</title> <script src="./script.js" defer></script>
<title>dn724</title>
<script src="./script.js" defer></script>
<style>
html {
background: black;
color: white;
}
</style>
<input type="number" min="0" placeholder="your ASN" oninput="calculate(this)">
<p>Port: <span id="result"></span></p>
<input type="number" min="0" placeholder="your ASN" oninput="calculate(this)">
<p>Port: <span id="result"></span></p>
</html> </html>

View file

@ -1,70 +1,52 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<meta charset="utf-8"> <head>
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta charset="utf-8">
<title>dn724</title> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<title>dn724</title>
</head>
<style> <body>
html { <h2>AS4242420129</h2>
font-size: large;
}
body {
margin: 0 auto;
padding-right: 20px; /* make it look aligned */
max-width: calc(100vw - 40px);
word-wrap: break-word;
width: fit-content;
}
ul {
margin-bottom: 1.4em;
}
p {
line-height: 0.6em;
}
.sel {
user-select: all;
}
</style>
<h2>AS4242420129</h2>
<p>Open for peering in:</p>
<ul>
<li>Warsaw, Poland</li>
<li>Rome. Italy</li>
<li>Nuremberg, Germany</li>
<li>Netherlands, Amsterdam</li>
</ul>
<p>Peering requirements</p>
<ul>
<li>sane latency</li>
<li>one peering per one node</li>
<li>WireGuard, link local peering</li>
<li>If your node is not in the same country and you plan on getting one in that country, please don't peer</li>
<li>I can make an exception for you in most cases</li>
</ul>
<p>How to</p>
<ul>
<li><a href="https://git.m724.eu/Minecon724/dn42-info/src/branch/master/nodes.md">Nodes with details</a></li>
<li>Port is last 5 digits of your ASN (2xxx), unless</li>
<li>your ASN is not 424242xxxx, then <a href="./calculator">use this</a></li>
</ul>
<p>Contact</p>
<ul>
<li><a class=sel href="mailto:dn42@m724.eu">dn42@m724.eu</a>, <a href="https://lfs.m724.eu/dn724_0x2A78FF14_public.asc">GPG</a></li>
<li>Telegram: <a class=sel href="https://t.me/minecon724">@minecon724</a></li>
<li>Discord: <span class=sel>minecon724</span></li>
<li>Session: <span class=sel>05293535c0f0b5ae76a663f3f875582590edd77abd72ab9b12f3acbe4bb078aa49</span></li>
</ul>
<p>Other</p>
<ul>
<li><a href="./map">Network map</a> (uses thunderforest.com API)</li>
<li><a href="./services.html">Services</a></li>
<li><a href="https://git.m724.eu/Minecon724/dn42-info">Source code</a></li>
</ul>
<p>Open for peering in:</p>
<ul>
<li>Warsaw, Poland</li>
<li>Rome. Italy</li>
<li>Nuremberg, Germany</li>
<li>Netherlands, Amsterdam</li>
</ul>
<p>Peering requirements</p>
<ul>
<li>sane latency</li>
<li>one peering per one node</li>
<li>WireGuard, link local peering</li>
<li>If your node is not in the same country and you plan on getting one in that country, please don't peer</li>
<li>I can make an exception for you in most cases</li>
</ul>
<p>How to</p>
<ul>
<li><a href="https://git.m724.eu/Minecon724/dn42-info/src/branch/master/nodes.md">Nodes with details</a></li>
<li>Port is last 5 digits of your ASN (2xxx), unless</li>
<li>your ASN is not 424242xxxx, then <a href="./calculator">use this</a></li>
</ul>
<p>Contact</p>
<ul>
<li><a class=sel href="mailto:dn42@m724.eu">dn42@m724.eu</a>, <a href="https://lfs.m724.eu/dn724_0x2A78FF14_public.asc">GPG</a></li>
<li>Telegram: <a class=sel href="https://t.me/minecon724">@minecon724</a></li>
<li>Discord: <span class=sel>minecon724</span></li>
<li>Session: <span class=sel>05293535c0f0b5ae76a663f3f875582590edd77abd72ab9b12f3acbe4bb078aa49</span></li>
</ul>
<p>Other</p>
<ul>
<li><a href="./map">Node map</a></li>
<li><a href="./services.html">Services</a></li>
<li><a href="https://git.m724.eu/Minecon724/dn42-info">Source code</a></li>
</ul>
</body>
</html> </html>

View file

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<script type=module src="./map.js"></script> <script type=module src="./map.js"></script>
<link rel="stylesheet" href="./style.css" /> <link rel="stylesheet" href="./style.css" />

View file

@ -14,7 +14,7 @@ var map = L.map('map', {
maxZoom: 10 maxZoom: 10
}).setView([50,18], 5); }).setView([50,18], 5);
L.tileLayer('https://{s}.tile.thunderforest.com/spinal-map/{z}/{x}/{y}.png?apikey={apikey}', { L.tileLayer('https://tforwarder.b-cdn.net/spinal-map/{z}/{x}/{y}.png?apikey={apikey}', {
attribution: '&copy; <a href="http://www.thunderforest.com/">Thunderforest</a>, &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', attribution: '&copy; <a href="http://www.thunderforest.com/">Thunderforest</a>, &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
apikey: 'db5ae1f5778a448ca662554581f283c5', apikey: 'db5ae1f5778a448ca662554581f283c5',
}).addTo(map); }).addTo(map);

19
src/style.css Normal file
View file

@ -0,0 +1,19 @@
html {
font-size: large;
}
body {
margin: 0 auto;
padding-right: 20px; /* make it look aligned */
max-width: calc(100vw - 40px);
word-wrap: break-word;
width: fit-content;
}
ul {
margin-bottom: 1.4em;
}
p {
line-height: 0.6em;
}
.sel {
user-select: all;
}