-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
68 lines (62 loc) · 2.88 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="description" content="在线Emoji表情符号搜索工具 - 快速搜索、复制和使用各类emoji表情。支持按类别浏览和关键词搜索,让您轻松找到想要的表情符号。">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#4a90e2">
<title>表情符号大全 - 轻松复制表情符号</title>
<link rel="stylesheet" href="static/css/style.css">
<link rel="manifest" href="./manifest.json">
<link rel="apple-touch-icon" href="./static/icons/icon-192x192.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body>
<header>
<h1>表情符号大全</h1>
<p>点击即可复制你喜欢的表情符号 👍</p>
</header>
<main>
<div class="search-container">
<input type="text" id="searchEmoji" placeholder="搜索表情符号...">
</div>
<div class="categories">
<button class="category-btn active" data-category="all">全部</button>
<button class="category-btn" data-category="smileys">表情</button>
<button class="category-btn" data-category="people">人物</button>
<button class="category-btn" data-category="nature">动物</button>
<button class="category-btn" data-category="food">食物</button>
<button class="category-btn" data-category="activities">活动</button>
<button class="category-btn" data-category="travel">旅行</button>
<button class="category-btn" data-category="objects">物品</button>
<button class="category-btn" data-category="symbols">符号</button>
</div>
<div id="emoji-container">
<!-- 表情符号将通过JavaScript动态加载 -->
</div>
<div id="loading-indicator" class="hidden">
<div class="loading-spinner"></div>
<span>加载更多...</span>
</div>
</main>
<footer>
<p>点击表情符号即可复制 • <a href="https://github.com/luojiyin1987/emoji-cn" target="_blank">在GitHub上查看源码</a></p>
</footer>
<div id="copy-notification" class="hidden">已复制!</div>
<script type="module" src="static/js/main.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./sw.js')
.then(registration => {
console.log('ServiceWorker registration successful');
})
.catch(err => {
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
</body>
</html>