forked from MarseyWorld/MarseyWorld
parent
304ff66f40
commit
21f08b9826
|
@ -7877,7 +7877,3 @@ tr:has(hideme) {
|
|||
margin-bottom: 4rem !important;
|
||||
border-top: 2px solid;
|
||||
}
|
||||
|
||||
.post_navigation:focus {
|
||||
outline: none !important;
|
||||
}
|
||||
|
|
|
@ -14,13 +14,9 @@ if (post_permalinks) {
|
|||
pid = permalink_after.split('/').slice(-2, -1)[0]
|
||||
}
|
||||
|
||||
function go_next() {
|
||||
location.replace(permalink_after.slice(1, -1))
|
||||
}
|
||||
|
||||
for (const btn of document.getElementsByClassName('post_navigation')) {
|
||||
btn.classList.remove('d-none')
|
||||
btn.onclick = go_next
|
||||
btn.href = permalink_after.slice(1, -1)
|
||||
}
|
||||
|
||||
document.addEventListener('keydown', (e) => {
|
||||
|
@ -30,7 +26,9 @@ if (post_permalinks) {
|
|||
!expandImageModal.classList.contains('show')
|
||||
) {
|
||||
if (["ArrowRight", "d"].includes(e.key))
|
||||
go_next()
|
||||
location.href = permalink_after.slice(1, -1)
|
||||
if (["ArrowLeft", "a"].includes(e.key))
|
||||
history.back()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -201,9 +201,9 @@
|
|||
{% endif %}
|
||||
|
||||
{% if p %}
|
||||
<button class="post_navigation d-none mobile-nav-icon d-md-none" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Next Post">
|
||||
<a class="post_navigation d-none mobile-nav-icon d-md-none" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Next Post">
|
||||
<i class="fas fa-arrow-right align-middle text-gray-500 black"></i>
|
||||
</button>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if g.browser == 'webview' %}
|
||||
|
@ -259,9 +259,9 @@
|
|||
|
||||
{% if p %}
|
||||
<li class="nav-item d-flex align-items-center text-center justify-content-center mx-1">
|
||||
<button class="post_navigation d-none nav-link" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Next Post">
|
||||
<a class="post_navigation d-none nav-link" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Next Post">
|
||||
<i class="fas fa-arrow-right"></i>
|
||||
</button>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue