Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpvar committed Mar 13, 2011
0 parents commit 46a3d9c
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
Empty file added README.md
Empty file.
46 changes: 46 additions & 0 deletions demo/index.html
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.special.dnd.js"></script>
<script type="text/javascript" src="../formation.js"></script>

<script type="text/javascript">
$(function() {
$('form').formation();
});
</script>

<style type="text/css">
form {
border: 1px solid #CCC;
height: 300px;
padding:20px;
border:1px solid #DDDDDD;
background: #f0f0f0;
}

.toolbar {
background-color: red;
height:300px;
}

form .drop-message {


text-align:center;
}
</style>
</head>
<body>
<div class="">
<h1>Formation</h1>
<h2 class="alt">Use the fields in the toolbar below to drag them into the form</h2>
</div>
<form>

<div class="drop-message">Drop Here</div>
</form>
<div class="">
</body>
</html>
16 changes: 16 additions & 0 deletions demo/jquery.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demo/jquery.special.dnd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions formation.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,11 @@
(function(window, $) {
$.fn.formation = function() {
var self = $(this);
return self.each(function() {




});
}
}(window, window.jQuery));

0 comments on commit 46a3d9c

Please sign in to comment.