-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
72 lines (57 loc) · 2.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Intro to the Dragndrop Prototype</title>
<link rel="stylesheet" href="css/home.css">
<link rel="stylesheet" href="css/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1>Source Code for the Dragndrop Prototype</h1>
<p>Here are the various source code options for the drag n drop prototype.</p>
<p class="view"><a href="https://github.com/tchalvak/dragndrop">View the Project on GitHub <small>tchalvak/dragndrop</small></a></p>
<ul>
<!-- Apparently github changed it's zip/download/whatever releases policy -->
<li><a href="https://github.com/tchalvak/dragndrop/archive/v0.1.1.zip">Download <strong>ZIP File</strong></a></li>
<li><a href="https://github.com/tchalvak/dragndrop/archive/v0.1.1.tar.gz">Download <strong>TAR Ball</strong></a></li>
<li><a href="https://github.com/tchalvak/dragndrop">View On <strong>GitHub</strong></a></li>
</ul>
</header>
<section>
<h3>
<a id="simple-drag-n-drop-prototype" class="anchor" href="#simple-drag-n-drop-prototype" aria-hidden="true"><span class="octicon octicon-link"></span></a>Want to play with the prototype live?</h3>
<a class='go-to-prototype' href='drag.html'><button>RUN PROTOTYPE!</button></a>
<p>Uses the html5 Drag and Drop API for a clean starting prototype.</p>
<pre><code>function allowDrop(ev) {
ev.preventDefault();
}
function drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
}
function drop(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData("text");
ev.target.appendChild(document.getElementById(data));
}
</code></pre>
<p>Shows some example drag'n'drop code off the net.</p>
<h3>
<a id="full-page-design" class="anchor" href="#full-page-design" aria-hidden="true"><span class="octicon octicon-link"></span></a>Full page design
</h3>
<p>Obviously, this system will be visually rough in the prototyping stage.</p>
</section>
<footer>
<p>This project is maintained by <a href="https://github.com/tchalvak">tchalvak</a></p>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
</div>
<script src="js/scale.fix.js"></script>
</body>
</html>