-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimeline.html
More file actions
321 lines (295 loc) · 18.5 KB
/
Copy pathtimeline.html
File metadata and controls
321 lines (295 loc) · 18.5 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
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#14141f">
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="WWDC Journal">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="WWDC Journal">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="manifest" href="manifest.webmanifest">
<link rel="icon" href="app-icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="assets/icons/icon-180.png">
<title>Topic Prevalence — WWDC Journal</title>
<style>
:root {
--bg: #0a0a0f; --surface: #14141f; --surface2: #1e1e2e; --surface3: #252535;
--border: #2a2a3e; --border-bright: #3a3a4e;
--text: #e8e8f0; --text-dim: #8888a0; --text-faint: #5a5a70;
--accent: #6366f1; --accent2: #818cf8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif; background: var(--bg); color: var(--text); }
.hero { padding: 56px 40px 28px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at center, rgba(99,102,241,0.10) 0%, transparent 60%); pointer-events: none; }
.breadcrumb { color: var(--text-dim); font-size: 0.85em; margin-bottom: 10px; }
.breadcrumb a { color: var(--accent2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.hero h1 { font-size: 2.6em; font-weight: 700; background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6, #fb923c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; letter-spacing: -0.02em; }
.hero .sub { color: var(--text-dim); font-size: 1.05em; max-width: 720px; margin: 0 auto; line-height: 1.5; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px 80px; }
.section-title { font-size: 1.4em; font-weight: 700; margin: 32px 0 6px; }
.section-sub { color: var(--text-dim); font-size: 0.95em; margin-bottom: 24px; }
/* Heat grid */
.heat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; overflow-x: auto; }
.heat-grid { display: grid; gap: 2px; min-width: 900px; }
.heat-cell { display: flex; align-items: center; justify-content: center; font-size: 0.74em; color: var(--text); height: 28px; border-radius: 4px; transition: outline 0.15s; }
.heat-cell.empty { color: var(--text-faint); }
.heat-cell:hover { outline: 2px solid var(--accent2); outline-offset: -2px; }
.heat-row-label { padding: 0 12px; font-size: 0.82em; color: var(--text); display: flex; align-items: center; height: 28px; cursor: pointer; transition: color 0.15s; }
.heat-row-label:hover { color: var(--accent2); }
.heat-row-label.dimmed { color: var(--text-faint); }
.heat-col-label { font-size: 0.75em; font-weight: 600; color: var(--text-dim); text-align: center; padding: 6px 0; }
.heat-col-label.year { cursor: pointer; }
.heat-col-label.year:hover { color: var(--accent2); }
.heat-legend { display: flex; gap: 4px; align-items: center; margin-top: 16px; font-size: 0.78em; color: var(--text-dim); }
.heat-legend-swatch { width: 18px; height: 14px; border-radius: 3px; }
/* Small multiples */
.multiples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.multiple-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; transition: all 0.15s; cursor: pointer; }
.multiple-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
.multiple-title { font-size: 0.88em; font-weight: 600; margin-bottom: 4px; }
.multiple-meta { color: var(--text-dim); font-size: 0.75em; margin-bottom: 12px; }
.multiple-svg { width: 100%; height: auto; aspect-ratio: 240/70; }
/* Topic detail panel */
.detail-panel { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin-bottom: 16px; }
.detail-panel.open { display: block; }
.detail-close { float: right; color: var(--text-faint); cursor: pointer; font-size: 1.4em; line-height: 1; }
.detail-close:hover { color: var(--text); }
.detail-title { font-size: 1.4em; font-weight: 700; margin-bottom: 4px; }
.detail-stats { color: var(--text-dim); font-size: 0.88em; margin-bottom: 16px; }
.detail-svg { width: 100%; height: auto; aspect-ratio: 800/200; max-height: 320px; }
.detail-years-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.year-chip { padding: 4px 10px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--border); font-size: 0.78em; color: var(--text-dim); text-decoration: none; transition: all 0.15s; }
.year-chip:hover { border-color: var(--accent2); color: var(--text); }
.year-chip strong { color: var(--text); margin-left: 4px; }
@media (max-width: 700px) {
.hero h1 { font-size: 2em; }
.heat-card { padding: 14px; }
}
.footer { text-align: center; color: var(--text-dim); font-size: 0.85em; padding: 56px 20px 40px; max-width: 760px; margin: 0 auto; line-height: 1.6; }
.footer a { color: var(--accent2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-socials { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; font-size: 0.95em; }
.footer-socials a { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(20,20,31,0.62); }
.footer-socials a:hover { border-color: var(--accent2); text-decoration: none; }
</style>
</head>
<body>
<div class="hero">
<div class="breadcrumb"><a href="index.html">← WWDC Journal</a></div>
<h1>Topic Prevalence Across 12 Years</h1>
<p class="sub">How Apple's session topics rose, fell, and reorganized from WWDC 2014 to 2025. Click any topic to see its year-by-year story.</p>
</div>
<div class="container">
<div class="detail-panel" id="detail-panel">
<span class="detail-close" onclick="closeDetail()">×</span>
<div id="detail-content"></div>
</div>
<h2 class="section-title">Heat Grid: Topics × Years</h2>
<p class="section-sub">Each cell is the number of sessions for that topic in that year. Click a row to drill in.</p>
<div class="heat-card">
<div id="heat-grid" class="heat-grid"></div>
<div class="heat-legend">
<span>0</span>
<div class="heat-legend-swatch" style="background:rgba(129,140,248,0.05)"></div>
<div class="heat-legend-swatch" style="background:rgba(129,140,248,0.18)"></div>
<div class="heat-legend-swatch" style="background:rgba(129,140,248,0.36)"></div>
<div class="heat-legend-swatch" style="background:rgba(129,140,248,0.55)"></div>
<div class="heat-legend-swatch" style="background:rgba(129,140,248,0.78)"></div>
<div class="heat-legend-swatch" style="background:rgba(129,140,248,1.0)"></div>
<span>30+</span>
</div>
</div>
<h2 class="section-title">Small Multiples: One Mini-Chart Per Topic</h2>
<p class="section-sub">Compare the trajectory of every topic at a glance. Click any to drill in.</p>
<div class="multiples-grid" id="multiples-grid"></div>
</div>
<script id="topic-data" type="application/json">{"topics":{"Accessibility & Inclusion":{"2021":13,"2022":8,"2023":5,"2024":2,"2025":3},"App Frameworks":{"2015":36,"2016":42,"2017":50},"App Services":{"2021":15,"2022":27,"2023":21,"2024":10,"2025":10},"App Store Distribution & Marketing":{"2021":19,"2022":6,"2023":4,"2024":5},"App Store and Distribution":{"2018":11,"2019":12,"2020":9},"App Store, Distribution & Marketing":{"2025":4},"Audio & Video":{"2021":26,"2022":15,"2023":8,"2024":5,"2025":5},"Augmented Reality":{"2021":8,"2022":6},"Business & Education":{"2021":1,"2022":10,"2023":5,"2024":2,"2025":3},"Core OS":{"2014":18},"Design":{"2015":5,"2016":5,"2017":19,"2021":8,"2022":10,"2023":14,"2024":9,"2025":17},"Developer Tools":{"2015":14,"2016":20,"2017":15,"2018":28,"2019":26,"2020":36,"2021":25,"2022":17,"2023":13,"2024":10,"2025":6},"Distribution":{"2015":5,"2016":5,"2017":6},"Essentials":{"2021":20,"2022":18,"2023":2,"2024":2,"2025":3},"Featured":{"2015":9,"2016":7,"2017":3,"2018":3,"2019":3,"2020":6,"2021":3},"Frameworks":{"2014":36,"2018":49,"2019":81,"2020":122},"Graphics & Games":{"2021":10,"2022":12,"2023":17,"2024":5,"2025":20},"Graphics and Games":{"2014":11,"2015":9,"2016":12,"2017":10,"2018":13,"2019":17,"2020":22},"Health & Fitness":{"2021":5,"2022":3,"2023":2,"2024":3,"2025":2},"ML & Vision":{"2021":5,"2022":6,"2023":9},"Machine Learning & AI":{"2024":12,"2025":16},"Maps & Location":{"2021":1,"2022":1,"2023":4,"2024":3,"2025":1},"Media":{"2014":16,"2015":9,"2016":11,"2017":15,"2018":12,"2019":16,"2020":17},"Photos & Camera":{"2021":4,"2022":3,"2023":7,"2024":4,"2025":2},"Privacy & Security":{"2021":6,"2022":9,"2023":4,"2024":3,"2025":6},"Safari & Web":{"2021":4,"2022":5,"2023":7,"2024":3,"2025":5},"Services":{"2014":6},"Spatial Computing":{"2023":15,"2024":11,"2025":32},"Special Events":{"2014":3},"Swift":{"2021":12,"2022":4,"2023":11,"2024":10,"2025":8},"SwiftUI & UI Frameworks":{"2021":10,"2022":11,"2023":27,"2024":21,"2025":14},"System Frameworks":{"2015":19,"2016":23,"2017":19},"System Services":{"2021":5,"2022":6,"2023":9,"2024":3,"2025":7},"Tech Talk":{"2017":18,"2018":8,"2019":10,"2020":15,"2021":11,"2022":14,"2023":12},"Tools":{"2014":18}},"year_totals":{"2014":108,"2015":106,"2016":125,"2017":155,"2018":124,"2019":165,"2020":227,"2021":211,"2022":191,"2023":196,"2024":123,"2025":164},"years":[2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025]}</script>
<script>
const data = JSON.parse(document.getElementById('topic-data').textContent);
const YEARS = data.years;
const TOPICS = Object.entries(data.topics); // [[name, {year:count, ...}], ...]
TOPICS.sort((a, b) => {
// Sort by total sessions descending
const sumA = Object.values(a[1]).reduce((s, n) => s + n, 0);
const sumB = Object.values(b[1]).reduce((s, n) => s + n, 0);
return sumB - sumA;
});
const YEAR_COLORS = {
2014:'#f59e0b', 2015:'#84cc16', 2016:'#14b8a6', 2017:'#f97316',
2018:'#ec4899', 2019:'#06b6d4', 2020:'#ef4444', 2021:'#a78bfa',
2022:'#f87171', 2023:'#22d3ee', 2024:'#fb923c', 2025:'#c084fc',
};
// ---- HEAT GRID ----
function renderHeat() {
const maxCount = 30; // saturate at 30 for color scale
const grid = document.getElementById('heat-grid');
// Grid: first col is topic label, rest are years
grid.style.gridTemplateColumns = `260px repeat(${YEARS.length}, 1fr)`;
let html = '';
// Header row
html += '<div class="heat-col-label"></div>';
for (const y of YEARS) {
html += `<a class="heat-col-label year" href="index-${y}.html" style="color:${YEAR_COLORS[y]}">${String(y).slice(-2)}</a>`;
}
// Data rows
for (const [topic, years] of TOPICS) {
html += `<div class="heat-row-label" onclick="showDetail('${escapeJs(topic)}')">${escHtml(topic)}</div>`;
for (const y of YEARS) {
const count = years[String(y)] || 0;
const intensity = count === 0 ? 0 : Math.min(1.0, count / maxCount);
const bg = `rgba(129,140,248,${0.05 + intensity * 0.95})`;
const cls = count === 0 ? 'heat-cell empty' : 'heat-cell';
const display = count === 0 ? '·' : count;
const title = `${topic} in ${y}: ${count} session${count === 1 ? '' : 's'}`;
html += `<div class="${cls}" style="background:${bg}" title="${escAttr(title)}">${display}</div>`;
}
}
grid.innerHTML = html;
}
// ---- SMALL MULTIPLES ----
function renderMultiples() {
const out = document.getElementById('multiples-grid');
let html = '';
for (const [topic, years] of TOPICS) {
const total = Object.values(years).reduce((s, n) => s + n, 0);
const yearsActive = Object.keys(years).length;
html += `<div class="multiple-card" onclick="showDetail('${escapeJs(topic)}')">
<div class="multiple-title">${escHtml(topic)}</div>
<div class="multiple-meta">${total} session${total===1?'':'s'} · ${yearsActive}/${YEARS.length} years</div>
<svg class="multiple-svg" viewBox="0 0 240 70" preserveAspectRatio="xMidYMid meet">
${spark(years, 240, 70)}
</svg>
</div>`;
}
out.innerHTML = html;
}
function spark(years, w, h) {
const PAD_T = 6, PAD_B = 12, PAD_X = 6;
const max = Math.max(...YEARS.map(y => years[String(y)] || 0), 1);
const stepX = (w - PAD_X * 2) / (YEARS.length - 1);
const points = YEARS.map((y, i) => {
const x = PAD_X + i * stepX;
const v = years[String(y)] || 0;
const yPx = h - PAD_B - (v / max) * (h - PAD_T - PAD_B);
return [x, yPx, v];
});
// Area path
const areaPath = `M ${points[0][0]},${h - PAD_B} ` +
points.map(p => `L ${p[0]},${p[1]}`).join(' ') +
` L ${points[points.length-1][0]},${h - PAD_B} Z`;
// Line path
const linePath = 'M ' + points.map(p => `${p[0]},${p[1]}`).join(' L ');
// Year labels (every 2nd year for compactness)
const labels = YEARS.map((y, i) => {
if (i % 2 !== 0 && i !== YEARS.length - 1) return '';
return `<text x="${PAD_X + i * stepX}" y="${h - 2}" font-size="7" fill="#5a5a70" text-anchor="middle">${String(y).slice(-2)}</text>`;
}).join('');
// Dots
const dots = points.filter(p => p[2] > 0).map(p =>
`<circle cx="${p[0]}" cy="${p[1]}" r="2" fill="#818cf8"/>`
).join('');
return `
<path d="${areaPath}" fill="rgba(129,140,248,0.18)" stroke="none"/>
<path d="${linePath}" fill="none" stroke="#818cf8" stroke-width="1.5" stroke-linejoin="round"/>
${dots}
${labels}
`;
}
// ---- DETAIL PANEL ----
function showDetail(topic) {
const years = data.topics[topic];
if (!years) return;
const total = Object.values(years).reduce((s, n) => s + n, 0);
const yearsActive = Object.keys(years).length;
const peakYear = YEARS.reduce((p, y) => (years[String(y)] || 0) > (years[String(p)] || 0) ? y : p, YEARS[0]);
const peakCount = years[String(peakYear)] || 0;
const firstYear = YEARS.find(y => years[String(y)]) || '?';
const lastYear = [...YEARS].reverse().find(y => years[String(y)]) || '?';
const yearChips = YEARS.filter(y => years[String(y)]).map(y =>
`<a class="year-chip" href="index-${y}.html" style="border-color:${YEAR_COLORS[y]}33">${y}<strong style="color:${YEAR_COLORS[y]}">${years[String(y)]}</strong></a>`
).join('');
document.getElementById('detail-content').innerHTML = `
<div class="detail-title">${escHtml(topic)}</div>
<div class="detail-stats">
<strong>${total}</strong> sessions across <strong>${yearsActive}</strong> years ·
Peak: <strong>${peakYear}</strong> with <strong>${peakCount}</strong> sessions ·
First: <strong>${firstYear}</strong> · Last: <strong>${lastYear}</strong>
</div>
<svg class="detail-svg" viewBox="0 0 800 200" preserveAspectRatio="xMidYMid meet">
${detailSpark(years, 800, 200)}
</svg>
<div class="detail-years-list">${yearChips}</div>
`;
document.getElementById('detail-panel').classList.add('open');
document.getElementById('detail-panel').scrollIntoView({behavior:'smooth', block:'start'});
}
function closeDetail() {
document.getElementById('detail-panel').classList.remove('open');
}
function detailSpark(years, w, h) {
const PAD_T = 16, PAD_B = 28, PAD_L = 30, PAD_R = 16;
const max = Math.max(...YEARS.map(y => years[String(y)] || 0), 1);
const stepX = (w - PAD_L - PAD_R) / (YEARS.length - 1);
const innerH = h - PAD_T - PAD_B;
const points = YEARS.map((y, i) => {
const x = PAD_L + i * stepX;
const v = years[String(y)] || 0;
return [x, h - PAD_B - (v / max) * innerH, v, y];
});
// Area
const areaPath = `M ${points[0][0]},${h - PAD_B} ` +
points.map(p => `L ${p[0]},${p[1]}`).join(' ') +
` L ${points[points.length-1][0]},${h - PAD_B} Z`;
const linePath = 'M ' + points.map(p => `${p[0]},${p[1]}`).join(' L ');
// Year labels
const xLabels = YEARS.map((y, i) =>
`<text x="${PAD_L + i * stepX}" y="${h - 8}" font-size="11" fill="#8888a0" text-anchor="middle">${y}</text>`
).join('');
// Y-axis ticks
const yTicks = [0, Math.ceil(max / 2), max].map(v => {
const yPx = h - PAD_B - (v / max) * innerH;
return `<line x1="${PAD_L}" y1="${yPx}" x2="${w - PAD_R}" y2="${yPx}" stroke="#2a2a3e" stroke-dasharray="2,3"/>
<text x="${PAD_L - 6}" y="${yPx + 3}" font-size="10" fill="#5a5a70" text-anchor="end">${v}</text>`;
}).join('');
// Dots with values
const dots = points.map(p => p[2] > 0
? `<circle cx="${p[0]}" cy="${p[1]}" r="3.5" fill="${YEAR_COLORS[p[3]]}" stroke="#0a0a0f" stroke-width="1.5"/>
<text x="${p[0]}" y="${p[1] - 8}" font-size="10" fill="#c8c8d8" text-anchor="middle">${p[2]}</text>`
: ''
).join('');
return `
${yTicks}
<path d="${areaPath}" fill="url(#detail-grad)"/>
<defs>
<linearGradient id="detail-grad" x1="0" x2="0" y1="0" y2="1">
<stop offset="0%" stop-color="#818cf8" stop-opacity="0.45"/>
<stop offset="100%" stop-color="#818cf8" stop-opacity="0.05"/>
</linearGradient>
</defs>
<path d="${linePath}" fill="none" stroke="#818cf8" stroke-width="2.5" stroke-linejoin="round"/>
${dots}
${xLabels}
`;
}
function escHtml(s) { return String(s).replace(/[<>&'"]/g, c => ({'<':'<','>':'>','&':'&',"'":''','"':'"'}[c])); }
function escAttr(s) { return escHtml(s); }
function escapeJs(s) { return String(s).replace(/['\\]/g, '\\$&'); }
document.addEventListener('keydown', e => { if (e.key === 'Escape') closeDetail(); });
renderHeat();
renderMultiples();
</script>
<div class="footer">
Each dashboard contains: deep transcript analysis (best practices, hidden gems, performance tips, migration guidance), curated learning pathways with prerequisites, session clusters, transcript-vs-docs deltas, and an interactive dependency graph. <br><br>
Source transcripts from <a href="https://nonstrict.eu/wwdcindex/" target="_blank" rel="noopener">Nonstrict WWDC Index</a> and <a href="https://gist.github.com/auramagi/9c040c2233dfe71c24c76942e186f788" target="_blank" rel="noopener">auramagi gist</a>. Independent project, not affiliated with Apple. Code is <a href="LICENSE">MIT</a>; original editorial content and curation are <a href="CONTENT-LICENSE.md">CC BY-NC-ND 4.0</a>. See <a href="THIRD_PARTY_NOTICES.md">third-party notices</a>.
<div class="footer-socials" aria-label="Creator social links">
<a href="https://github.com/need2edit" target="_blank" rel="noopener">GitHub</a>
<a href="https://x.com/need2edit" target="_blank" rel="noopener">X/Twitter</a>
<a href="https://www.linkedin.com/in/youngjake/" target="_blank" rel="noopener">LinkedIn</a>
</div>
</div>
</body>
</html>