I can't get my jquery code to work when inserting it into a separate js file and not having it in the html. Right now it looks like this
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="js/480.js" media="screen and (max-width: 480px)" defer</script>
inside "480.js" it looks like this
document.getElementById("navbar").style.display = "none" {
$('#navbar').hide()
}