Menu slide in/out isn't working! Need help!

Menu slide in/out isn't working! Need help!

Hey. I followed everything on doing a menu slide in and slide out from the left side. But it is not working if i click on the menu icon. Could you please help me?

index.html
  1. <!doctype html>
  2.   <html>

  3.     <head>
  4.       <title>Testpage</title>
  5.       <link href="style.css" rel="stylesheet" type"text/css" />
  6.     </head>

  7.     <body>
  8.       <header>
  9.         <div id="sidebar-btn">
  10.           <span></span>
  11.           <span></span>
  12.           <span></span>
  13.         </div>
  14.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  15.         <script tpye="text/javascript">

  16.         $(document).ready(function(){
  17.           $('#sidebar-btn').click(function(){
  18.             $('#sidebar').addClass('visible');
  19.         });
  20.         </script>
  21.       </header>
  22.       <div id="sidebar">
  23.         <ul>
  24.           <li><a href="#">Home</a></li>
  25.           <li><a href="#">About</a></li>
  26.           <li><a href="#">Portfolio</a></li>
  27.           <li><a href="#">Blog</a></li>
  28.         </ul>
  29.       </div>
  30.     </body>

  31.   </html>

style.css
  1. body {
  2.   background: #f3f3f3;
  3.   margin: 0;
  4.   padding: 0px;
  5.   font-family: "helvetica neue";
  6. }

  7. header {
  8.   background: white;
  9.   color: white;
  10.   padding: 20px;
  11.   box-shadow: 0px 0.5px 8px #C6C6C6;
  12.   position:static;
  13. }

  14. ul {
  15.   margin: 0px;
  16.   padding: 0px;
  17. }

  18. ul li{
  19.   list-style: none;
  20. }

  21. ul li a{
  22.   color: #f3f3f3;
  23.   text-decoration: none;
  24.   display: block;
  25.   width: 180px;
  26.   padding: 10px;
  27. }

  28. div {

  29. }

  30. #sidebar {
  31.   background: #333;
  32.   width: 200px;
  33.   height: 100%;
  34.   display: block;
  35.   position: absolute;
  36.   left: -200px;
  37.   top: 0px;
  38.   transition: left 0.3s linear;
  39. }

  40. #sidebar.visible {
  41.   left: 0px;
  42.   transition: left 0.3s linear;
  43. }

  44. #sidebar-btn {
  45.   display: inline-block;
  46.   vertical-align: middle;
  47.   width: 20px;
  48.   height: 15px;
  49.   cursor: pointer;
  50.   margin: 15px;
  51. }

  52. #sidebar-btn span {
  53.   height: 2px;
  54.   background: #333;
  55.   margin-bottom: 4px;
  56.   display: block;
  57. }

  58. footer {
  59.   color: black;
  60.   margin: 1%;
  61.   float: right;
  62.   clear: both;
  63. }