Line 4: | Line 4: | ||
$("head").append('<meta name="viewport" content="width=device-width, initial-scale=1">'); | $("head").append('<meta name="viewport" content="width=device-width, initial-scale=1">'); | ||
var showMenu = !1, burger = document.getElementById("burger"); | var showMenu = !1, burger = document.getElementById("burger"); | ||
− | function popup(e) { | + | function popup(e, nofix) { |
$("#" + e).css("display", "block"); | $("#" + e).css("display", "block"); | ||
− | $("header").css("top", "15px"); | + | if (nofix) { |
− | + | $("header").css("top", "15px"); | |
+ | $(".main").css("margin-top", "15px"); | ||
+ | } | ||
location.hash = "#" + e; | location.hash = "#" + e; | ||
} | } | ||
Line 24: | Line 26: | ||
return; | return; | ||
} | } | ||
− | popup(hash) | + | popup(hash, true) |
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 08:20, 20 November 2019