-
Notifications
You must be signed in to change notification settings - Fork 3
/
drag.html
160 lines (148 loc) · 7.83 KB
/
drag.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dragndrop Prototype</title>
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/dragstyles.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container dragndrop">
<header>
<h1 class='titling page-header'>Dragndrop Prototype <small>Using a tree</small></h1>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://github.com/tchalvak/dragndrop">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Dragon Drop
</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapsable-1">
<ul class="nav navbar-nav">
<li class="active"><a href='/drag.html#'><span class="glyphicon glyphicon-grain" aria-hidden="true"></span> Syndication Tree</a></li>
<li><a href='#'><span class='glyphicon glyphicon-pencil'></span> Write Articles</a></li>
<li><a href='#'><span class='glyphicon glyphicon-send'></span> Configure Hubs</a></li>
<li><a href='http://tchalvak.github.io/dragndrop/drag.html#'><span class='glyphicon glyphicon-globe'></span> Public Prototype</a></li>
</ul>
</div><!-- end of #navbar-collapsable-1 -->
</div><!-- end of .container-fluid -->
</nav>
</header>
<section class='core'>
<div class='core-container container-fluid'>
<div class='row'>
<aside class='col-md-3'>
<h2>Syndicate Articles To Blogging Hubs</h2>
<div class='aside-inner'>
<div class='panel panel-default'>
<div class='panel-heading'>
<h2 class='panel-title'>Blogging Hubs <small>Drag to the target</small></h2>
</div>
<div class='hub-area panel-body'>
<div id='hub-facebook' class='hub btn btn-default' draggable='true'>Facebook</div>
<div id='hub-wordpress' class='hub btn btn-default' draggable='true'>Wordpress</div>
<div id='hub-bloggr' class='hub btn btn-default' draggable='true'>Bloggr</div>
<div id='hub-delicious' class='hub btn btn-default' draggable='true'>Delicious</div>
<div id='hub-tumblr' class='hub btn btn-default' draggable='true'>Tumblr</div>
<div id='hub-google-plus' class='hub btn btn-default' draggable='true'>Google+</div>
<div id='hub-twitter' class='hub btn btn-default' draggable='true'>Twitter</div>
<div id='hub-8' class='hub btn btn-default' draggable='true'>hub 8</div>
<div id='hub-9' class='hub btn btn-default' draggable='true'>hub 9</div>
<div id='hub-10' class='hub btn btn-default' draggable='true'>hub 10</div>
</div>
</div>
<div class='panel panel-default'>
<div class='panel-heading'>
<h2 class='panel-title'>Articles <small>Drag into a hub</small></h2>
</div>
<div class='articles-area panel-body'>
<div id='article-A' class='article btn btn-default' draggable='true'>article A</div>
<div id='article-B' class='article btn btn-default' draggable='true'>article B</div>
<div id='article-C' class='article btn btn-default' draggable='true'>article C</div>
<div id='article-D' class='article btn btn-default' draggable='true'>article D</div>
<div id='article-E' class='article btn btn-default' draggable='true'>article E</div>
<div id='article-F' class='article btn btn-default' draggable='true'>article F</div>
</div>
</div>
</div><!-- end of .aside-inner -->
</aside>
<section class='network col-md-9'>
<div class='network-inner panel panel-default'>
<div class='panel-heading'>
<h1 class='titling panel-title'>Network</h1>
</div>
<div class='panel-body'>
<div class="tree">
<ul>
<li>
<a id='target' class='target' href="#">Target
<span class='url'>example.com/somepage</span>
</a>
</li>
</ul>
</div><!-- end of .tree -->
</div><!-- end of .panel-body -->
<div class='panel-footer'>
<div class='row'>
<div class='col-md-6 text-left'>
<button id='remove' class='interface-button'><span class='glyphicon glyphicon-trash'></span> Drop To Trash</button>
</div>
<div class='col-md-6 text-right'>
<button id='save-hubs' class='interface-button'><span class='glyphicon glyphicon-save'></span> Save</button>
</div>
</div>
</div>
</div><!-- end of .network-inner -->
<section class='info-area'>
<div class='panel panel-info'>
<div class='panel-heading'>
<h3 class='titling panel-title'>Info Area</h3>
</div>
<div id='just-info' class='panel-body'>
<h4>Detail view area for your hub <small>(example)</small></h4>
<ul class='list-group special-info'>
<li class='list-group-item'>Url: twitter.com/original_example</li>
<li class='list-group-item'>Indexing: details here</li>
<li class='list-group-item'>Profile: details here</li>
<li class='list-group-item'>More: etc</li>
</ul>
</div>
</div>
</section>
</section><!-- end of .network -->
</div><!-- end of .row -->
</div><!-- end of .core-container -->
</section><!-- End of .core -->
<footer>
<h3 class='titling'>Standard Footer</h3>
</footer>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
// turn on over/enter/leave detection, decreases performance
// var iosDragDropShim = { enableEnterLeave: true }
</script>
<script src="js/vendor/ios-drag-drop.js"></script>
<!-- Non-third-party js here -->
<script src="js/dragndrop.js"></script>
<!-- <script src="js/scale.fix.js"></script> -->
</body>
</html>