Difference between revisions of "Template:HFLS H2Z Hangzhou"

Line 372: Line 372:
  
 
$("#top_menu_14").css({
 
$("#top_menu_14").css({
top: -$("#top_menu_14").height() + "px",
+
top: "-20px",
 
"padding-bottom": "1rem",
 
"padding-bottom": "1rem",
 
transition: "top 0.3s"
 
transition: "top 0.3s"
 
});
 
});
 +
 +
var menu_trig = $("<div></div>");
 +
menu_trig.css({
 +
position: "fixed",
 +
height: "10px",
 +
width: "100%",
 +
top: "0",
 +
left: "0"
 +
}).mouseenter(function () {
 +
$("#top_menu_14").css("top", "0");
 +
}).mouseleave(function () {
 +
$("#top_menu_14").css("top", "-20px");
 +
});
 +
 +
$(document).append(menu_trig);
  
 
glob.Aquamade = {};
 
glob.Aquamade = {};

Revision as of 01:26, 17 June 2017