Skip to content

Commit dae49dc

Browse files
committed
mobile menu
1 parent de2fda7 commit dae49dc

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
certgraph
2+
certgraph.mac
23
*.json

docs/index.html

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,20 @@
3232
color: #222;
3333
border-color: #222;
3434
}
35-
3635
</style>
3736
</head>
38-
3937
<body>
4038
<div class="container">
4139

4240
<nav class="navbar navbar-inverse">
4341
<div class="container-fluid">
4442
<div class="navbar-header">
45-
<!--<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
43+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
4644
<span class="sr-only">Toggle navigation</span>
4745
<span class="icon-bar"></span>
4846
<span class="icon-bar"></span>
4947
<span class="icon-bar"></span>
50-
</button>-->
48+
</button>
5149
<a class="navbar-brand" href="#">CertGraph</a>
5250
</div>
5351
<div id="navbar" class="navbar-collapse collapse">
@@ -77,7 +75,6 @@ <h3 class="panel-title pull-left">Graph</h3>
7775
<svg id="graph" width="100%" height="500"></svg>
7876
</div>
7977

80-
8178
<div class="panel panel-info">
8279
<div class="panel-heading">Info</div>
8380
<div class="panel-body" id="node-info">
@@ -121,7 +118,6 @@ <h3 class="panel-title pull-left">Graph</h3>
121118

122119
</div>
123120

124-
125121
<footer>
126122
<hr>
127123
<div class="row">
@@ -218,14 +214,12 @@ <h4 class="modal-title">JSON File</h4>
218214
height = svgElem.height.animVal.value;
219215
console.log(width, height);*/
220216

221-
222217
// TODO THIS
223218
// http://www.coppelia.io/2014/07/an-a-to-z-of-extra-features-for-the-d3-force-layout/
224219

225220
var color = d3.scaleOrdinal(d3.schemeCategory10);
226221
var simulation;
227222

228-
229223
svg = svg.call(d3.zoom().on("zoom", zoomed)).append("g");
230224

231225
svg.append("defs").append("marker")
@@ -295,7 +289,6 @@ <h4 class="modal-title">JSON File</h4>
295289
updateInfoBox(d);
296290
});
297291

298-
299292
node.append("title")
300293
.text(function(d) { return d.id; });
301294

@@ -306,7 +299,6 @@ <h4 class="modal-title">JSON File</h4>
306299
simulation.force("link")
307300
.links(graph.links);
308301

309-
310302
function ticked() {
311303
link
312304
.attr("x1", function(d) { return d.source.x; })
@@ -514,7 +506,6 @@ <h4 class="modal-title">JSON File</h4>
514506
dropbox.addEventListener("drop", drop, false);
515507
dropbox.addEventListener("dragleave",dragleave, false);
516508

517-
518509
// load initial graph data
519510
var dataURL = getQueryVariable("data");
520511
if (dataURL == "") {
@@ -525,4 +516,4 @@ <h4 class="modal-title">JSON File</h4>
525516
d3.json(dataURL, createGraph);
526517
</script>
527518
</body>
528-
</html>
519+
</html>

0 commit comments

Comments
 (0)