-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (132 loc) · 4.62 KB
/
index.html
File metadata and controls
143 lines (132 loc) · 4.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>html</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
/* --- Base page --- */
body {
background: #000;
height: 100vh;
margin: 0;
overflow: hidden;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
/* --- Quick links (translated) --- */
.quick-link {
position: fixed;
right: 10px;
width: 35px;
height: 35px;
z-index: 999;
background: #696969;
border-radius: 50%;
padding: 1px;
text-align: center;
color: #ddd;
text-decoration: none;
line-height: 35px;
font-size: 13px;
user-select: none;
}
.quick-link:nth-of-type(1) { top: 10%; } /* Create */
.quick-link:nth-of-type(2) { top: 4%; z-index: 998; } /* More */
.quick-link:nth-of-type(3) { top: 16%; z-index: 997; } /* Source Code */
.quick-link:nth-of-type(4) { top: 22%; z-index: 996; } /* Gift */
/* --- Love words --- */
#ui .love {
position: absolute;
top: 50%;
left: 50%;
margin: -225px 0 0 -225px;
/* per-item delay via CSS variable --i (1..N) */
--i: 1;
}
#ui .love:last-child .love_word {
color: #fff;
font-size: 2rem;
text-shadow: 0 0 10px #ea80b0;
}
/* Make the last item match the others */
#ui .love:last-child .love_word {
color: #ea80b0;
font-size: 1.4rem;
text-shadow: 0 0 10px #fff;
}
#ui .love_word {
color: #ea80b0;
font-size: 1.4rem;
transform: translateY(-100%) rotateZ(-30deg);
text-shadow: 0 0 10px #fff;
letter-spacing: 2px;
white-space: nowrap;
}
#ui .love_horizontal {
animation: horizontal 10000ms infinite alternate ease-in-out;
animation-delay: calc(var(--i) * -300ms);
}
#ui .love_vertical {
animation: vertical 20000ms infinite linear;
animation-delay: calc(var(--i) * -300ms);
}
/* --- Animations (unchanged) --- */
@keyframes horizontal {
from { transform: translateX(0px); }
to { transform: translateX(450px); }
}
@keyframes vertical {
0% { transform: translateY(180px); }
10% { transform: translateY(45px); }
15% { transform: translateY(4.5px); }
18% { transform: translateY(0px); }
20% { transform: translateY(4.5px); }
22% { transform: translateY(34.61538px); }
24% { transform: translateY(64.28571px); }
25% { transform: translateY(112.5px); }
26% { transform: translateY(64.28571px); }
28% { transform: translateY(34.61538px); }
30% { transform: translateY(4.5px); }
32% { transform: translateY(0px); }
35% { transform: translateY(4.5px); }
40% { transform: translateY(45px); }
50% { transform: translateY(180px); }
71% { transform: translateY(428.57143px); }
72.5%{ transform: translateY(441.17647px); }
75% { transform: translateY(450px); }
77.5%{ transform: translateY(441.17647px); }
79% { transform: translateY(428.57143px); }
100% { transform: translateY(180px); }
}
</style>
</head>
<body>
<!-- Translated quick links (you can keep or remove the URLs) -->
<a href="https://mp.weixin.qq.com/s/oxLqXBcLCT8ij67DjkW2kw" class="quick-link" title="Create">Create</a>
<a href="https://shop1619956412.v.weidian.com/?userid=1619956412&spider_token=2720" class="quick-link" title="More">More</a>
<a href="https://pan.quark.cn/s/3344d23e48a8" class="quick-link" title="Source Code">Code</a>
<a href="https://shop1619956412.v.weidian.com/?userid=1619956412&spider_token=2720" class="quick-link" title="Gift">Gift</a>
<div id="ui"></div>
<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>
</body>
</html>