-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (147 loc) · 4.82 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
<!DOCTYPE html><html><head><title></title><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /><style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
background:#000;
background-size:100%;
color:#fff;
margin:0;
padding:0;
font-weight:bold;
}
h1, h2, h3, p {
margin:0;
}
em, a {
font-style:normal;
color:#8dbd0c;
}
.bl {
font-style:normal;
color:#2AD2E8;
}
a {
background: #34d0e7;
color:#000;
text-decoration:none;
}
img {
width: 100%;
}
div {
cursor:pointer;
cursor:hand;
position:absolute;
top:0px;
left:0px;
padding:75px;
line-height:97%;
}
div.center {
text-align:center;
}
div.imageText {
text-shadow:0px 0px 5px rgba(0,0,0,0.2);
}
.show {
width: 70%;
margin-left: 45%;
margin-right: 45%;
position: fixed;
transform: translate(-50%, -50%);
}
.small {
width: 30%;
margin-left: 45%;
margin-right: 55%;
position: fixed;
transform: translate(-50%, -50%);
}
.tiny {
font-size: 30%;
letter-spacing: 1px;
}
</style>
<script src='maptime-logo.js'></script>
<script type='text/javascript'>
window.onload = function() {
var s = document.getElementsByTagName('div'), ti;
if (!s) return;
big = { current: 0, forward: fwd, reverse: rev, go: go, length: s.length };
function go(n) {
big.current = n;
var i = 1e3, e = s[n], t = parseInt(e.dataset.timeToNext || 0, 10);
document.body.className = e.dataset.bodyclass || '';
for (var k = 0; k < s.length; k++) s[k].style.display = 'none';
e.style.display = 'inline';
e.style.fontSize = i + 'px';
if (e.firstChild && e.firstChild.nodeName === 'IMG' && e.firstChild.className !== 'small' && e.firstChild.className !== 'show') {
document.body.style.backgroundImage = 'url(' + e.firstChild.src + ')';
e.firstChild.style.display = 'none';
if ('classList' in e) e.classList.add('imageText');
} else {
document.body.style.backgroundImage = '';
document.body.style.backgroundColor = e.style.backgroundColor;
}
if (ti !== undefined) window.clearInterval(ti);
if (t > 0) ti = window.setTimeout(fwd, (t * 1000));
while ((e.offsetWidth > window.innerWidth ||
e.offsetHeight > window.innerHeight) && i >= 0) {
e.style.fontSize = (i -= 2) + 'px';
}
e.style.marginTop = ((window.innerHeight - e.offsetHeight) / 2) + 'px';
if (window.location.hash !== n) window.location.hash = n;
document.title = e.textContent || e.innerText;
}
document.onclick = function() { go(++big.current % (s.length)); };
function fwd() { go(Math.min(s.length - 1, ++big.current)); }
function rev() { go(Math.max(0, --big.current)); }
document.onkeydown = function(e) {
if (e.which === 39 || e.which === 34 || e.which === 40) fwd();
if (e.which === 37 || e.which === 33 || e.which === 38) rev();
};
document.ontouchstart = function(e) {
var x0 = e.changedTouches[0].pageX;
document.ontouchend = function(e) {
var x1 = e.changedTouches[0].pageX;
if (x1 - x0 < 0) fwd();
if (x1 - x0 > 0) rev();
};
};
function parse_hash() {
return Math.max(Math.min(s.length - 1,
parseInt(window.location.hash.substring(1), 10)), 0);
}
if (window.location.hash) big.current = parse_hash() || big.current;
window.onhashchange = function() {
var c = parse_hash();
if (c !== big.current) go(c);
};
go(big.current);
};
maptimeLogo('maptime', {
width: window.innerWidth
});
</script></head><body>
<div>camille's open source adventure</div>
<div>or, how <canvas id='maptime'></canvas>got deleted</div>
<div><img class='small' id='mapbox' src="./images/Mapbox-Graphic.png"/></div>
<div><img src='./images/first-pr.png' class='show'></div>
<div><img src='./images/maptimemapbox.jpg' class='show'></div>
<div><img src='./images/delete.png'/></div>
<div><img src='./images/huh.png'/></div>
<div><img src='./images/huhhuh.png'/></div>
<div><img src='./images/fuck.png'/></div>
<div><img src='./images/githubemail.png'/></div>
<div><img src='./images/explanation.png'/></div>
<div><img src='./images/fixed.png'/></div>
<div><img src='./images/abcs.png'/></div>
<div> <img src='./images/greatpower.gif' class='show'/></div>
<div>Embrace the pull request.</div>
<div><img src='./images/org.png'/></div>
<div><img src='./images/pr.png'/></div>
<div class='imageText'><img src='./images/Mapbox-Team-3.png'/>camille<br><br><em>@camilleanne</em><br><br><span class='bl'>@fulgenteft</span></div>
<div>
<em>Maptime.io</em> github.com/maptime
</div>
<div><a href='https://github.com/camilleanne/open-source-adventure-slides'>this talk on github!</a> (with talk notes)</div>