EternalAI/index.html

68 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EternalAI Application</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
}
.status {
padding: 10px;
margin: 10px 0;
border-radius: 4px;
background-color: #e8f5e8;
border: 1px solid #4caf50;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to EternalAI</h1>
<p>The application is running successfully!</p>
<div id="status" class="status">
Status: <span id="status-text">Checking...</span><br>
Timestamp: <span id="timestamp"></span>
</div>
<div>
<h3>Available Endpoints:</h3>
<ul>
<li><a href="/api/status">/api/status</a> - API Status</li>
<li><a href="/health">/health</a> - Health Check</li>
</ul>
</div>
</div>
<script>
fetch('/api/status')
.then(response => response.json())
.then(data => {
document.getElementById('status-text').textContent = 'Running';
document.getElementById('timestamp').textContent = data.timestamp;
console.log('EternalAI Status:', data);
})
.catch(error => {
document.getElementById('status-text').textContent = 'Error';
console.error('Error fetching status:', error);
});
</script>
</body>
</html>