Compare commits

...

2 commits

Author SHA1 Message Date
j
a8d1e68c08 only fix links on /m/ 2025-06-17 08:39:35 +02:00
j
4da1907023 move i,em 2025-06-17 08:39:25 +02:00
3 changed files with 8 additions and 5 deletions

View file

@ -52,10 +52,6 @@ html, body {
}
i, em {
font-style: italic;
}
header, footer {
max-width: 1000px;
padding-top: 16px;

View file

@ -16,6 +16,10 @@ body {
outline: none;
}
i, em {
font-style: italic;
}
a {
color: var(--fg)
}

View file

@ -112,7 +112,10 @@ const clickLink = function(event) {
}
var href = a.attributes.href.value
var prefix = document.location.protocol + '//' + document.location.hostname
if (href.startsWith(prefix)) {
if (pandoraURL && href.startsWith(pandoraURL) {
href = href.slice(pandoraURL.length)
}
if (!pandoraURL && href.startsWith(prefix)) {
href = href.slice(prefix.length)
}
if (href.startsWith('/')) {