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;
219215console.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
225220var color = d3 . scaleOrdinal ( d3 . schemeCategory10 ) ;
226221var simulation ;
227222
228-
229223svg = svg . call ( d3 . zoom ( ) . on ( "zoom" , zoomed ) ) . append ( "g" ) ;
230224
231225svg . 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>
514506dropbox . addEventListener ( "drop" , drop , false ) ;
515507dropbox . addEventListener ( "dragleave" , dragleave , false ) ;
516508
517-
518509// load initial graph data
519510var dataURL = getQueryVariable ( "data" ) ;
520511if ( dataURL == "" ) {
@@ -525,4 +516,4 @@ <h4 class="modal-title">JSON File</h4>
525516d3 . json ( dataURL , createGraph ) ;
526517</ script >
527518</ body >
528- </ html >
519+ </ html >
0 commit comments