Files
Overlays/index.html
2025-10-31 21:48:05 +01:00

128 lines
4.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ramforth Overlays (Reference)</title>
<style>
body {
font-family: sans-serif;
color: white;
background-color: #222;
margin: 0;
padding: 40px;
line-height: 1.6;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: #333;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
h1 {
color: #4CAF50;
}
h2 {
color: #FFC107;
border-bottom: 1px solid #4CAF50;
padding-bottom: 5px;
margin-top: 30px;
}
a {
color: #2196F3;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 10px;
}
.important-note {
background-color: #555;
padding: 15px;
border-left: 5px solid #FFC107;
margin-top: 20px;
}
.footer-info {
margin-top: 30px;
font-size: 0.8em;
color: #aaa;
}
</style>
</head>
<body>
<div class="container">
<h1>Ramforth Overlays (Reference)</h1>
<p>This page provides a reference and overview of various streaming overlays developed by Ramforth. The files hosted here are for demonstration and reference purposes only.</p>
<div class="important-note">
<strong>Important:</strong> For the latest versions, deployment instructions, and to customize these overlays for your own use, please clone the official Gitea repository. We do not provide hosting for convenience; users are expected to deploy these files themselves.
</div>
<h2>Repository</h2>
<p>All source code and comprehensive documentation for these overlays can be found on our Gitea instance:</p>
<p><a href="https://gitea.ramforth.net/ramforth/Overlays">https://gitea.ramforth.net/ramforth/Overlays</a></p>
<h2>Available Overlays (Reference Files)</h2>
<p>Below are links to the current reference versions of the overlays hosted on this server:</p>
<h3>Azuracast Radio Overlays</h3>
<ul>
<li><a href="/overlay-text-only.html">Text-only Now Playing Overlay</a></li>
<li><a href="/overlay-with-album-art.html">Now Playing Overlay with Album Art</a></li>
</ul>
<h3>System Monitor Overlay</h3>
<ul>
<li><a href="/system_monitor_overlay/system_monitor.html">System Monitor Overlay</a></li>
<li><a href="/system_monitor_overlay/system_monitor_no_heading.html">System Monitor Overlay (No Heading)</a></li>
</ul>
<h3>RSS Ticker Overlay</h3>
<ul>
<li><a href="/rss_ticker_overlay/rss_ticker.html">RSS Ticker Overlay</a></li>
</ul>
<p>For detailed usage instructions and to understand how to deploy these overlays, please refer to the <a href="https://gitea.ramforth.net/ramforth/Overlays/src/branch/main/azuracast/README.md">Azuracast README.md</a> within the Gitea repository.</p>
<div class="footer-info">
<p>Current Time: <span id="current-time"></span></p>
<p>Last Gitea Update: <span id="last-gitea-update"></span></p>
</div>
</div>
<script>
// Update current time
function updateCurrentTime() {
const now = new Date();
document.getElementById('current-time').textContent = now.toLocaleString();
}
setInterval(updateCurrentTime, 1000);
updateCurrentTime();
// Fetch last Gitea update
const giteaApiUrl = 'https://gitea.ramforth.net/api/v1/repos/ramforth/Overlays/commits?limit=1';
fetch(giteaApiUrl)
.then(response => response.json())
.then(data => {
if (data && data.length > 0) {
const lastCommitDate = new Date(data[0].commit.committer.date);
document.getElementById('last-gitea-update').textContent = lastCommitDate.toLocaleString();
} else {
document.getElementById('last-gitea-update').textContent = 'N/A';
}
})
.catch(error => {
console.error('Error fetching Gitea commit info:', error);
document.getElementById('last-gitea-update').textContent = 'Error fetching data';
});
</script>
</body>
</html>