-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·226 lines (200 loc) · 9.42 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="/favicon.png" />
<style type="text/css">
html {
margin: 0;
padding: 0;
width: 100%;
min-height: 100%;
position: relative;
}
body {
margin: 0;
padding: 0;
min-height: 100%;
min-width: 100%;
background-color: black;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
position: relative;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
}
.container {
text-align: center;
margin: 0 auto;
max-width: 600px;
color: #2d3a3f;
padding-top: 60px;
}
.logo {
text-align: center;
margin: 0 auto;
max-width: 1600px;
padding-top: 60px;
}
</style>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<div class="logo"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 345.7 53" enable-background="new 0 0 345.7 53" xml:space="preserve">
<g>
<path fill="#231F20" d="M10.7,47.8H4.6V5.9h25V12h-19v11.8h16.8v6.1H10.7V47.8z"/>
<path fill="#231F20" d="M52.4,35.5H37.3c-1.6,3.8-3.7,8.9-5,12.4h-6.5L42.6,5.3H47l16.9,42.5h-6.5L52.4,35.5z M39.6,29.8H50
L44.9,15L39.6,29.8z"/>
<path fill="#231F20" d="M70.1,48V11.5H57.4V5.8h31.4v5.6H76.2V48H70.1z"/>
<path fill="#231F20" d="M97.6,23.6h17.8V5.9h6.1v41.9h-6.1V29.6H97.6v18.2h-6.1V5.9h6.1V23.6z"/>
<path fill="#231F20" d="M130.6,11.7c3.8-3.9,9.2-6.4,15.1-6.4c5.9,0,11.3,2.5,15.2,6.4c3.8,3.9,6.2,9.2,6.2,15.2
s-2.5,11.3-6.2,15.2c-3.9,4-9.2,6.4-15.2,6.4c-5.9,0-11.3-2.4-15.1-6.4c-3.8-3.9-6.2-9.2-6.2-15.2S126.8,15.6,130.6,11.7z
M156.5,16c-2.8-2.8-6.7-4.6-10.9-4.6c-4.1,0-8,1.7-10.7,4.6c-2.8,2.8-4.5,6.6-4.5,10.9s1.7,8.1,4.5,10.9c2.8,2.8,6.6,4.6,10.7,4.6
c4.1,0,8-1.7,10.9-4.6c2.7-2.8,4.4-6.5,4.4-10.9C161,22.5,159.2,18.7,156.5,16z"/>
<path fill="#231F20" d="M177.8,47.8h-6.1v-42h4.9l13.9,20.4l13.9-20.4h4.8v42h-6V18.3l-11,16.3h-3.4l-11-16.3V47.8z"/>
<path fill="#231F20" d="M216.8,46.9h22.6v1c-7.9,0-15.7,0-23.5,0V5.9h1V46.9z"/>
<path fill="#231F20" d="M269.1,33.7h-21.2l-5.7,14.1h-1L258,5.2h1l16.9,42.6h-1L269.1,33.7z M248.3,32.8h20.5L258.5,6.5L248.3,32.8
z"/>
<path fill="#231F20" d="M304.8,11.8c1,2.5,1,5.5,0,8.1c-0.9,2.3-2.5,4.2-4.9,5.2c12.3,2.2,11.6,22.7-2.2,22.7c-4.6,0-14.2,0-18.7,0
V5.9c4,0,13,0,17,0C300.5,5.9,303.5,8.5,304.8,11.8z M280,24.9h16c4.1,0,6.8-2.3,8-5.3c0.9-2.3,0.9-5,0-7.4c-1.2-3-3.8-5.3-8-5.3
h-16V24.9z M280,46.9h17.7c13.4,0,13.4-21.1,0-21.1H280V46.9z"/>
<path fill="#231F20" d="M338.9,14.7c-0.4-1.7-1.1-3.2-2.3-4.6c-2.6-2.8-6.7-3.9-10.5-3.8c-4,0.1-8.5,1.5-11,4.8
c-1.5,1.9-2,4.1-1.9,6.4c1.1,14.7,24.7,3.2,27.5,16.6c1.9,8.9-6.5,14.2-14.5,14.2c-6.1,0-13.6-3.5-14.3-10.3l-0.1-0.4l1-0.1
l0.1,0.4c0.7,6.3,7.7,9.5,13.4,9.5c7.3,0,15.2-4.7,13.5-13.1c-2.7-12.5-26.4-1.1-27.5-16.7c-0.2-2.5,0.4-5,2-7
c6.1-7.9,23.4-6.9,25.4,4l0.1,0.5l-0.9,0.2L338.9,14.7z"/>
</g>
</svg>
</div>
<div class="container">
<h1>
We solve technical problems for scientific organisations.
</h1>
<p>Our expertise includes science software engineering; statistical modelling and data science; and literature analysis and content mining.
<div class="jumbotron" style="background-color:rgba(205,205,205,0.45);">
<div class="row">
<h2>We are...</h2>
<div class="col-md-6">
<img src="https://github.com/fathomlabs/fathomlabs.github.io/raw/master/img/demi.png" alt="Demetrius Subayar" class="img-circle" width="200px" height="200px">
<p>Demetrius Subayar / demetrius@fathomlabs.io</p>
</div>
<div class="col-md-6">
<img src="https://avatars3.githubusercontent.com/u/836040?v=3&s=250" alt="Richard Smith-Unna" class="img-circle" width="200px" height="200px"></div>
<p>Rik Smith-Unna / <a href="https://github.com/blahah">@blahah</a> / richard@fathomlabs.io</p>
</div>
</div>
</div>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.1.5/trianglify.min.js"></script>
<script>
var t = new Trianglify();
var button = document.getElementById('button'),
saveas = document.getElementById('saveas'),
subtractnoise = document.getElementById('subtractnoise'),
addnoise = document.getElementById('addnoise'),
noise_display = document.getElementById('noise'),
subtractcellsize = document.getElementById('subtractcellsize'),
addcellsize = document.getElementById('addcellsize'),
cellsize_display = document.getElementById('cellsize'),
subtractcellpadding = document.getElementById('subtractcellpadding'),
addcellpadding = document.getElementById('addcellpadding'),
cellpadding_display = document.getElementById('cellpadding'),
toggle_controls = document.getElementById('togglecontrols'),
controls = document.getElementById('controls'),
prevheight = height();
window.onresize = function() {
redraw();
};
function heightChange() {
if (height() != prevheight) {
console.log("height changed from "+prevheight+" to "+height());
prevheight = height();
redraw();
}
}
redraw();
function redraw() {
console.log("drawing "+document.body.clientWidth+"x"+height());
var pattern = t.generate(document.body.clientWidth, height());
document.body.setAttribute('style', 'background-image: '+pattern.dataUrl);
saveas.setAttribute('href', pattern.dataUri);
noise_display.innerHTML = t.options.noiseIntensity.toFixed(1);
cellsize_display.innerHTML = t.options.cellsize.toFixed(0);
cellpadding_display.innerHTML = t.options.cellpadding.toFixed(0);
}
function recolor() {
t.options.x_gradient = Trianglify.randomColor();
t.options.y_gradient = t.options.x_gradient.map(function(c){return d3.rgb(c).brighter(0.5);});
}
function noise(i) {
i += t.options.noiseIntensity;
if (i >= 0 && i <= 1) {
t.options.noiseIntensity = i;
redraw();
} else if (i < 0) {
t.options.noiseIntensity = 0;
redraw();
}
}
function cellsize(i) {
i += t.options.cellsize;
if (i >= 0) {
t.options.cellsize = i;
t.options.bleed = i;
if (t.options.cellpadding >= t.options.cellsize/2) {
t.options.cellpadding = 5*Math.floor((t.options.cellsize/2 - 1)/5);
}
redraw();
}
}
function cellpadding(i) {
i += t.options.cellpadding;
if (i >= 0 && i < t.options.cellsize/2) {
t.options.cellpadding = i;
redraw();
}
}
function height() {
return Math.max(
document.body.scrollHeight, document.documentElement.scrollHeight,
document.body.offsetHeight, document.documentElement.offsetHeight,
document.body.clientHeight, document.documentElement.clientHeight
);
}
function toggleClass(el, className) {
if (el.classList) {
return el.classList.toggle(className);
} else {
var classes = el.className.split(' ');
var existingIndex = classes.indexOf(className);
if (existingIndex >= 0)
classes.splice(existingIndex, 1);
else
classes.push(className);
el.className = classes.join(' ');
return existingIndex >= 0;
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60716115-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>