Advertisement
Guest User

Untitled

a guest
Mar 31st, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.99 KB | None | 0 0
  1. <div class="navbar-fixed"><!--the bar at the top of the screen "fixed" means it follows down the screen-->
  2.             <nav class="orange darken-2"><!--the color of the nav bar-->
  3.                 <div class="nav-wrapper container">
  4.                     <a href="index.html" class="brand-logo">FreePBX Support</a>
  5.                     <a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
  6.                     <ul class="right hide-on-med-and-down"><!--you can always add another item to the bar--><!--class="right hide-on-med-and-down"-->
  7.                         <li class="active"><a href="index.html">Home</a></li>
  8.                         <li><a href="contact.html">Contact</a></li>
  9.                     </ul>
  10.                     <ul class="side-nav" id="mobile-demo"><!--you can always add another item to the bar-->
  11.                         <li><a href="index.html">Home</a></li>
  12.                         <li><a href="contact.html">Contact</a></li>
  13.                     </ul>
  14.                 </div>
  15.             </nav>
  16.             </div>
  17.  
  18.  
  19. I put the script inline
  20.  
  21. <script>
  22. $( document ).ready(function(){
  23.   $(".button-collapse").sideNav();
  24. })
  25. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement