From be83844d28db2f887aa5a64abbdf0f9f8b8dee63 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Fri, 16 Dec 2022 05:11:24 -0600 Subject: [PATCH] More reloadable links --- resources/base.scss | 5 +++++ templates/three-column-content.html | 15 +++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/resources/base.scss b/resources/base.scss index 6b62d50..7a87346 100644 --- a/resources/base.scss +++ b/resources/base.scss @@ -785,6 +785,11 @@ math { z-index: 1000; } +select { + visibility: hidden; + max-height: 0; +} + @media (max-width: 500px) { #notification { margin-top: 0.6em; diff --git a/templates/three-column-content.html b/templates/three-column-content.html index 2c219b0..0e89e36 100644 --- a/templates/three-column-content.html +++ b/templates/three-column-content.html @@ -75,14 +75,13 @@ } function registerNavigation() { - $('.pagination a').on('click', function(e) { - e.preventDefault(); - navigateTo($(this)); - }) - $('.tabs a').on('click', function(e) { - e.preventDefault(); - navigateTo($(this)); - }) + const links = ['.pagination a', '.tabs a', '.problem-feed-option a']; + for (link of links) { + $(link).on('click', function(e) { + e.preventDefault(); + navigateTo($(this)); + }) + } } $(function () {