aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-06-05 01:30:38 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-06-05 01:30:38 -0700
commita90bafa87c076a8fe04c91a49c75f4b4963ccfe8 (patch)
tree64acf2c716dd847fcb70972f89c3e30afebbf843 /index.js
parentbecd43ea2152dd676b8d26a8e92fe693502c98f1 (diff)
rebrand site to trainytrain.xyz; update films/up subdomains
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'index.js')
-rw-r--r--index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.js b/index.js
index bec056d..8975171 100644
--- a/index.js
+++ b/index.js
@@ -287,7 +287,7 @@
a.plainTitle = a.title.replace(/<[^>]+>/g, '');
});
const ARTICLE_INDEX = Object.fromEntries(ARTICLES.map(a => [a.slug, a]));
- const HOST = 'fun.tylerhoang.xyz';
+ const HOST = 'trainytrain.xyz';
const browserHistory = { stack: [], idx: -1 };
function fmtDate(iso) {
@@ -352,8 +352,8 @@
const isArt = /^\/articles\/[a-z0-9-]+$/.test(path);
const slug = isArt ? path.split('/').pop() : null;
const titleTxt = isArt && ARTICLE_INDEX[slug]
- ? `${ARTICLE_INDEX[slug].plainTitle} — fun.tylerhoang.xyz`
- : 'Notes — fun.tylerhoang.xyz';
+ ? `${ARTICLE_INDEX[slug].plainTitle} — trainytrain.xyz`
+ : 'Notes — trainytrain.xyz';
document.getElementById('br-title').textContent = titleTxt;
document.querySelectorAll('.browser-bookmarks .bm').forEach(bm => {
bm.classList.toggle('active', bm.dataset.go === path);
@@ -366,7 +366,7 @@
const page = document.getElementById('br-page');
const status = document.getElementById('br-status');
const progress = document.getElementById('br-progress');
- status.textContent = `Contacting fun.tylerhoang.xyz…`;
+ status.textContent = `Contacting trainytrain.xyz…`;
progress.style.display = 'block';
progress.querySelector('.progress-bar').style.width = '20%';
setTimeout(() => {