|
|
Line 1: |
Line 1: |
| <html> | | <html> |
| | | |
− | <script>
| |
| | | |
− |
| |
− | // allow button on the black menu bar to show/hide the side menu
| |
− | function hide_show_menu() {
| |
− |
| |
− | // in case you preview mode is selected, the menu is hidden for better visibility
| |
− | if (window.location.href.indexOf("submit") >= 0) {
| |
− | $(".igem_2017_menu_wrapper").hide();
| |
− | }
| |
− |
| |
− | // if the black menu bar has been loaded
| |
− | if (document.getElementById('bars_item')) {
| |
− |
| |
− | // when the "bars_item" has been clicked
| |
− | $("#bars_item").click(function() {
| |
− | $("#sideMenu").hide();
| |
− |
| |
− | // show/hide the menu wrapper
| |
− | $(".igem_2017_menu_wrapper").fadeToggle("100");
| |
− | });
| |
− | }
| |
− |
| |
− | // because the black menu bars loads at a different time than the rest of the page, this function is set on a time out so it can run again in case it has not been loaded yet
| |
− | else {
| |
− | setTimeout(hide_show_menu, 15);
| |
− | }
| |
− | }
| |
− |
| |
− |
| |
− | </script>
| |
| <style> | | <style> |
| .navbar { | | .navbar { |