const CLEARNET_HOST = "jetpham.com"; const ONION_HOST = "jet7tetd43snvjx3ng5jrhuwm2yhyp76tjtct5mtofg64apokcgq7fqd.onion"; const REPO_URL = "https://git.extremist.software/jet/website"; function isOnionHost(hostname: string): boolean { return hostname.endsWith(".onion"); } function getMirrorLink() { if (isOnionHost(location.hostname)) { return { href: `https://${CLEARNET_HOST}`, label: "clearnet", }; } return { href: `http://${ONION_HOST}`, label: ".onion", }; } export function renderFooter() { const footer = document.getElementById("site-footer"); if (!footer) return; const mirror = getMirrorLink(); footer.innerHTML = `
`; }