-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (75 loc) · 2.69 KB
/
index.html
File metadata and controls
83 lines (75 loc) · 2.69 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
77
78
79
80
81
82
83
<!DOCTYPE html>
<!-- python3 -m http.server -->
<!-- http://0.0.0.0:8000/ -->
<meta charset="utf-8">
<html lang="en-us">
<head>
<link href="css/home.css" rel="stylesheet" type="text/css" />
<script src="/js/d3.v4.min.js" type="text/javascript"></script>
<script src="/js/d3-scale-chromatic.v1.min.js"></script>
<link href='/fonts/nunitoSans.css' rel="stylesheet">
</head>
<main role="main">
<div class='main-menu'>
<div class="menu-list">
<table>
<tbody>
<span class='zero-col'>
<svg id='tree1' width='50%' height='550px'></svg>
</span>
<span class='first-col' padding-left='10px'></span>
</tbody>
</table>
</div>
</div>
</main>
<script src='/svg/cottonwood.js' type="text/javascript"></script>
<script>
const yHeight = 53
const modelColors = [
'#8c510a',
'#bf812d',
'#dfc27d',
'#FFD700',
'#80cdc1',
'#35978f',
// '#01665e',
'#435084',
'#2E48A5',
'#613375',
'#9C3DF4'
]
const data =
[
{'id': 'Cellular Automata', 'url': "/explorables/briansBrain/briansBrain.html"},
{'id': 'Dynamical Monads', 'url': "/dynamical-monads/dynamical.html"},
{'id': 'Schelling Segregation', 'url': "/explorables/schelling/schelling.html"},
{'id': 'Nagel-Schreckenberg Traffic', 'url': "/explorables/nagelschreckenberg/nagelSchreckenberg.html"},
{'id': 'The Lorenz System', 'url': "/explorables/lorenz/lorenz.html"},
{'id': 'Primitive Roots', 'url': "/galois/index.html"},
{'id': "Takens Method", 'url': "/takens/index.html"},
{'id': 'Color Summaries', 'url': "/colorSummaries/index.html"},
{'id': 'Contagion Network', 'url': "/explorables/epidemics/epidemics.html"},
// {'id': 'Ann Nitze Hiking Trails', 'url': "/maps/hiking.html"},
]
var col = d3
.selectAll('.first-col').append('svg')
.attr('height', 550).attr('width', 470)
var modelLinks = col.selectAll("text").data(data).enter()
modelLinks.append('g')
.selectAll("circle").data(data)
.enter().append("circle")
.attr('id', function(d) { return d.id })
.attr("cx", 20).attr("r", 16)
.attr("cy", function(d, i) { return i*yHeight + 22 })
.attr('fill', function(d, i) { return modelColors[i] })
modelLinks.append('a')
.attr('href', function(d) { return d.url })
.append('text').attr('class', 'menu').attr('x', 45)
.attr('y', function(d, i) { return i*yHeight + 34})
.attr('font-family', 'Nunito Sans')
.attr("font-size", "30px")
.text(function(d) {return d.id})
</script>
<script src='/svg/cottonwood.js' type="text/javascript"></script>
</html>