-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
203 lines (155 loc) · 6.12 KB
/
index.html
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="description" content="CodeNeuro is bringing neuroscientists, data scientists, hackers, and visualizers together to help understand the brain.">
<title>CodeNeuro</title>
<link rel="stylesheet" href="css/shelves.css">
<link rel="stylesheet" href="css/landing-styles.css">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Fjord+One' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/d3.v3.min.js"></script>
<link rel="icon" sizes="16x16 32x32" href="favicon.ico?v=2">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<html>
<body>
<div class="row">
<div class="column-7 suffix-5">
<img style="width: 600px; margin-bottom: -10px" src="svg/logolanding.svg">
</div>
</div>
<div class="row" style="padding-bottom: 50px">
<div class="column-5 suffix-1">
<h1>Bringing neuroscience and data science together</h1>
<div class='row visible-mobile'>
<hr>
<h1>Events</h1>
<h4><a class='event'href='http://codeneuro.org/2014/SF'>SF 2014</a></h4>
<h4><a class='event'href='http://codeneuro.org/2015/NYC'>NYC 2015</a></h4>
<h4><a class='event'href='http://codeneuro.org/2015/SF'>SF 2015</a></h4>
<h4><a class='event'href='http://codeneuro.org/2016/SF'>SF 2016</a></h4>
<hr style='margin-top: 40px'>
<br>
<br>
</div>
<div class="text-box">
<p>CodeNeuro is about understanding the <span class="highlight">brain</span>, and the computing <span class="highlight">technology</span> we need to get there.</p>
</div>
<br>
<div class="text-box">
<p>We're a collective of neuroscientists, data scientists, hackers, and visualizers working <span class="highlight">together</span> to tackle one of the most fascinating problems in biology.</p>
</div>
<br>
<div class="text-box">
<p>We do this through meetups, hackathons, competitions, and <span class="highlight">sharing</span> data and code.</p>
</div>
</div>
<div class="column-6">
<div class="row visible-desktop">
<div id="network" style="margin-top: -50px;">
</div>
</div>
</div>
</div>
<hr style="border-top: dotted 3px; border-bottom: none; color: rgb(179,179,179)">
<div>
<div class="row">
<div class="column-10">
<h4>Coordinated by Jeremy Freeman, Nicholas Sofroniew, Michael Broxton, Logan Grosenick, Eric Trautmann, Lacey Kitch, Matt Conlen, Olga Botvinnik, Deep Ganguli, Jeff Hammerbacher, and many others. <br>All our meetings and events abide by the <a class='simplelink' href='http://confcodeofconduct.com/'>Conf Code of Conduct</a>, please read it.</h4>
</div>
<div class="column-2" style="text-align: right; margin-top: 15px">
<span><a class="sociallink" href="mailto:[email protected]"><i id="icon" class="fa fa-envelope-square fa-4x"></i></a><a class="sociallink" href="https://twitter.com/CodeNeuro"><i id="icon" class="fa fa-twitter-square fa-4x"></i></a></span>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
var width = 500,
height = 500
var color = [d3.rgb(50,110,220), d3.rgb(155,75,220), d3.rgb(0,170,78)]
var svg = d3.select("#network").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("network.json", function(json) {
json.nodes = json.nodes.map(function(d) {
d.x = width / 2
d.y = height / 2
return d
})
var force = d3.layout.force()
.size([width, height])
.linkDistance(250)
.charge(0.01)
.gravity(0.1)
.nodes(json.nodes)
.links(json.links)
.start();
var link = svg.selectAll(".link")
.data(json.links)
.enter().append("line")
.attr("class", "link")
.style("stroke", "rgb(50,50,50)")
.style("stroke-opacity", 0.9)
.style("stroke-width", function(d) { return Math.sqrt(d.value); });
var node = svg.selectAll(".node")
.data(json.nodes)
.enter().append("g")
.attr("class", "node")
.call(force.drag);
node.append("image")
.attr("xlink:href", function(d) { return "png/network/" + d.name + ".png"; })
.attr("x", -50)
.attr("y", -50)
.attr("width", 100)
.attr("height", 100);
node.append("a")
.attr("xlink:href", function(d){return d.url;})
.append("circle")
.attr("class", "node")
.attr("r", 50)
.style("fill", "rgb(100,100,100)" )
.style("fill-opacity", 0.6)
.style("stroke", "#5DD4D4")
.style("stroke-width", 5)
.call(force.drag)
.on("mouseover", mover)
.on("mouseout", mout)
function mover(d) {
d3.select(this).transition().style("fill", "#5DD4D4")
}
function mout(d) {
d3.select(this).transition().style("fill", "rgb(100,100,100)")
}
function mout2(d) {
d3.select(this).transition().style("fill", "rgb(201,201,201)")
}
node.append("a")
.attr("xlink:href", function(d){return d.url;})
.append("text")
.text(function(d) { return d.name; })
.attr("class", "location")
.style("fill", "rgb(201,201,201)")
.style("font-size", 20)
.attr("text-anchor", "middle")
.attr("y", 80)
.attr("x", 0)
.on("mouseover", mover)
.on("mouseout", mout2)
node.transition()
.duration(750)
.delay(function(d, i) { return i * 5; })
force.on("tick", function() {
link.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })
.attr("y2", function(d) { return d.target.y; });
node.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
});
});
</script>