<script src="dragdrop.js" type="text/javascript"></script>
...
<div id="container1"></div>
<div id="container2"></div>
<div id="container3"></div>
...
<script type="text/javascript">
var dd = dragdrop.create();
dd.draw("container1");
dd.draw("container2");
dragdrop.create({ numSquares: 5 }).draw("container3");
</script>
<!DOCTYPE html>
<html>
<head>
<title>Dragdrop JS</title>
<link rel="stylesheet" type="text/css" href="dragdrop.css" />
<style type="text/css">
#box {
height: 200px;
width: 200px;
}
</style>
</head>
<body>
<div id="box"></div>
<script src="dragdrop.js" type="text/javascript"></script>
<script type="text/javascript">
dragdrop.create({
numSquares: 64,
squareSize: 25,
randomColors: 5,
border: { size: 1 }
}).draw("box");
</script>
</body>
</html>