-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpopup.html
More file actions
129 lines (120 loc) · 6.31 KB
/
popup.html
File metadata and controls
129 lines (120 loc) · 6.31 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
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CopyLoad</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container">
<div class="header">
<div class="header-left">
<a href="https://anhhackta.github.io/" target="_blank" class="brand-logo-container">
<div class="brand-logo">
<div class="logo-inner">
<span class="logo-text">CL</span>
</div>
<div class="logo-dot"></div>
</div>
</a>
<div class="brand-text-container">
<span class="brand-name">CopyLoad</span>
<span class="brand-title">Save every copy</span>
</div>
</div>
<div class="header-controls">
<div class="dropdown" id="languageDropdown">
<button class="dropdown-btn" id="languageBtn">
<span id="currentLang">VN</span>
</button>
<div class="dropdown-content" id="languageContent">
<div class="dropdown-item active" data-lang="vi">VN</div>
<div class="dropdown-item" data-lang="en">EN</div>
</div>
</div>
<div class="dropdown" id="themeDropdown">
<button class="dropdown-btn" id="themeBtn">
<span id="currentTheme">🌙</span>
</button>
<div class="dropdown-content" id="themeContent">
<div class="dropdown-item" data-theme="light">🌞</div>
<div class="dropdown-item" data-theme="dark">🌙</div>
<div class="dropdown-item" data-theme="system">🖥️</div>
</div>
</div>
</div>
</div>
<div class="controls">
<div class="toggle-group">
<label class="toggle-label">
<input type="checkbox" id="toggleCtrlC" checked>
<span class="toggle-slider"></span>
<span class="toggle-text">Lưu khi Ctrl+C</span>
</label>
</div>
<div class="toggle-group">
<label class="toggle-label">
<input type="checkbox" id="togglePersistent" checked>
<span class="toggle-slider"></span>
<span class="toggle-text">Lưu vào máy</span>
</label>
</div>
</div>
<div class="search-section">
<div class="search-container">
<input type="text" id="searchInput" class="search-input" placeholder="Tìm kiếm clipboard...">
<div class="clipboard-counter" id="clipboardCounter">0</div>
</div>
</div>
<div class="text-list" id="textList">
<!-- Danh sách text sẽ được thêm vào đây -->
</div>
<div class="footer">
<div class="footer-buttons">
<button id="downloadBtn" class="download-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7,10 12,15 17,10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Download
</button>
<button id="clearAllBtn" class="clear-all-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="3,6 5,6 21,6"></polyline>
<path d="M19,6v14a2,2 0 0,1 -2,2H7a2,2 0 0,1 -2,-2V6m3,0V4a2,2 0 0,1 2,-2h4a2,2 0 0,1 2,2v2"></path>
</svg>
Xóa hết
</button>
</div>
<div class="author">
<div class="author-links">
<!-- Nguyễn Bá Hoàng - link đến Facebook -->
<a class="author-link" id="authorName">Nguyễn Bá Hoàng</a>
<span>-</span>
<!-- Ủng hộ ý tưởng - link đến PayPal -->
<a class="author-link" id="supportLink">Donate</a>
</div>
<a href="https://github.com/anhhackta/" target="_blank" class="github-link">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
</svg>
</a>
</div>
</div>
</div>
<!-- Modal for clear all confirmation -->
<div id="clearAllModal" class="modal">
<div class="modal-content">
<div class="modal-title">Xác nhận xóa</div>
<div class="modal-text">Bạn có chắc chắn muốn xóa tất cả clipboard? Hành động này không thể hoàn tác.</div>
<div class="modal-buttons">
<button class="modal-btn modal-btn-cancel" id="cancelClear">Hủy</button>
<button class="modal-btn modal-btn-confirm" id="confirmClear">Xóa tất cả</button>
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>