Navbar resposivo not working error on line 47 (Materialize)

0
<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="utf-8">

    <title>Viphost</title>
    <link rel="stylesheet" type="text/css" href="css/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">    
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<header>
    <div id="socials"></div>
    <div class="container">

 <nav>
    <div class="nav-wrapper">
      <a href="#!" class="brand-logo">Logo</a>
      <a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
      <ul class="right hide-on-med-and-down">
        <li><a href="sass.html">Sass</a></li>
        <li><a href="badges.html">Components</a></li>
        <li><a href="collapsible.html">Javascript</a></li>
        <li><a href="mobile.html">Mobile</a></li>
      </ul>
      <ul class="side-nav" id="mobile-demo">
        <li><a href="sass.html">Sass</a></li>
        <li><a href="badges.html">Components</a></li>
        <li><a href="collapsible.html">Javascript</a></li>
        <li><a href="mobile.html">Mobile</a></li>
      </ul>
    </div>
  </nav>  
</header>
<section>
    <div id="carrousel"></div>
</section>
<footer></footer>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script><scripttype="text/javascript" src="js/materialize.min.js"></script>

<script>
    $( document ).ready(function(){
        $(".button-collapse").sideNav();
    }
</script>
</body>
</html>
body{
    padding: 0;
    margin: 0;

}
header{
    height: 120px;

}
#socials{
    height: 50px;
    background-color:  #f39c12;
}
nav{
    height: 65px;
    background-color: red;
    box-shadow: none;



} 
nav ul a{
    font-size: 1.2em;
    color:  orange;
}
nav .brand-logo {
    color: #f39c12;
}

#carrousel{
    height: 460px;
    background-color: #ccc;
}
    
asked by anonymous 08.02.2018 / 22:55

1 answer

0
  

FIRST - Your CSS is out of a style tag. Correct form:

<style>
body{
    padding: 0;
    margin: 0;

}
header{
    height: 120px;

}
#socials{
    height: 50px;
    background-color:  #f39c12;
}
nav{
    height: 65px;
    background-color: red;
    box-shadow: none;
} 
nav ul a{
    font-size: 1.2em;
    color:  orange;
}
nav .brand-logo {
    color: #f39c12;
}

#carrousel{
    height: 460px;
    background-color: #ccc;
}
</style>
  

SECOND - The jQuery is missing the ) , there is an error and the menu does not work. Correct form:

<script>
   $( document ).ready(function(){
       $(".button-collapse").sideNav();
   })
</script>
    
08.02.2018 / 23:46