CodePen

HTML

            
              
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              function Move_Disc (from_pin, to_pin, callback) {
    var from_pin_discs = pins [from_pin];
    var from_top_disc  = pins [from_pin].pop ();
    var x_move         = (to_pin - from_pin)*10;
    var elem           = surface.Get_Elem (from_top_disc);
    
    pins [to_pin].push (from_top_disc);
    surface.Move_Elem (from_top_disc, elem.x, 5-elem.h/1.5);
    surface.Move_Elem (from_top_disc, elem.x + x_move, 5 - elem.h/1.5);
    surface.Move_Elem (from_top_disc, elem.x, 23.5 - elem.h/1.5*(pins[to_pin].length), callback);
}

            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................