forked from rDrama/rDrama
im retardo
parent
fb8866905f
commit
f2b8e1c6c5
|
@ -1,12 +1,16 @@
|
||||||
const post_permalinks = sessionStorage.getItem("post_permalinks").split(', ');
|
let post_permalinks = sessionStorage.getItem("post_permalinks")
|
||||||
const current_index = post_permalinks.indexOf(`'${location.href}'`)
|
|
||||||
if (current_index > -1) {
|
|
||||||
const permalink_after = post_permalinks[current_index+1]
|
|
||||||
|
|
||||||
if (permalink_after) {
|
if (post_permalinks) {
|
||||||
for (const btn of document.getElementsByClassName('post_navigation')) {
|
post_permalinks = post_permalinks.split(', ');
|
||||||
btn.classList.remove('d-none')
|
const current_index = post_permalinks.indexOf(`'${location.href}'`)
|
||||||
btn.href = permalink_after.slice(1, -1)
|
if (current_index > -1) {
|
||||||
|
const permalink_after = post_permalinks[current_index+1]
|
||||||
|
|
||||||
|
if (permalink_after) {
|
||||||
|
for (const btn of document.getElementsByClassName('post_navigation')) {
|
||||||
|
btn.classList.remove('d-none')
|
||||||
|
btn.href = permalink_after.slice(1, -1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue