Compare commits
2 commits
f99fae269d
...
a8d1e68c08
| Author | SHA1 | Date | |
|---|---|---|---|
| a8d1e68c08 | |||
| 4da1907023 |
3 changed files with 8 additions and 5 deletions
|
|
@ -52,10 +52,6 @@ html, body {
|
|||
}
|
||||
|
||||
|
||||
i, em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
header, footer {
|
||||
max-width: 1000px;
|
||||
padding-top: 16px;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@ body {
|
|||
outline: none;
|
||||
}
|
||||
|
||||
i, em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--fg)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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('/')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue