Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (48 sloc) 1.42 kb
<html>
<head>
<script src="external/jquery.js"></script>
<script src="external/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="external/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="trackliner.css"/>
<script src="trackliner.js"></script>
<style>
.test-class {
cursor: pointer;
background-image: -moz-linear-gradient(top, #00f, #006);
background-image: -webkit-gradient(linear, left top, left bottom, from(#00f), to(#006));
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function (e) {
var trackline = new TrackLiner({
element: "container",
dynamicTrackCreation: true
});
trackline.addTrack( trackline.createTrack() );
var elems = document.getElementsByClassName('droppable');
for (var i=0; i<elems.length; ++i) {
$(elems[i]).draggable({
helper: 'clone',
revert: true,
revertDuration: 0,
});
} //for
}, false);
</script>
<style>
.droppable {
cursor: pointer;
}
.test {
font: 10pt Helvetica;
}
</style>
</head>
<body>
<div id="container" style="width: 100%; height: 50%;">
</div>
<div id="droppables">
<div class="droppable">Drag me!</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.