remove unused files
This commit is contained in:
parent
8bbc846ffd
commit
e2e66e5065
@ -1,2 +0,0 @@
|
|||||||
{
|
|
||||||
}
|
|
37
js/ping.js
37
js/ping.js
@ -1,37 +0,0 @@
|
|||||||
async function ping(url) {
|
|
||||||
const start = performance.now();
|
|
||||||
try {
|
|
||||||
await fetch(url);
|
|
||||||
const end = performance.now();
|
|
||||||
return end - start;
|
|
||||||
} catch (error) {
|
|
||||||
console.error(`Error pinging ${url}:`, error);
|
|
||||||
return Infinity;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function testPing() {
|
|
||||||
const urls = [
|
|
||||||
'https://aidxn.fun/ping',
|
|
||||||
'https://kantor.aidxn.fun/ping',
|
|
||||||
'https://api.aidxn.fun/ping'
|
|
||||||
];
|
|
||||||
|
|
||||||
const pingResults = await Promise.all(
|
|
||||||
urls.map(async (url) => {
|
|
||||||
const time = await ping(url);
|
|
||||||
return { url, time };
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
pingResults.sort((a, b) => a.time - b.time);
|
|
||||||
|
|
||||||
console.log('Fastest server:', pingResults[0].url);
|
|
||||||
pingResults.forEach(result => {
|
|
||||||
console.log(`${result.url}: ${result.time.toFixed(2)} ms`);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onload = () => {
|
|
||||||
testPing();
|
|
||||||
};
|
|
53
verify.html
53
verify.html
@ -1,53 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>verify | aidxn</title>
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="css/main.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="loading"></div>
|
|
||||||
<div id="page" style="display: none;">
|
|
||||||
<header class="sidebar">
|
|
||||||
<a href="/"><img src="img/logo.gif" alt="Animated logo text displaying AIDXN ONLINE" class="logo"></a>
|
|
||||||
<p class="cap">Welcome to my world wide web site!</p>
|
|
||||||
<img src="img/links.gif" alt="Animated text displaying LINKS" width="30%" class="mm-label">
|
|
||||||
<ul>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><a href="index.html">home</a></li>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><a href="about.html">about</a></li>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><a href="https://blog.aidxn.fun">blog</a></li>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><a href="contact.html">contact</a></li>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><b>verify a message</b></li>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><a href="status.html">status</a></li>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><a href="design.html">design</a></li>
|
|
||||||
<li class="menu-opt"><img src="img/bullet.gif" alt="*" class="bullet"><a href="projects.html">projects</a></li>
|
|
||||||
</ul>
|
|
||||||
<img src="img/information.gif" alt="Animated text displaying INFORMATION" width="68%" class="mm-label">
|
|
||||||
<p id="date"></p>
|
|
||||||
<img id="album-art" style="height: 64px; width: 64px;" src="img/loading.gif" alt="Album cover">
|
|
||||||
<div class="music-section">
|
|
||||||
<b id="albumLabel">Now Playing:</b><br>
|
|
||||||
<b id="song">Loading...</b>
|
|
||||||
<p id="album">Loading...</p>
|
|
||||||
<p id="artist">Loading...</p>
|
|
||||||
</div>
|
|
||||||
<span class="extra-text"><b>Note: </b>This page is best viewed on a computer.</span>
|
|
||||||
</header>
|
|
||||||
<aside class="main-content">
|
|
||||||
<h1>Verify a Message</h1>
|
|
||||||
<p>Did I send you a PGP signed message? Let's check it's actually from me!</p>
|
|
||||||
<p>The form below will verify the message was signed by my key.</p>
|
|
||||||
<p>Remember, if you have confirmed my key in person, you should always trust that key over this page.</p>
|
|
||||||
<p>The key this is being checked against is stored on my server, which can be prone to being hacked. Thus, this is better than nothing, but not the #1 option for verifying a message.</p>
|
|
||||||
<b>THIS FORM IS NOT CURRENTLY AVALIABLE</b>
|
|
||||||
</aside>
|
|
||||||
</div>
|
|
||||||
<script src="js/main.js"></script>
|
|
||||||
<script src="js/music.js"></script>
|
|
||||||
<script src="js/ping.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
x
Reference in New Issue
Block a user