More reloadable links

This commit is contained in:
cuom1999 2022-12-16 05:11:24 -06:00
parent 87ff346d7f
commit be83844d28
2 changed files with 12 additions and 8 deletions

View file

@ -785,6 +785,11 @@ math {
z-index: 1000; z-index: 1000;
} }
select {
visibility: hidden;
max-height: 0;
}
@media (max-width: 500px) { @media (max-width: 500px) {
#notification { #notification {
margin-top: 0.6em; margin-top: 0.6em;

View file

@ -75,15 +75,14 @@
} }
function registerNavigation() { function registerNavigation() {
$('.pagination a').on('click', function(e) { const links = ['.pagination a', '.tabs a', '.problem-feed-option a'];
e.preventDefault(); for (link of links) {
navigateTo($(this)); $(link).on('click', function(e) {
})
$('.tabs a').on('click', function(e) {
e.preventDefault(); e.preventDefault();
navigateTo($(this)); navigateTo($(this));
}) })
} }
}
$(function () { $(function () {
window.addEventListener('popstate', (e) => { window.addEventListener('popstate', (e) => {