FIXME: share.ion606.com broken

This commit is contained in:
ION606
2025-08-25 23:09:03 -04:00
parent c2dd971eb1
commit c22bfbb53e
7 changed files with 169 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { privateNoteUrl, fileDropUrl, homeDomain } from "./links.js";
const yearEl = document.querySelector("#year"),
homeDomainEl = document.querySelector("#home-domain"),
noteLink = document.querySelector('[data-link="note"]'),
dropLink = document.querySelector('[data-link="drop"]');
// set the current year
if (yearEl) { yearEl.textContent = String(new Date().getFullYear()); }
// set home domain text
if (homeDomainEl) { homeDomainEl.textContent = homeDomain; }
// wire up links from config
if (noteLink) { noteLink.setAttribute("href", privateNoteUrl); }
if (dropLink) { dropLink.setAttribute("href", fileDropUrl); }