diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 00000000..a84f7dd0 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,15 @@ +jQuery(function($){ + + //Mobile menu, hamburger button. + $('body').on('click', '.hamburger', function(e){ + e.preventDefault(); + $('nav#links').toggleClass('open'); + }); + + //Forces the reset to empty the search field, not reset it to the PHP given value. + $('.search-wrapper').on('click', '.reset', function(e){ + e.preventDefault(); + $(e.target).closest('.search-wrapper').find('.search-field').val(''); + }); + +}); diff --git a/assets/style.css b/assets/style.css index 53da80ca..e1862bc8 100644 --- a/assets/style.css +++ b/assets/style.css @@ -133,6 +133,7 @@ nav#links a{ } nav#links a, +.sub-menu-outer a, .profiles a{ text-decoration:none; } diff --git a/src/templates/layout/_navigation.php b/src/templates/layout/_navigation.php index 60aee53d..bdaf5bf2 100644 --- a/src/templates/layout/_navigation.php +++ b/src/templates/layout/_navigation.php @@ -6,11 +6,4 @@ Stats Help - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/templates/layout/_searcher.php b/src/templates/layout/_searcher.php index 90a75eea..39f75f0d 100644 --- a/src/templates/layout/_searcher.php +++ b/src/templates/layout/_searcher.php @@ -1,6 +1,6 @@
- +
diff --git a/src/templates/layout/minimal.php b/src/templates/layout/minimal.php index 647ab1ef..7155cb0f 100644 --- a/src/templates/layout/minimal.php +++ b/src/templates/layout/minimal.php @@ -14,6 +14,7 @@ +