Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
Line 12: Line 12:
$(this).children("li > ul").slideUp(500);
$(this).children("li > ul").slideUp(500);
});
});
-
});
 
-
$('.dropdown').hover(function(){
 
-
  $('.dropdown-toggle', this).trigger('click');
 
});
});
</script>
</script>
Line 143: Line 140:
//go to destination
//go to destination
$('html,body').animate({scrollTop:dest}, 700,'swing');
$('html,body').animate({scrollTop:dest}, 700,'swing');
 +
});
 +
$('.dropdown').hover(function(){
 +
  $('.dropdown-toggle', this).trigger('click');
});
});
</script>
</script>

Revision as of 22:55, 7 August 2014