From 2013.igem.org
(Difference between revisions)
|
|
Line 142: |
Line 142: |
| </body> | | </body> |
| <script> | | <script> |
- | jQuery(document).ready(function($) {
| |
- |
| |
- |
| |
- | $(".dropdown").mouseenter(function(){
| |
- | $(".dropdown-menu").hide();
| |
- | $(this).find(".dropdown-menu").show();
| |
- | });
| |
- |
| |
- | $(".dropdown").mouseleave(function(){
| |
- | $(this).find(".dropdown-menu").hide();
| |
- | });
| |
- |
| |
- | $(".dropdown li").mouseenter(function(){
| |
- | $(this).addClass("active");
| |
- | });
| |
| | | |
- | $(".dropdown li").mouseleave(function(){
| |
- | $(this).removeClass("active");
| |
- |
| |
- | });
| |
- |
| |
- |
| |
- |
| |
- | $(window).scroll($.debounce( 300, true, function(){
| |
- | $(".navbar").hide();
| |
- | $(".left_wrap").animate({
| |
- | width: "65px"
| |
- | }, 250, function() {
| |
- | });
| |
- | }));
| |
- | $(window).scroll($.debounce(300, function(){
| |
- |
| |
- | $(".navbar").show();
| |
- | $(".left_wrap").animate({
| |
- | width: "200px"
| |
- | }, 250, function() {
| |
- |
| |
- | });
| |
- | }));
| |
- |
| |
- | });
| |
| </script> | | </script> |
| </html> | | </html> |
Revision as of 12:38, 22 August 2013
Team