Jsfiddle wont work locally

Jsfiddle wont work locally

I can“t get this Jsfiddle to work on my computer:

http://jsfiddle.net/v685v9t6/1024/

I have tried this:


  1. <html>
  2. <html>
  3. <head>  

  4.   <script type="text/javascript" src="//code.jquery.com/jquery-2.0.2.js"></script>

  5.       <script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  6.     
  7.     
  8.       <link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
  9.     

  10.   <style type="text/css">
  11.       .draggable {
  12.       width: 90px;
  13.       height: 90px;
  14.       padding: 0.5em;
  15.       float: left;
  16.       margin: 0 10px 10px 0;
  17.   }
  18.   #draggable, #draggable2 {
  19.       margin-bottom:20px;
  20.   }
  21.   #draggable {
  22.       cursor: n-resize;
  23.   }
  24.   #draggable3 {
  25.       cursor: move;
  26.   }
  27.   #containment-wrapper {
  28.       width: 700px;
  29.       height:500px;
  30.       border:1px solid #000;
  31.       padding: 5px;
  32.   }
  33.   h3 {
  34.       clear: left;
  35.   }
  36.   </style>





  37. <script>
  38. var sPositions = localStorage.positions || "{}",
  39.     positions = JSON.parse(sPositions);
  40. $.each(positions, function (id, pos) {
  41.     $("#" + id).css(pos)
  42. })
  43. $("#draggable3").draggable({
  44.     containment: "#containment-wrapper",
  45.     scroll: false,
  46.     stop: function (event, ui) {
  47.         positions[this.id] = ui.position
  48.         localStorage.positions = JSON.stringify(positions)
  49.     }
  50. });

  51. </script>

  52.   
  53. </head>

  54. <body>
  55.   

  56. <div id="containment-wrapper">
  57.     <div id="draggable3" class="draggable ui-widget-content">
  58.         <p>DRAG ME</p>
  59.     </div>


  60. </body>

  61. </html>