Template:Team:Valencia Biocampus/Templates/Header2

From 2014.igem.org

(Difference between revisions)
Line 161: Line 161:
}
}
</style>
</style>
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
+
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
-
<script type="text/javascript" src="https://2014.igem.org/wiki/index.php?title=Template:Team:Valencia_Biocampus/Templates/js/jqueryUI&action=raw&ctype=text/javascript"></script>
+
<script type="text/javascript" src="https://2013.igem.org/wiki/index.php?title=Template:Team:Valencia_Biocampus/Templates/js/bootstrap&action=raw&ctype=text/javascript"></script>
-
<script type="text/javascript" src="https://2014.igem.org/wiki/index.php?title=Template:Team:Valencia_Biocampus/Templates/js/bootstrap&action=raw&ctype=text/javascript"></script>
+
-
<script type="text/javascript" src="https://2013.igem.org/wiki/index.php?title=Template:Team:Valencia_Biocampus/Templates/js/slimbox2.js&action=raw&ctype=text/javascript"></script>
+
-
<link rel="stylesheet" type="text/css" href="https://2013.igem.org/wiki/index.php?title=Template:Team:Valencia_Biocampus/Templates/css/slimbox2.css&action=raw&ctype=text/css" />
+
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function() {
$(document).ready(function() {
Line 199: Line 196:
     }
     }
   });
   });
 +
  $(".container.withBackground").after("<div id='footer2'></div>");
});
});
</script>
</script>
-
   <div class="container">
+
   <div class="container" id="headerWrapper">
-
    <div class="row">
+
       <div id="logo" style="padding:0;margin:0; position:relative" >
-
       <div class="col-sm-3" id="logo" style="padding:0;margin:0; position:relative" >
+
         <a href="https://2014.igem.org/Team:Valencia_Biocampus" id="logo-header-link">
-
         <a href="https://2014.igem.org/Team:Valencia_Biocampus"><img src="https://static.igem.org/mediawiki/2014/3/3e/Vbt_logo_stool.png" data-alt-src="https://static.igem.org/mediawiki/2014/3/3e/Vbt_logo_stool.png" alt="The St2ool project" id="logoimage" />
+
         </a>
         </a>
         <a href="https://igem.org" id="igem-logo" style="width:23%; position:absolute; bottom:5px; left:50%;">
         <a href="https://igem.org" id="igem-logo" style="width:23%; position:absolute; bottom:5px; left:50%;">
-
          <img src="https://static.igem.org/mediawiki/2014/0/0a/Vbt_igem-logo.png" alt="Valencia Biocampus - iGEM Logo" />
 
         </a>
         </a>
       </div>
       </div>
-
       <ul class="col-sm-9 header-menu" id="header-menu">
+
       <ul id="header-top-menu" class="header-top-menu pull-right">
         <li id="menu_a_project">
         <li id="menu_a_project">
           <a href="https://2014.igem.org/Team:Valencia_Biocampus/Project">Project</a>
           <a href="https://2014.igem.org/Team:Valencia_Biocampus/Project">Project</a>
Line 227: Line 223:
           <a href="https://2014.igem.org/Team:Valencia_Biocampus/Biobricks">Biobricks</a>
           <a href="https://2014.igem.org/Team:Valencia_Biocampus/Biobricks">Biobricks</a>
         </li>
         </li>
 +
      </ul>
 +
      <ul id="header-top-menu2" class="header-top-menu pull-right">
         <li id="menu_a_human-practices">
         <li id="menu_a_human-practices">
-
           <a href="https://2014.igem.org/Team:Valencia_Biocampus/Results#OpenLicenseSection">Human Practices</a>
+
           <a href="https://2014.igem.org/Team:Valencia_Biocampus/Results#OpenLicense">Human Practices</a>
         </li>
         </li>
         <li id="menu_a_interlab-study">
         <li id="menu_a_interlab-study">
Line 249: Line 247:
         if(typeof activeSection !== "undefined" ){     
         if(typeof activeSection !== "undefined" ){     
-
             $("#header-menu li.active").removeClass("active");
+
             $("#header-menu2 li.active").removeClass("active");
             $("#menu_a_"+activeSection).addClass("active");
             $("#menu_a_"+activeSection).addClass("active");
         }
         }
Line 263: Line 261:
</script>
</script>
-
<style>
 
-
.back-to-top {
 
-
    cursor: pointer;
 
-
    position: fixed;
 
-
    bottom: 20px;
 
-
    right: 20px;
 
-
    display:none;
 
-
    width:45px;
 
-
    height:32px;
 
-
    line-height:32px;
 
-
    background: url('https://static.igem.org/mediawiki/2014/d/d2/Vbt_backtotoparrow.png') no-repeat center right;
 
-
}
 
-
</style>
 
-
<a id="back-to-top" href="#" class="back-to-top" role="button" title="Click to return on the top page" data-toggle="tooltip" data-placement="left">  </a>
 
-
<script type="text/javascript">
 
-
$(document).ready(function(){
 
-
    $(window).scroll(function () {
 
-
            if ($(this).scrollTop() > 50) {
 
-
                $('#back-to-top').fadeIn();
 
-
            } else {
 
-
                $('#back-to-top').fadeOut();
 
-
            }
 
-
        });
 
-
        // scroll body to 0px on click
 
-
        $('#back-to-top').click(function () {
 
-
            $('#back-to-top').tooltip('hide');
 
-
            $('body,html').animate({
 
-
                scrollTop: 0
 
-
            }, 800);
 
-
            return false;
 
-
        });
 
-
     
 
-
        $('#back-to-top').tooltip('show');
 
-
 
-
if ($('.tocWrapper').length ) {
 
-
var tocWrapperOffsetLeft = $('.tocWrapper').offset().left;
 
-
 
-
$('.tocWrapper').affix({
 
-
    offset: {
 
-
      top: $('.tab-pane.active').offset().top
 
-
    , bottom: function () {
 
-
        return (this.bottom = $('.footer').outerHeight(true))
 
-
      }
 
-
    }
 
-
  })
 
-
/*
 
-
$('.tocWrapper').on('affixed.bs.affix', function () {
 
-
//alert(tocWrapperOffsetLeft );
 
-
    $('.affix').css('left', tocWrapperOffsetLeft);
 
-
})
 
-
$('.tocWrapper').on('affixed-top.bs.affix', function () {
 
-
    $('.affix-top').css('left', 'auto');
 
-
})
 
-
*/
 
-
}
 
-
 
-
});
 
-
 
-
</script>
 
</html>
</html>

Revision as of 00:51, 14 October 2014