-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
200 lines (191 loc) · 10.1 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>CableWeaver</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="bootstrap/css/bootstrap-spacelab-chivo.min.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.noborder { border:none }
#timeline { height:391px; overflow:auto; white-space:nowrap; font-size:92% }
#mrns { height:207px }
#permalink,#exporthtml,#exportdesc { width:100% }
</style>
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/cableweaver.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="shareModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="shareModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="shareModalLabel">Share current graph</h3>
</div>
<div class="modal-body">
<input id="permalink" readonly="readonly" onclick="this.select()">
</div>
<div class="modal-footer">
<p algn=left>
Copy this link and share it. It will open the dynamic graph you're viewing now, with the same set of selected cables (aka <em>story line</em>),
but won't preserve the current layout. This is suitable for sharing with people who want to continue exploring the graph.
If you also want to preseve your layout, try the <em>export</em> button.
</p>
</div>
</div>
<div id="exportModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="exportModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="exportModalLabel">Export a
<a target="_blank" href="http://thedod.github.io/cabelweaving">CableWeaving</a>-style web page</h3>
</div>
<div class="modal-body">
<form class="form-horizontal" method="post" target="_blank" action="https://gist.github.com/gists">
<input type="hidden" name="gist[files][][name]" value="index.html">
<input type="hidden" name="gist[files][][language]" value="HTML">
<div class="control-group">
<label class="control-label" for="exportdesc">Name this story-line...</label>
<div class="controls"><input id="exportdesc" name="gist[description]" onclick="this.select()"></div>
</div>
<div class="control-group">
<label class="control-label" for="exporthtml">...then either copy this HTML and paste it to a text editor,
<a target="_blank" href="http://codepen.io/pen/right">codepen</a>, etc. ...</label>
<div class="controls"><textarea id="exporthtml" name="gist[files][][content]" rows="10" readonly="readonly"
onclick="this.select()"></textarea></div>
</div>
<div class="control-group">
<label class="control-label" for="exportbutton">...or save it at github:</label>
<div class="controls">
<button class="btn btn-primary" type="submit" name="gist[public]" value="1">
<strong>Create gist</strong>
</button>
</div>
</div>
<input type="hidden" name="gist[files][][name]" value="README.md">
<input type="hidden" name="gist[files][][language]" value="Markdown">
<input id="exportreadme" type="hidden" name="gist[files][][content]" value="">
</form>
</div>
<div class="modal-footer">
<p align="left">
<strong>Tip:</strong> Drag the <a class="btn"
href="javascript:{if(location.hostname==='gist.github.com')window.open(location.toString().replace('s://gist.github.com','://bl.ocks.org'));void(0);}">bl.ockalize</a>
bookmarlet to your bookmark toolbar.
You can then click on the bookmarklet at the gist's page to view it via <a target="_blank" href="http://bl.ocks.org">bl.ocks.org</a>.
</p>
</div>
</div>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target="#top-menu-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">CableWeaver V0.6</a>
<div id="top-menu-collapse" class="nav-collapse collapse">
<ul class="nav">
<ul class="nav">
<li id="share-tab" class="hidden">
<a id="share-button" href="#shareModal" title="Permalink" role="button" data-toggle="modal"><i class="icon-share icon-white"></i>Share graph</a>
</li>
<li id="export-tab" class="hidden">
<a id="export-button" href="#exportModal" title="Export layout and story line as a skeleton web page" role="button" data-toggle="modal"><i
class="icon-download icon-white"></i>Export story</a>
</li>
</ul>
</ul>
<ul class="nav pull-right">
<ul class="nav">
<li><a target="_blank" title="TL;DR version: Click shows cable. Shift+click toggles manual layout. Ctrl+click toggles selection."
href="https://github.com/thedod/cableweaver/wiki"><i class="icon-info-sign icon-white"></i>Help</a></li>
<li><a target="_blank" title="Fork me" href="https://github.com/thedod/cableweaver#readme"><i class="icon-file icon-white"></i>Code</a></li>
<li><a target="_blank" title="Browse the CableWeaving story archive" href="http://thedod.github.io/cableweaving"><i class="icon-book icon-white"></i>Sample stories</a></li>
</ul>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="span3">
<div class="accordion" id="sidebar-accordion">
<div class="accordion-group noborder">
<div class="accordion-heading badge badge-inverse">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#sidebar-accordion" href="#sidebar-search">1. Search for graphs</a>
</div>
<div id="sidebar-search" class="accordion-body collapse in">
<div id="mrn-div" class="accordion-inner noborder">
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;">Loading graph index...</div>
</div>
</div>
</div>
</div>
<div class="accordion-group noborder">
<div class="accordion-heading badge badge-inverse">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#sidebar-accordion" href="#sidebar-select">2. Select a graph</a>
</div>
<div id="sidebar-select" class="accordion-body collapse">
<div id="graph-menu-div" class="accordion-inner noborder">
<div class="alert">You need to
<!-- <a class="accordion-toggle" data-toggle="collapse" data-parent="#sidebar-accordion" href="#sidebar-search">search</a> -->
search
first.
</div>
</div>
</div>
</div>
<div class="accordion-group noborder">
<div class="accordion-heading noborder badge badge-inverse">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#sidebar-accordion" href="#sidebar-timeline">3. Timeline</a>
</div>
<div id="sidebar-timeline" class="accordion-body collapse">
<div class="accordion-inner noborder" id="timeline">
<div class="alert">You need to
<a class="accordion-toggle" data-toggle="collapse" data-parent="#sidebar-accordion" href="#sidebar-select">select a graph</a>
first.
</div>
</div>
</div>
</div>
</div><!--/accordion-->
</div><!--/span-->
<div id="graph-area" class="span9"></div><!--/span-->
</div><!--/row-->
<hr>
<footer>
<small>
Powered by <a target="_blank" href="https://dubiousdod.org">The Dod</a> and
<a target="_blank" href="https://github.com/thedod/cableweaver/wiki/How-to-help">The People</a> •
Data: <a target="_blank" href="https://wikileaks.org">Wikileaks</a> •
Graph generation: <a target="_blank" href="http://wlwardiary.github.com/cable2graph/">Cable2Graph</a> •
Visualization: <a target="_blank" href="http://d3js.org">D3</a> •
<a target="_blank" href="http://twitter.github.com/bootstrap">Bootstap</a> theme:
<a target="_blank" href="http://bootswatch.com/spacelab/">Spacelab</a> •
Icons (<a target="_blank" href="http://creativecommons.org/licenses/by-nd/3.0/">cc-by-nd</a>):
<a target="_blank" href="http://glyphicons.com/">Glyphicons</a>
</small>
</footer>
</div><!--/.fluid-container-->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/d3.v3.min.js"></script>
<script src="js/mustache.js"></script>
<script src="js/templates.js"></script>
<script src="js/cableweaver.js"></script>
</body>
</html>