Files
multipleof4andClaude Opus 5.5 ae08800643 Add API explorer section to the page
Lists every /api endpoint, fetches the picked one live with highlighted
output and a copy-curl button; nav API link now scrolls to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 21:51:24 +00:00

87 lines
3.9 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>PRT — Planet Renox Time</title>
<meta name="description" content="Planet Renox Time, live: milliseconds since 1998-03-14 03:00:00 UTC, in every unit, over a day/night map of Earth.">
<meta name="theme-color" content="#030815">
<meta property="og:title" content="PRT — Planet Renox Time">
<meta property="og:description" content="Milliseconds since 1998-03-14 03:00:00 UTC, live.">
<meta property="og:image" content="https://time.planetrenox.com/og.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&family=Space+Grotesk:wght@400;500;600&display=swap">
<link rel="stylesheet" href="style.css">
<script type="importmap">{"imports":{"ortus":"https://cdn.jsdelivr.net/npm/ortus@0.1/index.js"}}</script>
<script type="module" src="app.js"></script>
</head>
<body>
<header class="top wrap">
<a class="brand" href="/"><span class="orb"></span>PRT</a>
<nav><a href="#api">API</a><a href="https://www.npmjs.com/package/ortus">ortus ↗</a><a href="https://github.com/planetrenox/ortus">GitHub ↗</a></nav>
</header>
<main class="wrap" role="timer">
<section class="hero">
<h1>Planet Renox Time</h1>
<p class="sub">Milliseconds since <b>1998-03-14 03:00:00 UTC</b></p>
<div class="map">
<canvas id="map" aria-label="Dot map of Earth showing current daylight"></canvas>
<div id="sun" title="Sun directly overhead"><span>sun overhead</span></div>
<div id="tip" hidden></div>
</div>
<div class="now">
<div id="ms" class="big">–</div>
<div class="big-u">ms <span>official unit</span></div>
</div>
</section>
<section class="units" id="units"></section>
<section class="grid">
<article class="card"><h2>Now</h2><p class="v" id="loc">–</p><p class="m" id="utc"></p></article>
<article class="card"><h2>Epoch, your time</h2><p class="v" id="ep">–</p><p class="m" id="age"></p></article>
<article class="card"><h2>Sun overhead</h2><p class="v" id="ss">–</p><p class="m" id="ssm"></p></article>
<article class="card wide"><h2>Upcoming milestones</h2><ol id="miles"></ol></article>
<article class="card wide conv">
<h2>Convert</h2>
<div class="cv">
<div>
<label>Date → PRT <span class="tz"><input type="checkbox" id="cz" checked> UTC</span></label>
<div class="row"><input type="datetime-local" id="cin" step="0.001"><button id="cnow">now</button></div>
<dl id="cout"></dl>
</div>
<div>
<label>PRT → Date</label>
<div class="row"><input id="pin" inputmode="numeric" spellcheck="false" value="1000000000000"><select id="pu"></select></div>
<dl id="pout"></dl>
</div>
</div>
</article>
<article class="card wide" id="api">
<h2>API</h2>
<p class="m">Free JSON over HTTPS. No key, CORS open. Pick an endpoint to try it live.</p>
<div class="api">
<ul id="eps"></ul>
<div class="res">
<div class="rq"><code id="rq"></code><button id="curl">copy curl</button></div>
<pre id="rs"></pre>
</div>
</div>
</article>
</section>
</main>
<footer class="wrap">
<p>Integers, floored toward −∞ · negative before the epoch · days start 03:00 UTC, weeks on Saturdays · 1 d = 86,400,000 ms · leap seconds ignored</p>
<button class="npm" id="npm">npm i ortus</button>
</footer>
<div id="toast" hidden></div>
<noscript><p class="wrap">PRT needs JavaScript to tick.</p></noscript>
</body>
</html>