-
Notifications
You must be signed in to change notification settings - Fork 0
/
Liu.html
316 lines (286 loc) · 13.2 KB
/
Liu.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="劉及人訃告">
<meta property="og:description" content="追思劉及人先生的生平和追悼儀式">
<meta property="og:image" content="https://shiangan.com/Shiangan/Liu-Jiren/image/logo.jpg">
<meta property="og:url" content="https://shiangan.com/Shiangan/Liu-Jiren">
<meta property="og:type" content="website">
<title>訃聞公告</title>
<link rel="stylesheet" href="obituary.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/slick/slick.min.js" defer></script>
</head>
<body>
<!-- 背景音乐 -->
<audio id="background-music" autoplay loop hidden>
<source src="audio/化為千風.mp3" type="audio/mp3">
您的浏览器不支持音频播放。
</audio>
<header>
<img src="image/logo.png" alt="Logo" class="logo">
<h1>劉及人先生 訃告</h1>
</header>
<main>
<!-- 主要照片部分 -->
<section class="main-photo-section">
<img id="main-photo" src="image/劉及人的主要照片.JPG" alt="追思照片">
<p id="life-story">
<strong>我們敬愛的親人,劉及人先生,於113年08月18日,早上08:50在家人的陪伴下,安詳離世。</strong>
</p>
<p>護喪妻 陳圓娟 率 孝男 克威 親視含殮 遵禮成服 設靈於懷愛館(原第二殯儀館)景行樓 3F 蓮位堂[I1-06]</p>
<p>將設奠於113年08月30日舉行追思會儀式,感謝親友們的致意與陪伴,給予及人先生最深的祝福,家人們銘記在心,衷心感謝。</p>
</section>
<!-- 訃告紙本部分 -->
<section class="paper-obituary-section">
<h2><strong>訃告正本</strong></h2>
<a href="劉及人訃聞.jpg" data-lightbox="paper-obituary" data-title="訃聞紙本">
<img id="paper-obituary" src="劉及人訃聞.jpg" alt="訃聞紙本">
</a>
</section>
<!-- 追思與緬懷部分 -->
<section id="remembrance">
<h2><strong>追思緬懷</strong></h2>
<div class="remembrance-details">
<div class="remembrance-item">
<h3><strong>安靈地點</strong></h3>
<p><strong>台北市懷愛館 景行樓 3F 蓮位堂 [I1-06]</strong></p>
</div>
<div class="remembrance-item">
<h3><strong>出殯地點</strong></h3>
<p><strong><a href="https://maps.app.goo.gl/Gy4b5KzT3Z6YGmXB8?g_st=com.google.maps.preview.copy" target="_blank">台北市懷愛館 3F 至仁一廳</a></strong></p>
</div>
<div class="remembrance-item">
<h3><strong>出殯日期</strong></h3>
<p><strong>中華民國 2024年08月30日</strong></p>
</div>
<div class="remembrance-item">
<h3><strong>追思會時間</strong></h3>
<p><strong>上午 11:00 家奠禮</strong></p>
<p><strong>上午 11:30 公奠禮</strong></p>
</div>
<!-- 地圖嵌入 -->
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3615.6055113137354!2d121.55302529999999!3d25.0135172!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3442aa3b0390f463%3A0x9082f68f52193107!2z5Y-w5YyX5biC5oe35oSb6aSo!5e0!3m2!1szh-TW!2stw!4v1723546074779!5m2!1szh-TW!2stw"
width="100%"
height="450"
style="border:0;"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade">
</iframe>
</div>
</section>
<!-- 感謝信息部分 -->
<div class="remembrance-thanks">
<p class="fade-in-text"><strong>感謝親友們在這段時間的慰問與關心,您的關懷和鼓勵,陪伴我們度過了這段艱難的時光,敬邀您,與我們一同緬懷及人先生的美好回憶。</strong></p>
</div>
<!-- 追思相片集 -->
<section>
<h2><strong>追思相片集</strong></h2>
<div class="slideshow">
<div class="slides">
<div><img src="image/IMG_5394.jpeg" alt="照片1"></div>
<div><img src="image/IMG_9495.jpeg" alt="照片2"></div>
</div>
</div>
</section>
<style>
.slideshow {
width: 100%;
max-width: 80%; /* 确保幻灯片不会超出页面宽度 */
height: 50vh; /* 根据需求调整高度 */
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.slides {
display: flex;
width: 100%;
height: 100%;
animation: slide 10s infinite;
}
.slides div {
flex-shrink: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.slides img {
width: auto;
height: 100%;
object-fit: contain; /* 确保图片适应容器且不会被裁剪 */
}
@keyframes slide {
0% { transform: translateX(0); }
50% { transform: translateX(-100%); }
100% { transform: translateX(0); }
}
</style>
<!-- 致贈花籃部分 -->
<section id="donate-flower">
<h2><strong>致贈花籃</strong></h2>
<p>為求會場一致性,致贈花籃請參見以下選項:</p>
<a href="javascript:void(0);" id="show-flower-baskets" class="btn"><strong>致贈花籃</strong></a>
<!-- 花篮画廊,默认隐藏 -->
<div id="flower-basket-gallery" style="display: none;">
<div class="flower-b
<div class="flower-basket-item">
<img src="image/花籃A.JPG" alt="花籃A">
<p class="price"><strong>A款NT$2,500/1對</strong></p>
</div>
<div class="flower-basket-item">
<img src="image/花籃B.JPG" alt="花籃B">
<p class="price"><strong>B款NT$3,000/1對</strong></p>
</div>
<div class="flower-basket-item">
<img src="image/花籃C.JPG" alt="花籃C">
<p class="price"><strong>C款NT$3,500/1對</strong></p>
</div>
<div class="flower-basket-item">
<img src="image/花籃D.JPG" alt="花籃D">
<p class="price"><strong>D款NT$4,000/1對</strong></p>
</div>
<div class="flower-basket-item">
<img src="image/花籃E.JPG" alt="花籃E">
<p class="price"><strong>E款NT$5,000/1對</strong></p>
</div>
<div class="flower-basket-item">
<img src="image/花籃F.JPG" alt="花籃F">
<p class="price"><strong>F款NT$5,500/1對</strong></p>
</div>
<div class="flower-basket-item">
<img src="image/花籃G.JPG" alt="花籃G">
<p class="price"><strong>G款NT$6,000/1對</strong></p>
</div>
<div class="flower-basket-item">
<img src="image/花籃H.JPG" alt="花籃H">
<p class="price"><strong>H款NT$6,500/1對</strong></p>
</div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
<p><br>訂購花籃請點選<a href="https://line.me/ti/p/lAYTmfcqvp" target="_blank"><strong>這裡</strong></a>。</p>
</section>
<style>
#flower-basket-gallery {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.flower-basket-item {
max-width: 200px; /* 控制花籃圖片最大寬度 */
text-align: center;
}
.flower-basket-item img {
width: 100%;
height: auto; /* 保持圖片比例 */
}
.price {
margin-top: 10px;
font-size: 16px;
}
</style>
<!-- 固定聯絡方式 -->
<div id="fixed-links">
<a href="tel:0978583699" class="bold">
<img src="image/24小時專線.png" alt="24小時服務電話" style="width: 70px; height: 30px;">
</a>
<a href="https://line.me/ti/p/lAYTmfcqvp" target="_blank" class="bold">
<img src="image/IMG_4177.webp" alt="LINE 聯絡我們" style="width: 50px; height: 50px;">
</a>
</div>
<!-- 名片及分享按钮部分 -->
<section id="business-card">
<img src="image/名片頁.jpg" alt="名片" class="business-card-img">
<div id="share-buttons">
<p><strong>分享此頁面</strong></p>
<a href="https://www.facebook.com/sharer/sharer.php?u=https://shiangan.github.io/Liu-Jiren/" target="_blank" class="share-btn fb-share-btn">
<img src="image/fb.png" alt="Share on Facebook">
</a>
<a href="https://line.me/R/msg/text/?https://shiangan.github.io/Liu-Jiren/" target="_blank" class="share-btn line-share-btn">
<img src="image/line.png" alt="Share on Line">
</a>
</div>
</section>
</main>
<!-- 页脚 -->
<footer>
<p>承辦禮儀公司 祥安生命有限公司 | 禮儀師:陳妍如</p>
<p>© 2024 劉及人訃聞公告 | <span class="footer-signature">祥安生命有限公司</span>版權所有 |</p>
</footer>
<!-- JavaScript -->
<script>
// 音樂自動播放
window.onload = function() {
const audio = document.getElementById('background-music');
if (audio) {
audio.play().then(() => {
// 播放成功後取消靜音
audio.muted = false;
}).catch(error => {
console.log('Autoplay was prevented:', error);
});
}
};
// 幻灯片播放功能
let slideIndex = 0;
function showSlides() {
const slides = document.querySelectorAll(".slides div");
slides.forEach(slide => slide.style.display = "none");
slideIndex++;
if (slideIndex > slides.length) { slideIndex = 1; }
slides[slideIndex - 1].style.display = "block";
setTimeout(showSlides, 3000); // 每隔3秒切換幻燈片
}
function plusSlides(n) {
slideIndex += n;
const slides = document.querySelectorAll(".slides div");
if (slideIndex > slides.length) { slideIndex = 1; }
if (slideIndex < 1) { slideIndex = slides.length; }
showSlides();
}
showSlides(); // 初次調用以顯示第一張幻燈片
// 花篮画廊显示/隐藏功能
document.getElementById('show-flower-baskets').addEventListener('click', function() {
const gallery = document.getElementById('flower-basket-gallery');
if (gallery.style.display === 'none') {
gallery.style.display = 'flex';
} else {
gallery.style.display = 'none';
}
});
// 追思动画
function animateTimeline() {
const timelineBlocks = document.querySelectorAll(".VivaTimeline .event");
timelineBlocks.forEach(function (block) {
const rect = block.getBoundingClientRect();
if (rect.top <= window.innerHeight * 0.75 && rect.bottom >= 0) {
block.classList.add("animated");
} else {
block.classList.remove("animated");
}
});
}
// 初始化动画并监听滚动事件
animateTimeline();
window.addEventListener('scroll', animateTimeline);
// 渐显文本效果
const fadeInTexts = document.querySelectorAll('.fade-in-text');
fadeInTexts.forEach((text, index) => {
setTimeout(() => {
text.style.opacity = '1';
}, index * 1500); // 每段延迟1.5秒
});
</script>
</body>
</html>