|
38 | 38 | for (const person of people) person.style.opacity = 1;
|
39 | 39 | }
|
40 | 40 |
|
41 |
| - for (const theme of document.querySelectorAll('.theme')) { |
42 |
| - theme.addEventListener('click', () => window.location = theme.getAttribute('data-url')); |
| 41 | + // Do not highlight specific people when hovering over themes. |
| 42 | + // for (const theme of document.querySelectorAll('.theme')) { |
| 43 | + // theme.addEventListener('click', () => window.location = theme.getAttribute('data-url')); |
43 | 44 |
|
44 |
| - if (!sm) { |
45 |
| - theme.addEventListener('mouseout', showAllPeople); |
46 |
| - theme.addEventListener('mouseover', () => { |
47 |
| - const people = theme.getAttribute('data-people').split(', '); |
48 |
| - for (const person of document.querySelectorAll('.person')) { |
49 |
| - if (people.indexOf(person.id) >= 0) continue; |
50 |
| - person.style.opacity = 0.3; |
51 |
| - } |
| 45 | + // if (!sm) { |
| 46 | + // theme.addEventListener('mouseout', showAllPeople); |
| 47 | + // theme.addEventListener('mouseover', () => { |
| 48 | + // const people = theme.getAttribute('data-people').split(', '); |
| 49 | + // for (const person of document.querySelectorAll('.person')) { |
| 50 | + // if (people.indexOf(person.id) >= 0) continue; |
| 51 | + // person.style.opacity = 0.3; |
| 52 | + // } |
52 | 53 |
|
53 |
| - for (const video of videos) { |
54 |
| - if (video.parentElement === theme) video.play(); |
55 |
| - else video.pause(); |
56 |
| - } |
57 |
| - }); |
58 |
| - } |
59 |
| - } |
| 54 | + // for (const video of videos) { |
| 55 | + // if (video.parentElement === theme) video.play(); |
| 56 | + // else video.pause(); |
| 57 | + // } |
| 58 | + // }); |
| 59 | + // } |
| 60 | + // } |
60 | 61 | {% else %}
|
61 | 62 | const sess = window.sessionStorage;
|
62 | 63 | let v = sess.getItem('visited') || false;
|
|
0 commit comments