Skip to content

Commit 8cb2f55

Browse files
committed
Linked the user click to displaying the profile view on the page for the org view.
1 parent 435c5d7 commit 8cb2f55

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

public/OrgRepoGraph.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<script src="js/githubAPI.js"></script>
1717
<script src="js/createOrgRepoGraph.js"></script>
1818
<script src="js/utilities.js"></script>
19+
<script src="js/profileGen.js"></script>
1920

2021
<script type="text/javascript" src="js/vis/vis.js"></script>
2122
<link href="js/vis/vis-network.min.css" rel="stylesheet" type="text/css" />
@@ -50,17 +51,17 @@
5051
</ul>
5152
</div>
5253
</div>
53-
<div class="main container">
54+
<div class="main containerCustom">
5455

55-
<div class="row">
56+
<div class="row containerCustom">
57+
<div class="col-md-2 col-12">
58+
<div id="profileGen"></div>
59+
</div>
5660
<div class="col-md-8 col-12">
5761
<h2 id="graphLabel"></h2>
5862
<div id="myGraph" class="w-100"></div>
5963
<pre id="eventSpan"></pre>
6064
</div>
61-
<div class="col-md-4 col-12 w-100">
62-
<div id="profileGen"></div>
63-
</div>
6465
</div>
6566

6667
<script>

public/js/createOrgRepoGraph.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,16 @@ function addOrgUsers(orgname, page)
354354
})
355355
}
356356

357-
357+
function bringUpProfileView(id)
358+
{
359+
for(var i = 0; i < nodes.length; i++)
360+
{
361+
if(nodes[i].id === id)
362+
{
363+
profileGen(nodes[i].name, "profileGen");
364+
}
365+
}
366+
}
358367

359368
/**
360369
* Creates a graph

public/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,12 @@ body {
229229
top: 10px;
230230
position: relative;
231231
}
232+
}
233+
234+
.containerCustom {
235+
width: 100%;
236+
padding-right: 0px;
237+
padding-left: 0px;
238+
margin-right: 0px;
239+
margin-left: 0px;
232240
}

0 commit comments

Comments
 (0)