Difference between revisions of "Template:SJTU-BioX-Shanghai"

Line 8: Line 8:
 
     // config of MathJx
 
     // config of MathJx
 
     MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});     
 
     MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});     
 
+
var isMouseOver = true;
 
     jQuery(document).ready(
 
     jQuery(document).ready(
 
function()
 
function()
Line 17: Line 17:
 
         // the unwrapping of dropdown menu
 
         // the unwrapping of dropdown menu
 
$("ul#nav--desktop li.dropdown_main_menu").hover(
 
$("ul#nav--desktop li.dropdown_main_menu").hover(
function(){$(this).find(".dropdown").stop(!0,!0).delay(200).fadeIn(250)},
+
function(){isMouseOver = true;$(this).find(".dropdown").stop(!0,!0).delay(200).fadeIn(250)},
 
function(){$(this).find(".dropdown").stop(!0,!0).delay(200).fadeOut(250)});
 
function(){$(this).find(".dropdown").stop(!0,!0).delay(200).fadeOut(250)});
 
         
 
         

Revision as of 13:05, 14 October 2018