-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasicD3.tpl
145 lines (128 loc) · 3.34 KB
/
basicD3.tpl
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
<!doctype html>
<html lang = "en">
<style>
.header {
margin: 20px 50px 20px 50px;
text-align: center;
}
#top {
margin-left: 40px;
border-bottom: 1px solid black;
}
#footer {
margin-top: 20px;
border-top: 1px solid black;
}
.playback-controls {
margin-top: 20px;
}
.slider-controls {
margin-top: 5px;
}
.link {
fill: none;
stroke: #ccc;
stroke-width: 1.5px;
/* stroke-dasharray: 0, 2 1;*/
}
.top-buffer { margin-top:10px; }
.elt {
text-align: center;
}
.node text {
pointer-events: none;
font: 18px sans-serif;
}
path.link {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}
marker#licensing {
fill: green;
}
path.link.running {
stroke: green;
}
path.link.resolved {
stroke-dasharray: 0,2 1;
}
circle {
fill: #ccc;
stroke: #333;
stroke-width: 1.5px;
}
circle.bubble {
fill: #d1006c;
stroke: #333;
stroke-width: 1.5px;
}
circle.running {
fill: green;
}
circle.stack{
fill: yellow;
}
text {
font: 18px sans-serif;
pointer-events: none;
}
text.shadow {
stroke: #fff;
stroke-width: 3px;
stroke-opacity: .8;
}
</style>
<head>
<meta charset = "utf-8"/>
<title>D3 Test</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
<!--
<script type="text/javascript" src="/visuals/d3/d3.js"></script>
-->
<link href="/visuals/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/visuals/bootstrap/css/slider.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="/visuals/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/visuals/jquery/jquery.js"></script>
<script type="text/javascript" src="/visuals/smc/show.js"></script>
<script type="text/javascript" src="/visuals/bootstrap/js/bootstrap-slider.js"></script>
</head>
<body>
<div class="span12">
<div id="top" class="container controller">
<div class="span12 row-fluid top-buffer">
<div class="span4">
<H1>Show My Code</H1>
</div>
<div class="playback-controls offset1 span7">
<div id="back" class="elt span1">
<button class='btn disabled' id='backBtn'>
<i class="icon-step-backward"></i>
</button>
</div>
<div id="action" class="elt play span1">
<button class='btn'>
<i class="icon-play" id="playBtn"></i>
<i class="icon-pause" id="pauseBtn" style="display:none"></i>
<i class="icon-refresh" id="refreshBtn" style="display:none"></i>
</button>
</div>
<div id="fwd" class="elt span1">
<button class='btn' id='fwdBtn'>
<i class="icon-step-forward"></i>
</button>
</div>
<div class="slider-controls span3">
<input type='text' class="slider slider-horizontal" id="speedSlide" style="width: 140px"/>
</div>
</div>
</div>
</div>
<div id="graph" class="span12">
</div>
<div id="footer" class="span12 row-fluid">
<p>Hacked by <a href="https://github.com/karatekid/">Michael Christen</a>, <a href="https://github.com/jcon5294/">Joseph Constan</a> and <a href="https://github.com/mattste/">Matt Stewart</a> at <a href="http://www.mhacks.org/">Mhacks. </a>Grab the code <a href="https://bitbucket.org/karatekid/showmycode/overview/">here</a></p>
</div>
</div>
</body>
</html>