Fixed the menu to the top of the page on scroll down

Fixed the menu to the top of the page on scroll down
This is the simplest to fix menu on the top of the page when the content on scroll down
<script type="text/javascript">
var fixed_menu_hidden = true;
function dtbaker_scroll(){
var scrollTop = $(window).scrollTop();
if(scrollTop>380){
if(fixed_menu_hidden){
$('#menu-top').css('margin-top',0);
fixed_menu_hidden = false;
}
}else{
$('#menu-top').css('margin-top',-75);
fixed_menu_hidden = true;
}
}
window.onscroll = dtbaker_scroll;
$(function(){});
</script>

<style type="text/css">
#menu-top {
position:fixed;
left:0;
right:0;
top:0;
height:39px;
background:#13B8D6;
z-index:300;
margin-top: -75px;
}

Bilder: online-nrw.de

wallpaper-1019588
Exklusive Premiere: ELIS NOA veröffentlicht das expressive Video zu “For Her”
wallpaper-1019588
In I, TONYA wird Margot Robbie zur Eishexe Tonya Harding
wallpaper-1019588
Neues Volkstheater
wallpaper-1019588
INFO: Mein Resümee der Messe Fahrrad Essen 2018
wallpaper-1019588
Nach leichtem Zurückrudern wegen Putin-Desaster ist Trump gleich wieder ganz der Alte
wallpaper-1019588
#0817 [Session-Life] „Picture my Day“ Day #28
wallpaper-1019588
KSM veröffentlicht Trailer zu Hunter x Hunter
wallpaper-1019588
CD-REVIEW: The National – Boxers live in Brussels