Skip to content

Instantly share code, notes, and snippets.

@l4u
Created March 6, 2012 16:15
Show Gist options
  • Save l4u/1987139 to your computer and use it in GitHub Desktop.
Save l4u/1987139 to your computer and use it in GitHub Desktop.
failing example for jquery-ui-punch (https://github.com/furf/jquery-ui-touch-punch/pull/29)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Draggable + Sortable</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.8.17/jquery-ui.min.js"></script>
<script src="jquery.ui.touch-punch.js"></script>
<style>
.demo ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 10px; }
.demo li { margin: 5px; padding: 5px; width: 150px; }
</style>
<script>
$(function() {
$( "#sortable" ).sortable();
});
</script>
</head>
<body>
<div class="demo">
<ul id="sortable">
<li class="ui-state-default">Item 1</li>
<li class="ui-state-default">Item 2</li>
<li class="ui-state-default">Item 3</li>
<li class="ui-state-default">Item 4</li>
<li class="ui-state-default">Item 5</li>
</ul>
</div><!-- End demo -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment