forked from GovindCodes/ValentineWish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
149 lines (141 loc) · 5.24 KB
/
index.html
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
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>Happy Valentine :)</title>
<link
rel="stylesheet"
/>
<link rel="shortcut icon" type="image/png" href="./img/heart.svg"/>
<link rel="stylesheet" href="style/style.css"/>
</head>
<body>
<div class="container">
<div class="one">
<h1 class="one">
亲爱的
<span id="name">猪猪</span>
</h1>
<p class="two" id="greetingText">小螺号 ^^</p>
</div>
<div class="three">
<p>新年快乐!!! :D</p>
</div>
<div class="four">
<div class="text-box">
<p class="hbd-chatbox">
以及...情人节快乐!!! hhh
</p>
<p class="fake-btn">Send</p>
</div>
</div>
<div class="five">
<p class="idea-1">两情若是久长时,又岂在朝朝暮暮。</p>
<p class="idea-2">我们已经认识了<span id="daysPassed">计算中...</span>天啦 ><</p>
<script>
// 计算从2023年7月8日到当前日期的天数
const startDate = new Date('2023-07-08');
const currentDate = new Date();
const timeDifference = currentDate - startDate;
const daysDifference = Math.floor(timeDifference / (1000 * 60 * 60 * 24));
// 更新<p>标签中的内容
document.getElementById('daysPassed').textContent = daysDifference;
</script>
<p class="idea-3">
我非常想给你一些 <strong>惊喜</strong>.
</p>
<p class="idea-4">因为,</p>
<p class="idea-5">
你就是我的惊喜
<span>:)</span>
</p>
<p class="idea-6">
<span>S</span>
<span>O</span>
</p>
</div>
<div class="six">
<img src="img/pig.jpg" alt="" class="girl-dp" id="imagePath"/>
<div class="wish">
<h3 class="wish-hbd">Happy Valentine's Day Gorgeous</h3>
<h5 id="wishText">要天天开心哦!</h5>
</div>
</div>
<div class="seven">
<div class="baloons">
<img src="img/balloon.svg" alt=""/>
<img src="img/music-note.svg" alt=""/>
<img src="img/smiling.svg"/>
<img src="img/heart.svg"/>
<img src="img/happy.svg" alt=""/>
<img src="img/balloon.svg" alt=""/>
<img src="img/music-note.svg" alt=""/>
<img src="img/smiling.svg"/>
<img src="img/heart.svg"/>
<img src="img/balloon.svg" alt=""/>
<img src="img/music-note.svg" alt=""/>
<img src="img/heart.svg"/>
<img src="img/balloon.svg" alt=""/>
<img src="img/music-note.svg" alt=""/>
<img src="img/smiling.svg"/>
<img src="img/heart.svg"/>
<img src="img/balloon.svg" alt=""/>
<img src="img/heart.svg"/>
<img src="img/heart.svg"/>
<img src="img/music-note.svg" alt=""/>
<img src="img/smiling.svg"/>
<img src="img/happy.svg" alt=""/>
<img src="img/balloon.svg" alt=""/>
<img src="img/heart.svg"/>
<img src="img/music-note.svg" alt=""/>
<img src="img/heart.svg"/>
<img src="img/happy.svg" alt=""/>
<img src="img/balloon.svg" alt=""/>
<img src="img/music-note.svg" alt=""/>
<img src="img/smiling.svg"/>
<img src="img/heart.svg"/>
<img src="img/happy.svg" alt=""/>
</div>
</div>
<div class="eight">
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
<svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="20"/>
</svg>
</div>
<div class="nine">
<p>结束啦, 怎么样做的还可以吧.</p>
<p id="replay">点击重新观看</p>
<p class="last-smile">:)</p>
</div>
</div>
</body>
<script src="script/http_cdnjs.cloudflare.com_ajax_libs_gsap_1.20.3_TweenMax.min.js"></script>
<script src="script/http_unpkg.com_babel-standalone@6_babel.js"></script>
<script type="text/babel" src="script/main.js"></script>
</html>