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>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<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>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="./script.js" defer></script>
<title>dn724</title>
<input type="number" min="0" placeholder="your ASN" oninput="calculate(this)">
<p>Port: <span id="result"></span></p>
</html>

View file

@ -1,31 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<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">
<link rel="stylesheet" href="style.css">
<title>dn724</title>
</head>
<style>
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;
}
</style>
<body>
<h2>AS4242420129</h2>
<p>Open for peering in:</p>
@ -62,9 +44,9 @@
<p>Other</p>
<ul>
<li><a href="./map">Network map</a> (uses thunderforest.com API)</li>
<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>

View file

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

View file

@ -14,7 +14,7 @@ var map = L.map('map', {
maxZoom: 10
}).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',
apikey: 'db5ae1f5778a448ca662554581f283c5',
}).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;
}