-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
106 lines (93 loc) · 1.75 KB
/
script.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
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
poem1 = `
- watered
- even
- when i understood that even
- regularly watered
- gardens wither.
- i made a point.
- i made a point to stay on
- call.
- call
- just in case.
- just in case there are
- signs
- sudden signs
- of drought.
- i will sprint.
- should they burn, i will sprint.
- i
- but i
- am a company of one.
- i have buckets.
- and all i have are
- buckets
- overflowing buckets
- buckets of care
- take time.
- when i burn
- take time.
- i hope you take time to
- i hope you take time out of your busy to
- bring me a
- glass.
- glass of water.
`;
poem2 = `- I've never been
- to Vermont
- so I never
- dressed for it.
- packed
- my
- jacket.
- oversized jacket.
- oversized plaid jacket.
- oversized pumpkin-shade plaid jacket.
- when
- but when
- I go to Vermont,
- I'll pack
- I'll first buy
- a jacket.
- an oversized jacket.
- an oversized plaid jacket.
- an oversized pumpkin-shade plaid jacket.
- when
- honeycrisp in
- one hand
- one hand, the other out
- sensing
- the breeze,
- I will realize I
- had already been.
- had been to Vermont.
- had been to Vermont every fall.
- had been to Vermont for decades, every fall.
`;
poem3 = `
- make
- you can make
- a
- pillow
- snug pillow
- on
- the road
- any road
- you pick
- feathers
- the right feathers
- from.
`;
poems = {
firefighter: poem1,
thefullexperience: poem2,
tomakeahome: poem3,
};
function renderPoem(title) {
const telescopicPoem = document.getElementById("telescopicPoem");
telescopicPoem.replaceChildren();
const node = createTelescopicTextFromBulletedList(poems[title], {
separator: " ",
textMode: "text",
});
telescopicPoem.appendChild(node);
}