|
|
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>
| |
− |
| |
− | <head>
| |
− |
| |
− | <!-- This tells the browser that your page is responsive -->
| |
− | <meta name="viewport" content="width=device-width, initial-scale=1">
| |
− | <!-- This is from CSS templates -->
| |
− | <!--<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">-->
| |
− | <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
| |
− | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
| |
− |
| |
− | <!-- Latest compiled and minified CSS -->
| |
− | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
| |
− |
| |
− | <!-- Latest compiled JavaScript -->
| |
− | <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
| |
− |
| |
− | <!-- Google Analytics -->
| |
− | <script>
| |
− | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
| |
− | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
| |
− | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
| |
− | })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
| |
− |
| |
− | ga('create', 'UA-102136418-1', 'auto');
| |
− | ga('send', 'pageview');
| |
− |
| |
− | </script>
| |
| | | |
| </head> | | </head> |