-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.html
More file actions
76 lines (64 loc) · 1.75 KB
/
view.html
File metadata and controls
76 lines (64 loc) · 1.75 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Graph Visualization</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<style>
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
.node {
stroke: #fff;
stroke-width: 2px;
}
.link {
stroke: #777;
stroke-width: 2px;
}
#graph {
width: 75%;
display: flex;
align-items: center;
}
p {
text-align: center;
}
.container {
width: 95vw;
display: flex;
}
#top-ranked p{
text-align: left;
margin-top: 20px;
}
#top-ranked {
margin-top: 50px;
}
#title {
font-size: 24px;
width: 100%;
margin: 10 auto;
text-align: center;
}
#title p {font-size: 1rem;}
</style>
</head>
<body style="font-family: sans-serif;">
<div id = 'title'>
<h3>Graph Visualization of the Page Ranks Calculated</h3>
<p>Hover over any node to see the link</p>
</div>
<div class='container'>
<div id="graph"></div>
<div id='top-ranked'></div>
</div>
<p>If you can't see the graph, make sure to enable JavaScript in your browser.</p>
<p>Also, make sure you're connected to the Internet</p>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="scripts/colors.js"></script>
<script type="text/javascript" src="scripts/graph.js"></script>
<script type="text/javascript" src="scripts/view.js"></script>
</body>
</html>