-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
176 lines (149 loc) · 13.4 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="The Experiment Factory is an open source, modular infrastructure for the deployment of standardized behavioral experiments, surveys, and games.">
<title>The Experiment Factory</title>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:300' rel='stylesheet' type='text/css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script src="static/js/tipsy.js"></script>
<link rel="stylesheet" href="static/css/expfactory.css">
</head>
<body>
<h1 class="title"><img height="25px" style="padding-right:5px; padding-top:5px" src="static/images/expfactoryticketgray.png"/>The <span style="color:#CCC">Experiment</span> Factory</h1>
<!-- Experiments - so many tiny pieces! -->
<!-- Sidebar with logo -->
<div id="littlepieces"></div>
<script>
// Tooltips
var tip = d3.tip()
.attr('class', 'd3-tip')
.offset([-10, 0])
.html(function(d) {
return "<a href='" + d.exp_id + ".html' target='_blank'><strong><span style='color:black;text-decoration:none'>" + d.exp_id +"</span></a>";
})
// D3
// Colors to match primary paint colors
var colors = ["brown","#E9AB17","#1756E8"]
var n = 1; // number of distinct clusters (classes)
var m = 96; // total objects
var nodes = [{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "volatile_bandit" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "random_number_generation" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "number_letter" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "flanker" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "dietary_decision" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "shift_task" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "bickel_titrator" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "hierarchical_rule" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "local_global_shape" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "digit_span" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "perceptual_metacognition" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "adaptive_n_back" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "emotion_regulation" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "multisource" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "keep_track" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "antisaccade" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "simon" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "columbia_card_task_cold" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "gm_paradigm" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "angling_risk_task" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "n_back" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "stim_selective_stop_signal" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "shape_matching" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "probabilistic_selection" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "willingness_to_wait" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "dimensional_set_shifting" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "columbia_card_task_hot" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "plus_minus" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "stop_signal" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "attention_network_task" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "test_task_always_fail" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "threebytwo" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "kirby" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "letter_memory" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "psychological_refractory_period_gonogo_choice" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "choice_reaction_time" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "local_global_letter" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "tower_of_london" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "angling_risk_task_always_sunny" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "test_task" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "ax_cpt" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "ravens" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "simple_reaction_time" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "spatial_span" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "two_stage_decision" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "image_monitoring" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "information_sampling_task" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "stroop" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "recent_probes" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "discount_titrate" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "directed_forgetting" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "motor_selective_stop_signal" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "tower_of_london_imagine" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "psychological_refractory_period_two_choices" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "dot_pattern_expectancy" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "go_nogo" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "writing_task" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "dospert_rt_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "alcohol_drugs_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "dospert_eb_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "ten_item_personality_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "mindful_attention_awareness_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "future_time_perspective_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "k6_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "treatment_self_regulation_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "dospert_rp_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "bis11_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "bis_bas_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "self_regulation_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "holt_laury_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "brief_self_control_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "eating_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "upps_impulsivity_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "five_facet_mindfulness_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "dickman_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "erq_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "grit_scale_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "theories_of_willpower_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "impulsive_venture_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "leisure_time_activity_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "selection_optimization_compensation_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "demographics_survey" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "mpq_control_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "cognitive_reflection_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "sensation_seeking_survey" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "time_perspective_survey" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "add_it_up_lightning" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "grid_game" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "bridge_game" },{"cluster": 1, "radius": "10", "color": colors[2], "exp_id": "number_line" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "is_it_equal_lightning" },{"cluster": 1, "radius": "10", "color": colors[0], "exp_id": "is_it_equal_zen" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "whats_missing_zen" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "bucket_game" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "whats_missing_lightning" },{"cluster": 1, "radius": "10", "color": colors[1], "exp_id": "add_it_up_zen" }];
var width = 1400,
height = 220,
padding = 20, // separation between nodes
maxRadius = 50;
var x = d3.scale.ordinal()
.domain(d3.range(m))
.rangePoints([0, width], 1);
var nodes = d3.range(m).map(function(ii) {
var i = nodes[ii].cluster,
v = (i + 1) / m * -Math.log(Math.random());
return {
radius: Math.max(10,Math.sqrt(v) * maxRadius),
color: nodes[ii].color,
exp_id: nodes[ii].exp_id,
cy: x(i),
cx: width / 2
};
});
var force = d3.layout.force()
.nodes(nodes)
.size([width, height])
.gravity(0)
.charge(0)
.on("tick", tick)
.start();
var svg = d3.select("#littlepieces").append("svg")
.attr("width", width)
.attr("height", height);
svg.call(tip);
var circle = svg.selectAll("rect")
.data(nodes)
.enter().append("rect")
.attr("width", function(d) { return d.radius; })
.attr("height", function(d) { return d.radius; })
.style("fill", function(d) { return d.color; })
.on('mouseout.tip', tip.hide)
.on('mouseover.tip', tip.show)
.on('click', function(d){
window.location = d.exp_id + ".html";
})
.call(force.drag);
function tick(e) {
circle
.each(gravity(.2 * e.alpha))
.each(collide(.5))
.attr("x", function(d) { return d.x = Math.max(d.radius, Math.min(width - d.radius, d.x)); })
.attr("y", function(d) { return d.y = Math.max(d.radius, Math.min(height - d.radius, d.y)); });
}
// Move nodes toward cluster focus.
function gravity(alpha) {
return function(d) {
d.y += (d.cy - d.y) * alpha;
d.x += (d.cx - d.x) * alpha;
};
}
// Resolve collisions between nodes.
function collide(alpha) {
var quadtree = d3.geom.quadtree(nodes);
return function(d) {
var r = d.radius + maxRadius + padding,
nx1 = d.x - r,
nx2 = d.x + r,
ny1 = d.y - r,
ny2 = d.y + r;
quadtree.visit(function(quad, x1, y1, x2, y2) {
if (quad.point && (quad.point !== d)) {
var x = d.x - quad.point.x,
y = d.y - quad.point.y,
l = Math.sqrt(x * x + y * y),
r = d.radius + quad.point.radius + (d.color !== quad.point.color) * padding;
if (l < r) {
l = (l - r) / l * alpha;
d.x -= x *= l;
d.y -= y *= l;
quad.point.x += x;
quad.point.y += y;
}
}
return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1;
});
};
}
</script>
<!-- Centers -->
<div class="tagline1">A million little pieces...</div>
<div class="experiment"><h1 id="infobox"></h1></div>
<div style="position: absolute: top:50%; z-index: 1000; left:200px; padding: 20px; color: white; width:350px; background-color:#1757e8">
<p> Hi Friends! This is the Legacy Experiment Factory preview base. If you are looking for the new version (with Reproducible Container Experiments) please go <a href="https://expfactory.github.io/expfactory">here.</a> We are taking requests to migrate Legacy experiments for this new format, so please <a href="https://www.github.com/expfactory/expfactory/issues">reach out </a> to request a migration.</p>
</div>
<div class="tagline2">assembled for psychological science.</div>
<script>
// A $( document ).ready() block.
$( document ).ready(function() {
// Show text description on mouseover
$("#newlink").mouseover(function(){
$("#infobox").text("Create a new experiment or battery.")
})
$("#codelink").mouseover(function(){
$("#infobox").text("Contribute to our code base.")
})
$("#doclink").mouseover(function(){
$("#infobox").text("Learn about the experiment factory.")
})
$("#browselink").mouseover(function(){
$("#infobox").text("Browse our experimental paradigms.")
})
});
</script>
<nav>
<ul>
<li id="newlink"><a href="http://expfactory.readthedocs.org/en/latest/getting-started.html"><i class="fa fa-fw fa-plus"></i></a></li>
<li id="browselink"><a href="table.html"><i class="fa fa-fw fa-search"></i></a></li>
<li id="codelink"><a href="https://github.com/expfactory" target="_blank"><i class="fa fa-fw fa-code-fork"></i></a></li>
<li id="doclink"><a href="http://expfactory.readthedocs.org" target="_blank"><i class="fa fa-fw fa-question"></i></a></li>
</ul>
</nav>
</body>
</html>