Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 46a3d9cffb6064ed1042b9d3fe3761dfba8ea8d3 @tmpvar committed Mar 13, 2011
Showing with 75 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. 0 README.md
  3. +46 −0 demo/index.html
  4. +16 −0 demo/jquery.js
  5. +1 −0 demo/jquery.special.dnd.js
  6. +11 −0 formation.js
@@ -0,0 +1 @@
+.DS_Store
No changes.
@@ -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>

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -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.