Created
July 24, 2014 13:14
-
-
Save joelrbrandt/39ebe205cbfbd4e4805a to your computer and use it in GitHub Desktop.
in-window drag test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>jQuery UI Draggable - Default functionality</title> | |
<script src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script> | |
<style> | |
#draggable { width: 150px; height: 150px; padding: 0.5em; border: thin solid black; background-color: white;} | |
</style> | |
<script> | |
$(function() { | |
$( "#draggable" ).draggable(); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="draggable" class="ui-widget-content"> | |
<p>Drag me around</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment