-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (21 loc) · 881 Bytes
/
index.js
File metadata and controls
31 lines (21 loc) · 881 Bytes
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
// <script>
// // Create N floating “I love you” items (was multilingual; now all English)
// const N = 100; // adjust if you want fewer/more
// const ui = document.getElementById('ui');
// for (let i = 1; i <= N; i++) {
// const love = document.createElement('div');
// love.className = 'love';
// love.style.setProperty('--i', i);
// const h = document.createElement('div');
// h.className = 'love_horizontal';
// const v = document.createElement('div');
// v.className = 'love_vertical';
// const word = document.createElement('div');
// word.className = 'love_word';
// word.textContent = 'I love java';
// v.appendChild(word);
// h.appendChild(v);
// love.appendChild(h);
// ui.appendChild(love);
// }
// </script>