-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.js
More file actions
754 lines (739 loc) · 24.2 KB
/
Copy pathdata.js
File metadata and controls
754 lines (739 loc) · 24.2 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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
// Full publication list, including the existing research blog post.
const publications = [
{
"title": "A Roadmap to Impactful Pluralistic Alignment Research",
"authors": [
"Elinor Poole-Dayan",
"Jillian Fisher",
"Atoosa Kasirzadeh",
"Jacob Andreas",
"Mitchell Gordon",
"Michiel A. Bakker"
],
"venue": "Preprint",
"year": 2026,
"url": "https://arxiv.org/abs/2607.22305",
"categories": [
"pluralistic"
]
},
{
"title": "Alignment has a Fantasia Problem",
"authors": [
"Nathanael Jo",
"Zoe De Simone",
"Mitchell Gordon",
"Ashia Wilson"
],
"venue": "ICLR · HCAIR Workshop",
"year": 2026,
"url": "https://arxiv.org/abs/2604.21827",
"categories": [
"interaction"
]
},
{
"title": "Navigating the Conceptual Multiverse",
"authors": [
"Andre Ye",
"Jenny Y. Huang",
"Alicia Guo",
"Rose Novick",
"Tamara Broderick",
"Mitchell L. Gordon"
],
"venue": "Preprint",
"year": 2026,
"url": "https://arxiv.org/abs/2604.17815",
"categories": [
"interaction"
]
},
{
"title": "MoReBench: Evaluating Procedural and Pluralistic Moral Reasoning in Language Models, More than Outcomes",
"authors": [
"Yu Ying Chiu",
"Michael S. Lee",
"Rachel Calcott",
"Brandon Handoko",
"Paul de Font-Reaulx",
"Raphaël Millière",
"Paula Rodriguez",
"Chen Bo Calvin Zhang",
"Ziwen Han",
"Udari Madhushani Sehwag",
"Yash Maurya",
"Christina Q Knight",
"Harry R. Lloyd",
"Florence Bacus",
"Conor Downey",
"Mantas Mazeika",
"Bing Liu",
"Yejin Choi",
"Mitchell L Gordon",
"Sydney Levine"
],
"venue": "ICLR",
"year": 2026,
"url": "https://arxiv.org/abs/2510.16380",
"categories": [
"pluralistic",
"evaluation"
]
},
{
"title": "DracoGPT: Extracting Visualization Design Preferences from Large Language Models",
"authors": [
"Will (Huichen) Wang",
"Mitchell Gordon",
"Leilani Battle",
"Jeffrey Heer"
],
"venue": "IEEE TVCG · 31(1), 710–720",
"year": 2025,
"url": "https://idl.uw.edu/papers/dracogpt",
"categories": [
"interaction",
"evaluation"
]
},
{
"title": "Human-AI Alignment: Foundations, Methods, Practice, and Challenges",
"authors": [
"Hua Shen",
"Mitchell Gordon",
"Adam Tauman Kalai"
],
"venue": "NeurIPS · Tutorial",
"year": 2025,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:HDshCWvjkbEC",
"categories": [
"pluralistic",
"interaction"
]
},
{
"title": "Collective alignment: public input on our Model Spec",
"authors": [
"Tyna Eloundou",
"Mitchell Gordon",
"Eddie Zhang",
"Sandhini Agarwal"
],
"venue": "OpenAI blog post",
"year": 2025,
"url": "https://openai.com/index/collective-alignment-aug-2025-updates/",
"categories": [
"pluralistic"
]
},
{
"title": "StyleRemix: Interpretable Authorship Obfuscation via Distillation and Perturbation of Style Elements",
"authors": [
"Jillian Fisher",
"Skyler Hallinan",
"Ximing Lu",
"Mitchell L. Gordon",
"Zaid Harchaoui",
"Yejin Choi"
],
"venue": "EMNLP",
"year": 2024,
"url": "https://aclanthology.org/2024.emnlp-main.241/",
"categories": [
"evaluation"
]
},
{
"title": "A Roadmap to Pluralistic Alignment",
"authors": [
"Taylor Sorensen",
"Jared Moore",
"Jillian Fisher",
"Mitchell Gordon",
"Niloofar Mireshghallah",
"Christopher Michael Rytting",
"Andre Ye",
"Liwei Jiang",
"Ximing Lu",
"Nouha Dziri",
"Tim Althoff",
"Yejin Choi"
],
"venue": "ICML",
"year": 2024,
"url": "https://arxiv.org/abs/2402.05070",
"categories": [
"pluralistic"
]
},
{
"title": "Localizing Paragraph Memorization in Language Models",
"authors": [
"Niklas Stoehr",
"Mitchell Gordon",
"Chiyuan Zhang",
"Owen Lewis"
],
"venue": "Preprint",
"year": 2024,
"url": "https://arxiv.org/abs/2403.19851",
"categories": [
"evaluation"
]
},
{
"title": "Cura: Curation at Social Media Scale",
"authors": [
"Wanrong He",
"Mitchell L. Gordon",
"Lindsay Popowski",
"Michael S. Bernstein"
],
"venue": "CSCW",
"year": 2023,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:mVmsd5A6BfQC",
"award": "Best Paper",
"categories": [
"social"
]
},
{
"title": "Architecting Novel Interactions with Generative AI Models",
"authors": [
"Michael S. Bernstein",
"Joon Sung Park",
"Meredith Ringel Morris",
"Saleema Amershi",
"Lydia B. Chilton",
"Mitchell L. Gordon"
],
"venue": "UIST Adjunct · Workshop",
"year": 2023,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:Wp0gIr-vW9MC",
"categories": [
"interaction"
]
},
{
"title": "Human-AI Interaction Under Societal Disagreement",
"authors": [
"Mitchell L. Gordon"
],
"venue": "Stanford University · PhD dissertation",
"year": 2023,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:9ZlFYXVOiuMC",
"award": "Arthur Samuel Dissertation Award",
"categories": [
"pluralistic",
"interaction"
]
},
{
"title": "Jury Learning: Integrating Dissenting Voices into Machine Learning Models",
"authors": [
"Mitchell L. Gordon",
"Michelle S. Lam",
"Joon Sung Park",
"Kayur Patel",
"Jeffrey T. Hancock",
"Tatsunori Hashimoto",
"Michael S. Bernstein"
],
"venue": "CHI",
"year": 2022,
"url": "https://arxiv.org/abs/2202.02950",
"award": "Best Paper",
"categories": [
"pluralistic",
"interaction"
]
},
{
"title": "End-User Audits: A System Empowering Communities to Lead Large-Scale Investigations of Harmful Algorithmic Behavior",
"authors": [
"Michelle S. Lam",
"Mitchell L. Gordon",
"Danaë Metaxa",
"Jeffrey T. Hancock",
"James A. Landay",
"Michael S. Bernstein"
],
"venue": "CSCW",
"year": 2022,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:aqlVkmm33-oC",
"categories": [
"interaction",
"evaluation",
"social"
]
},
{
"title": "The Disagreement Deconvolution: Bringing Machine Learning Performance Metrics in Line with Reality",
"authors": [
"Mitchell L. Gordon",
"Kaitlyn Zhou",
"Kayur Patel",
"Tatsunori Hashimoto",
"Michael S. Bernstein"
],
"venue": "CHI",
"year": 2021,
"url": "https://hci.stanford.edu/publications/2021/gordon_disagreement/chi2021_disagreement_deconvolution.pdf",
"categories": [
"pluralistic",
"evaluation"
]
},
{
"title": "Visual Intelligence through Human Interaction",
"authors": [
"Ranjay Krishna",
"Mitchell L. Gordon",
"Li Fei-Fei",
"Michael S. Bernstein"
],
"venue": "Artificial Intelligence for Human Computer Interaction · Book chapter",
"year": 2021,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:M3ejUd6NZC8C",
"categories": [
"interaction"
]
},
{
"title": "HYPE: A Benchmark for Human eYe Perceptual Evaluation of Generative Models",
"authors": [
"Sharon Zhou*",
"Mitchell L. Gordon*",
"Ranjay Krishna",
"Austin Narcomey",
"Li Fei-Fei",
"Michael S. Bernstein"
],
"venue": "NeurIPS · *Equal contribution",
"year": 2019,
"url": "https://arxiv.org/abs/1904.01121",
"award": "Oral",
"categories": [
"evaluation"
]
},
{
"title": "Goal-Setting and Achievement in Activity Tracking Apps: A Case Study of MyFitnessPal",
"authors": [
"Mitchell L. Gordon",
"Tim Althoff",
"Jure Leskovec"
],
"venue": "The Web Conference (WWW)",
"year": 2019,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:UebtZRa9Y70C",
"award": "Oral",
"categories": [
"social"
]
},
{
"title": "App Usage Predicts Cognitive Ability in Older Adults",
"authors": [
"Mitchell L. Gordon",
"Leon Gatys",
"Carlos Guestrin",
"Jeffrey P. Bigham",
"Andrew Trister",
"Kayur Patel"
],
"venue": "CHI",
"year": 2019,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:0EnyYjriUFMC",
"categories": [
"evaluation"
]
},
{
"title": "Touchscreen Haptic Augmentation Effects on Tapping, Drag and Drop, and Path Following",
"authors": [
"Mitchell L. Gordon",
"Shumin Zhai"
],
"venue": "CHI",
"year": 2019,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:5nxA0vEk-isC",
"categories": [
"input"
]
},
{
"title": "Approximating Human Judgment of Generated Image Quality",
"authors": [
"Y. Alex Kolchinski",
"Sharon Zhou",
"Shengjia Zhao",
"Mitchell L. Gordon",
"Stefano Ermon"
],
"venue": "NeurIPS · Shared Visual Representations Workshop",
"year": 2019,
"url": "https://arxiv.org/abs/1912.12121",
"categories": [
"evaluation"
]
},
{
"title": "CrowdMask: Using Crowds to Preserve Privacy in Crowd-Powered Systems via Progressive Filtering",
"authors": [
"Harmanpreet Kaur",
"Mitchell Gordon",
"Yiwei Yang",
"Jeffrey P. Bigham",
"Jaime Teevan",
"Ece Kamar",
"Walter S. Lasecki"
],
"venue": "HCOMP",
"year": 2017,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:LkGwnXOMwfcC",
"categories": [
"social"
]
},
{
"title": "Automatically Visualizing Audio Travel Podcasts",
"authors": [
"Jihyeon Lee",
"Mitchell Gordon",
"Maneesh Agrawala"
],
"venue": "UIST Adjunct",
"year": 2017,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:Se3iqnhoufwC",
"categories": [
"input"
]
},
{
"title": "WatchWriter: Tap and Gesture Typing on a Smartwatch Miniature Keyboard with Statistical Decoding",
"authors": [
"Mitchell Gordon",
"Tom Ouyang",
"Shumin Zhai"
],
"venue": "CHI",
"year": 2016,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:WF5omc3nYNoC",
"categories": [
"input"
]
},
{
"title": "Coding Varied Behavior Types Using the Crowd",
"authors": [
"Jinyeong Yim",
"Jeel Jasani",
"Aubrey Henderson",
"Danai Koutra",
"Steven P. Dow",
"Winnie Leung",
"Ellen Lim",
"Mitchell Gordon",
"Jeffrey P. Bigham",
"Walter S. Lasecki"
],
"venue": "CSCW Companion",
"year": 2016,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:eQOLeE2rZwMC",
"categories": [
"social"
]
},
{
"title": "Codepourri: Creating Visual Coding Tutorials Using a Volunteer Crowd of Learners",
"authors": [
"Mitchell Gordon",
"Philip J. Guo"
],
"venue": "VL/HCC",
"year": 2015,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:Y0pCki6q_DkC",
"categories": [
"social"
]
},
{
"title": "Toward a Domain-Specific Visual Discussion Forum for Learning Computer Programming: An Empirical Study of a Popular MOOC Forum",
"authors": [
"Joyce Zhu",
"Jeremy Warner",
"Mitchell Gordon",
"Jeffery White",
"Renan Zanelatto",
"Philip J. Guo"
],
"venue": "VL/HCC",
"year": 2015,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:YsMSGLbcyi4C",
"categories": [
"social"
]
},
{
"title": "Exploring Privacy and Accuracy Trade-Offs in Crowdsourced Behavioral Video Coding",
"authors": [
"Walter S. Lasecki",
"Mitchell Gordon",
"Winnie Leung",
"Ellen Lim",
"Jeffrey P. Bigham",
"Steven P. Dow"
],
"venue": "CHI",
"year": 2015,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:UeHWp8X0CEIC",
"categories": [
"social"
]
},
{
"title": "LegionTools: A Toolkit + UI for Recruiting and Routing Crowds to Synchronous Real-Time Tasks",
"authors": [
"Mitchell Gordon",
"Jeffrey P. Bigham",
"Walter S. Lasecki"
],
"venue": "UIST Adjunct",
"year": 2015,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:W7OEmFMy1HYC",
"categories": [
"social"
]
},
{
"title": "Preserving Privacy in Crowd-Powered Systems",
"authors": [
"Walter S. Lasecki",
"Mitchell Gordon",
"Jaime Teevan",
"Ece Kamar",
"Jeffrey P. Bigham"
],
"venue": "AAMAS · HAIDM Workshop",
"year": 2015,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:IjCSPb-OGe4C",
"categories": [
"social"
]
},
{
"title": "Glance: Rapidly Coding Behavioral Video with the Crowd",
"authors": [
"Walter S. Lasecki",
"Mitchell Gordon",
"Danai Koutra",
"Malte F. Jung",
"Steven P. Dow",
"Jeffrey P. Bigham"
],
"venue": "UIST",
"year": 2014,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:9yKSN-GCB0IC",
"categories": [
"social"
]
},
{
"title": "Glance Privacy: Obfuscating Personal Identity While Coding Behavioral Video",
"authors": [
"Mitchell Gordon",
"Walter S. Lasecki",
"Winnie Leung",
"Ellen Lim",
"Steven P. Dow",
"Jeffrey P. Bigham"
],
"venue": "HCOMP",
"year": 2014,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:2osOgNQ5qMEC",
"categories": [
"social"
]
},
{
"title": "Web Accessibility Evaluation with the Crowd: Using Glance to Rapidly Code User Testing Video",
"authors": [
"Mitchell Gordon"
],
"venue": "ASSETS · Student Research Competition",
"year": 2014,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:d1gkVwhDpl0C",
"categories": [
"input"
]
},
{
"title": "Glance: Enabling Rapid Interactions with Data Using the Crowd",
"authors": [
"Walter S. Lasecki",
"Mitchell Gordon",
"Steven P. Dow",
"Jeffrey P. Bigham"
],
"venue": "CHI Extended Abstracts",
"year": 2014,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:u5HHmVD_uO8C",
"categories": [
"social"
]
},
{
"title": "Comparing Human and Automated Agents in a Coordinated Navigation Domain",
"authors": [
"Daniel Scarafoni",
"Mitchell Gordon",
"Walter S. Lasecki",
"Jeffrey P. Bigham"
],
"venue": "University of Rochester · Technical Report 989",
"year": 2014,
"url": "https://scholar.google.com/citations?view_op=view_citation&hl=en&user=pMkqt6sAAAAJ&citation_for_view=pMkqt6sAAAAJ:u-x6o8ySG0sC",
"categories": [
"social"
]
}
];
// Students data - easy to update!
const students = [
{
name: "Hyemin (Helen) Bang",
type: "phd",
website: "https://www.hyeminbang.com/",
image: "images/students/helen.webp"
},
{
name: "Andre Ye",
type: "phd",
website: "https://andre-ye.org/",
image: "images/students/andre.jpg"
},
{
name: "Elinor Poole-Dayan",
note: "Co‑advised with Jacob Andreas and Michiel Bakker",
type: "phd",
website: "https://elinorp-d.github.io/",
image: "images/students/elinor.jpg"
},
{
name: "Grace C. Kim",
type: "phd",
website: "https://gracekimcy.github.io/",
image: "images/students/grace.jpg"
},
{
name: "Yi-Hao Peng",
note: "Co‑advised with Arvind Satyanarayan and Zana Buçinca",
type: "postdoc",
website: "https://www.yihaopeng.tw/",
image: "images/students/yihao.jpg"
}
];
// Teaching data
const teaching = [
{
term: "Fall 2025",
course: "6.1040: Software Design",
institution: "MIT EECS",
role: "Instructor",
url: "https://61040-fa25.github.io/"
}
];
// Render functions
function renderPublications(category = 'all') {
const container = document.getElementById('publications-list');
if (!container) return;
let previousYear = null;
const visible = publications.filter(pub => category === 'all' || pub.categories.includes(category));
container.innerHTML = visible.map(pub => {
const yearHeading = pub.year !== previousYear ? `<h4 class="publication-year">${pub.year}</h4>` : '';
previousYear = pub.year;
const authorsList = pub.authors.join(', ');
const award = pub.award ? ` <span class="award">${pub.award}</span>` : '';
const titleLink = pub.url ? `<a href="${pub.url}">${pub.title}</a>` : pub.title;
const venueWithYear = pub.year ? `${pub.venue}, ${pub.year}` : pub.venue;
return `
${yearHeading}
<div class="publication">
<p class="pub-title">${titleLink}</p>
<p class="pub-authors">${authorsList}</p>
<p class="pub-venue"><i>${venueWithYear}</i>${award}</p>
</div>
`;
}).join('');
}
function renderStudents(type = 'phd', containerId = 'students-list') {
const container = document.getElementById(containerId);
if (!container) return;
container.innerHTML = students.filter(student => student.type === type).map(student => {
const nameLink = student.website ? `<a href="${student.website}">${student.name}</a>` : student.name;
let imageHtml;
if (student.image) {
const imageTag = `<img src="${student.image}" alt="${student.name}" class="student-photo">`;
imageHtml = student.website ? `<a href="${student.website}">${imageTag}</a>` : imageTag;
} else {
imageHtml = `<div class="student-photo-placeholder"></div>`;
}
return `
<div class="student-item">
${imageHtml}
<p class="student-name">${nameLink}${student.note ? ` <span class="student-note">(${student.note.charAt(0).toLowerCase() + student.note.slice(1)})</span>` : ''}</p>
</div>
`;
}).join('');
}
function renderTeaching() {
const container = document.getElementById('teaching-list');
if (!container) return;
container.innerHTML = teaching.map(item => {
const courseLink = item.url ? `<a href="${item.url}">${item.course}</a>` : item.course;
return `
<div class="teaching-item">
<p><strong>${item.term}</strong> ${item.role}, ${courseLink}, ${item.institution}</p>
</div>
`;
}).join('');
}
// Native buttons retain normal keyboard activation; arrow keys switch tabs.
function setupPublicationTabs() {
const tablist = document.getElementById('publication-tabs');
const panel = document.getElementById('publications-list');
const tabs = Array.from(tablist.querySelectorAll('[role="tab"]'));
function select(tab) {
tabs.forEach(item => {
const active = item === tab;
item.setAttribute('aria-selected', String(active));
item.tabIndex = active ? 0 : -1;
});
panel.setAttribute('aria-labelledby', tab.id);
renderPublications(tab.dataset.category);
}
tabs.forEach((tab, index) => {
tab.addEventListener('click', () => select(tab));
tab.addEventListener('keydown', event => {
let next;
if (event.key === 'ArrowRight') next = (index + 1) % tabs.length;
else if (event.key === 'ArrowLeft') next = (index - 1 + tabs.length) % tabs.length;
else if (event.key === 'Home') next = 0;
else if (event.key === 'End') next = tabs.length - 1;
else return;
event.preventDefault();
select(tabs[next]);
tabs[next].focus();
});
});
}
// Initialize when DOM is loaded
document.addEventListener('DOMContentLoaded', function() {
renderPublications();
setupPublicationTabs();
renderStudents();
renderStudents('postdoc', 'postdocs-list');
// renderTeaching();
});