-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtelescoping-text.js
55 lines (52 loc) · 2.91 KB
/
telescoping-text.js
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
const enjoyContent = `
* Outside of scribbling mathematical nonsense, I run <a href="https://math.mit.edu/arts/">Friends of the Arts</a>
* at MIT, build fun communal software (check out <a href="https://curius.app/">Curius</a>, a social bookmarker),
* and enjoy (as an unordered collection)
* creating <a href="https://open.spotify.com/playlist/0mgJc653Q2kYsSQEwfK7AT?si=C1_8FKzLSumn8wY-7F5C7g">oddly</a>
* <a href="https://open.spotify.com/playlist/3H1nr18GB6LPB6myTYek7c?si=IO34RAyIRjGXt_X_bGC5rQ">specific</a>
* <a href="https://open.spotify.com/playlist/2IudEQhWMGZI6ucYxl4rbD?si=zEw3BPzPRMu6q1imp911bw">playlists</a>,
* playing piano,
* playing piano and cursing Rachmaninov's handspan,
* receiving recommendations,
* listening to friends ramble,
* catching a perfect photo,
* seeing things i created being used in the wild,
* mixing chemicals in the darkroom,
* committing to the bit,
* marveling,
* <a href="https://www.clarkart.edu/">well</a>-<a href="https://massmoca.org/">curated</a> <a href="https://stockholm.fotografiska.com/">art</a> <a href="https://louisiana.dk/en/">museums</a>,
* flashes of insight,
* the hush before an orchestra begins to play,
* <a href="https://www.sonetseigle.com/">buttery</a> <a href="https://aukouingamann.com/">croissants</a>,
* the bite of crisp winter wind,
* <a href="https://www.perpetualstew.club/">stew</a> on a cold day,
* spicy harmonies,
* long walks,
* libraries,
* lists,
* bass lines,
* concert crowds,
* weird calendar invites,
* delightful interactions,
* warm lighting,
* working public transit,
* yuzu-flavoured anything,
* the plateau,
* and more.`;
const enjoyConfig = { textMode: TextMode.Html };
const enjoyNode = createTelescopicTextFromBulletedList(
enjoyContent,
enjoyConfig
);
const researchContent = `
* My research interests lie in
* probability theory,
* probability theory (random discrete structures, probabilistic analysis of algorithms, statistical mechanics),
* theoretical computer science and quantum information theory.`;
const researchNode = createTelescopicTextFromBulletedList(researchContent);
window.addEventListener("load", function () {
const enjoyContain = document.getElementById("enjoy-container");
enjoyContain.appendChild(enjoyNode);
const researchContain = document.getElementById("research-container");
researchContain.appendChild(researchNode);
});