57 lines
No EOL
1.5 KiB
HTML
57 lines
No EOL
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Vanguards</title>
|
|
</head>
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,700;1,700&display=swap');
|
|
:root {
|
|
background-color: black;
|
|
}
|
|
.container {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
height: 100vh;
|
|
text-align: center;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
color: white;
|
|
}
|
|
.container h1 {
|
|
font-size: 8rem;
|
|
margin: 0;
|
|
}
|
|
.container h2 {
|
|
font-size: 5rem;
|
|
}
|
|
</style>
|
|
<script>
|
|
async function updateVanguardCount() {
|
|
try {
|
|
const response = await fetch('http://localhost:3000/vanguards', {
|
|
method: 'POST',
|
|
headers: {
|
|
"Content-type": "application/json; charset=UTF-8"
|
|
}
|
|
});
|
|
const data = await response.json();
|
|
document.getElementById('vanguard-count').textContent = `${data} Vanguards`;
|
|
} catch (error) {
|
|
console.error('Error:', error);
|
|
}
|
|
}
|
|
|
|
updateVanguardCount();
|
|
</script>
|
|
<body>
|
|
<script src="./neko.js"></script>
|
|
<div class="container">
|
|
<h1>Embray Has</h1>
|
|
<h2 id="vanguard-count">1 Vanguards</h2>
|
|
<h1>And no locket!</h3>
|
|
</div>
|
|
</body>
|
|
</html> |