diff --git a/renderer.py b/renderer.py index fbbe44c..d1c25b4 100644 --- a/renderer.py +++ b/renderer.py @@ -583,20 +583,8 @@ def oidc_nav_mobile(user_name, email_address, name): def render_search(): html_payload = """ -
  • - - - -
  • +
  • + search +
  • """ return Markup(html_payload) diff --git a/static/js/custom.js b/static/js/custom.js index 376d929..5628cfd 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -7,7 +7,6 @@ $(document).ready(function() { $("#search").addClass('searchbarfix'); //animate searchbar width increase to +150% $('#search').click(function(e) { - //handle other nav elements visibility here to avoid push down $('.search-hide').addClass('hide'); if (trig == 1){ $('#navfix2').animate({ @@ -29,7 +28,16 @@ $(document).ready(function() { $('.search-hide').removeClass('hide'); }); }); - + +function show_search() { + $('.').removeClass('hide'); + +} +function hide_search() { + $('.').addClass('hide'); + +} + //----------------------------------------------------------- // General Helpers //----------------------------------------------------------- diff --git a/templates/template.html b/templates/template.html index e2a8463..7cd2c73 100644 --- a/templates/template.html +++ b/templates/template.html @@ -55,6 +55,15 @@