-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path360mail.html
More file actions
349 lines (348 loc) · 17 KB
/
Copy path360mail.html
File metadata and controls
349 lines (348 loc) · 17 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
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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!-- ========================
360 Mail — v3.0.3
========================== -->
<!DOCTYPE html>
<html lang="en">
<head>
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-89NN1P6CEV"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-89NN1P6CEV');</script>
<meta charset="utf-8"/>
<meta content="width=device-width,initial-scale=1.0" name="viewport"/>
<title>360 — Mail</title>
<link href="/manifest.json" rel="manifest"/>
<meta content="#3b82f6" name="theme-color"/>
<link href="/favicon-32x32.png" rel="icon" type="image/png"/>
<link href="/apple-touch-icon.png" rel="apple-touch-icon"/>
<link href="/assets/css/main.css" rel="stylesheet"/>
<link href="/assets/css/wide.css" rel="stylesheet"/>
<link href="/assets/css/gallium.css" rel="stylesheet"/>
<link href="/assets/css/cursor.css" rel="stylesheet"/>
<link href="/assets/css/responsive.css" rel="stylesheet"/>
<link href="/assets/css/mail.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="https://cdn.jsdelivr.net/npm/dompurify@3.1.6/dist/purify.min.js"></script>
<meta content="360 Mail is part of 360 Digital. Explore its features and use it online through the 360 platform." name="description"/><meta content="index, follow" name="robots"/><meta content="website" property="og:type"/><meta content="360 — Mail" property="og:title"/><meta content="360 Mail is part of 360 Digital. Explore its features and use it online through the 360 platform." property="og:description"/><meta content="https://360-search.com/apps/360mail.html" property="og:url"/><meta content="360" property="og:site_name"/><meta content="summary" name="twitter:card"/><meta content="360 — Mail" name="twitter:title"/><meta content="360 Mail is part of 360 Digital. Explore its features and use it online through the 360 platform." name="twitter:description"/><link href="https://360-search.com/apps/360mail.html" rel="canonical"/></head>
<body>
<div class="cursor-dot"></div>
<div class="cursor-trail"></div>
<div class="cursor-crosshair"></div>
<div class="cursor-blob"></div>
<button class="sidebar-toggle" id="sidebarToggle">☰ Menu</button>
<aside class="sidebar" id="sidebar">
<div class="sidebar-header">
<div class="logo-mark"></div>
<button id="settingsBtn">⚙</button>
</div>
<nav class="nav-list">
<a class="nav-item" href="/" data-href="/">Home</a>
<a class="nav-item" href="/ai" data-href="/ai">AI</a>
<a class="nav-item" href="/weather" data-href="/weather">Weather</a>
<a class="nav-item" href="/translator" data-href="/translator">Translator</a>
<a class="nav-item" href="/stocks" data-href="/stocks">Stocks</a>
<a class="nav-item" href="/url-shortener" data-href="/url-shortener">URL Shortener</a>
<a class="nav-item" href="/chat" data-href="/chat">Chat</a>
<a class="nav-item" href="/news" data-href="/news">News</a>
<a class="nav-item" href="/apps" data-href="/apps">Apps</a>
<a class="nav-item" href="/games" data-href="/games">Games</a>
<a class="nav-item active" href="/360mail" data-href="/360mail">360Mail</a>
</nav>
<div class="sidebar-footer"><span id="sidebar-ver">Loading...</span></div>
</aside>
<div class="overlay" id="overlay"></div>
<div class="settings-panel" id="settingsPanel">
<h3>Appearance</h3>
<div class="settings-label">Theme</div>
<div class="theme-swatches">
<div class="theme-option"><div class="swatch" data-theme="ocean"></div><span>Ocean</span></div>
<div class="theme-option"><div class="swatch" data-theme="midnight"></div><span>Midnight</span></div>
<div class="theme-option"><div class="swatch" data-theme="sunset"></div><span>Sunset</span></div>
<div class="theme-option"><div class="swatch" data-theme="mint"></div><span>Mint</span></div>
<div class="theme-option"><div class="swatch" data-theme="neon"></div><span>Neon</span></div>
<div class="theme-option"><div class="swatch" data-theme="mono"></div><span>Mono</span></div>
</div>
<div class="settings-label" style="margin-top:20px;">Mode</div>
<label style="display:flex;align-items:center;gap:10px;cursor:pointer;">
<span style="font-size:14px;">Dark mode</span>
<input id="darkToggle" type="checkbox"/>
</label>
<h3 style="margin-top:20px;">Cursor</h3>
<div class="settings-label">Style</div>
<div class="cursor-options">
<div class="cursor-option active" data-cursor="default"><div class="cursor-preview preview-default"></div>Default</div>
<div class="cursor-option" data-cursor="dot"><div class="cursor-preview preview-dot"></div>Dot</div>
<div class="cursor-option" data-cursor="ring"><div class="cursor-preview preview-ring"></div>Ring</div>
<div class="cursor-option" data-cursor="crosshair"><div class="cursor-preview preview-crosshair"></div>Crosshair</div>
<div class="cursor-option" data-cursor="blob"><div class="cursor-preview preview-blob"></div>Blob</div>
<div class="cursor-option" data-cursor="system"><div class="cursor-preview preview-system"></div>System</div>
</div>
<div class="cursor-color-row">
<label>Cursor color</label>
<input id="cursorColorPicker" type="color" value="#3b82f6"/>
<button id="cursorColorReset">Reset</button>
</div>
<div class="temp-unit-box" style="margin-top:20px;">
Temp Unit: <span id="tempUnitLabel">°C</span>
<button id="tempUnitBtn">Switch</button>
</div>
<div class="settings-box" style="margin-top:20px;">
<div class="settings-label">Background Image</div>
<input accept="image/*" class="settings-input" id="bgUpload" type="file"/>
<input class="settings-input" id="bgUrlInput" placeholder="Paste image URL…" type="text"/>
<button class="settings-btn" id="bgUrlBtn">Apply URL</button>
<button class="settings-btn" id="bgResetBtn">Reset</button>
</div>
<h3 style="margin-top:25px;">Legal</h3>
<a class="legal-link" href="/privacypolicy">🔒 Privacy Policy</a>
<a class="legal-link" href="/tos">📜 Terms of Service</a>
<h3 style="margin-top:25px;">About</h3>
<details class="about-dropdown">
<summary>ℹ️ What is 360?</summary>
<p>360 is a next-generation search engine and digital workspace. Built by 360 Digital, Co.</p>
</details>
</div>
<div class="auth-top-right">
<button class="auth-btn" id="signInBtn">Sign In</button>
<button class="auth-btn" id="signUpBtn">Sign Up</button>
<button class="auth-btn" id="signOutBtn" style="display:none;">Sign Out</button>
</div>
<button class="install-banner" id="installBtn" style="display:none;">Install 360</button>
<!-- ── GATE ── -->
<div class="mail-gate" id="mailGate" style="display:none;">
<div class="mail-gate-icon">✉️</div>
<div class="mail-gate-title">360Mail</div>
<div class="mail-gate-sub">Sign in to access your @360-search.com inbox.</div>
<button class="mail-gate-btn" onclick="location.href='/account?signin&from=/360mail'">Sign In</button>
</div>
<!-- ── MAIN APP ── -->
<div class="mail-root" id="mailApp" style="display:none;">
<!-- Left sidebar -->
<div class="mail-left" id="mailLeft">
<button class="mail-compose-btn" id="composeBtn"><span>✏</span><span>Compose</span></button>
<div class="folder-label">Mailbox</div>
<div class="folder-item active" data-builtin="1" data-folder="inbox">
<span class="fi-icon">📩</span><span class="fi-name">Inbox</span>
<button class="folder-reload-btn" title="Reload">↻</button>
<span class="folder-badge" id="inboxBadge" style="display:none;"></span>
</div>
<div class="folder-item" data-builtin="1" data-folder="sent">
<span class="fi-icon">📨</span><span class="fi-name">Sent</span>
<button class="folder-reload-btn" title="Reload">↻</button>
</div>
<div class="folder-item" data-builtin="1" data-folder="starred">
<span class="fi-icon">⭐</span><span class="fi-name">Starred</span>
<button class="folder-reload-btn" title="Reload">↻</button>
</div>
<div class="folder-item" data-builtin="1" data-folder="scheduled">
<span class="fi-icon">⏰</span><span class="fi-name">Scheduled</span>
<button class="folder-reload-btn" title="Reload">↻</button>
<span class="folder-badge" id="scheduledBadge" style="display:none;"></span>
</div>
<div class="folder-label" id="customFolderLabel" style="display:none;">
Categories
<button class="folder-add-btn" id="addCategoryBtn" title="Add category">+</button>
</div>
<div class="folder-label" id="customFolderLabelShow" style="display:none;">
<!-- shown when categories exist, has the + button -->
</div>
<!-- custom category items injected here -->
<div id="customFolderList"></div>
<!-- Always-visible + button below built-in folders when no categories yet -->
<div style="padding:4px 8px 0;">
<button class="folder-item" id="addCategoryBtnAlt" style="width:calc(100% - 0px);justify-content:center;gap:6px;background:none;border:1px dashed var(--glass-border-strong);color:var(--mut);font-size:12px;margin:4px 0;">
<span>+</span><span class="fi-name" style="flex:unset;">New Category</span>
</button>
</div>
<div class="mail-address-pill" id="myAddressPill">Loading…</div>
</div>
<!-- Middle: list -->
<div class="mail-list-panel" id="mailListPanel">
<div class="mail-list-header">
<div class="mail-list-title" id="listTitle">Inbox</div>
<div class="mail-list-count" id="listCount">0</div>
<button class="mail-list-reload" id="listReloadBtn" title="Reload">↻</button>
</div>
<div class="mail-search-bar">
<input id="mailSearch" placeholder="Search mail…" type="text"/>
</div>
<div class="mail-bulk-bar" id="bulkBar">
<span id="bulkCount">0 selected</span>
<button id="bulkSelectAllBtn">Select all</button>
<button id="bulkClearBtn">Clear</button>
<button class="mail-bulk-delete" id="bulkDeleteBtn">Delete</button>
</div>
<div class="mail-list-scroll" id="mailListScroll">
<div id="mailSkeletons">
<div class="mail-skeleton"><div class="sk-line" style="width:60%"></div><div class="sk-line" style="width:85%"></div><div class="sk-line" style="width:45%"></div></div>
<div class="mail-skeleton"><div class="sk-line" style="width:55%"></div><div class="sk-line" style="width:78%"></div><div class="sk-line" style="width:50%"></div></div>
<div class="mail-skeleton"><div class="sk-line" style="width:70%"></div><div class="sk-line" style="width:88%"></div><div class="sk-line" style="width:40%"></div></div>
</div>
</div>
</div>
<!-- Right: reading pane -->
<div class="mail-read-pane" id="mailReadPane">
<div class="mail-no-select" id="noMailSelected">
<div class="mail-no-select-icon">✉️</div>
<div class="mail-no-select-text">Select a message to read</div>
</div>
<div id="mailReadContent" style="display:none;flex-direction:column;flex:1;overflow:hidden;">
<div class="mail-read-header">
<div class="mrh-subject" id="rdSubject"></div>
<div class="mrh-meta">
<div class="mrh-from" id="rdFrom"></div>
<div class="mrh-addr" id="rdAddr"></div>
<div class="mrh-time" id="rdTime"></div>
</div>
<div class="mrh-badges" id="rdBadges"></div>
</div>
<div class="mail-read-actions">
<button class="mra-btn" id="rdReply">↩ Reply</button>
<button class="mra-btn" id="rdForward">→ Forward</button>
<button class="mra-btn" id="rdStar">☆ Star</button>
<button class="mra-btn danger" id="rdCancelSchedule" style="display:none;">⏹ Cancel send</button>
<button class="mra-btn danger" id="rdDelete">🗑 Delete</button>
<button class="mra-btn" id="rdBack" style="display:none;">← Back</button>
</div>
<div class="mail-read-body" id="rdBody"></div>
</div>
</div>
</div>
<!-- ── COMPOSE MODAL ── -->
<div class="compose-modal" id="composeModal">
<div class="compose-box">
<div class="compose-header">
<span class="compose-title">✏ New Message</span>
<button class="compose-close" id="composeClose">✕</button>
</div>
<div class="compose-fields">
<div class="compose-field"><label>To</label><input id="cTo" placeholder="recipient@example.com" type="email"/></div>
<div class="compose-field"><label>Subject</label><input id="cSubject" placeholder="Subject" type="text"/></div>
</div>
<div class="compose-toolbar">
<button class="fmt-btn" data-cmd="bold" title="Bold"><b>B</b></button>
<button class="fmt-btn" data-cmd="italic" title="Italic"><i>I</i></button>
<button class="fmt-btn" data-cmd="underline" title="Underline"><u>U</u></button>
<button class="fmt-btn" data-cmd="strikeThrough" title="Strikethrough"><s>S</s></button>
<span class="fmt-sep"></span>
<select class="fmt-select" id="cFontSize" title="Font size">
<option value="2">Small</option>
<option selected="" value="3">Normal</option>
<option value="5">Large</option>
<option value="7">Huge</option>
</select>
<span class="fmt-sep"></span>
<button class="fmt-btn" data-cmd="insertUnorderedList" title="Bullet list">≡</button>
<button class="fmt-btn" data-cmd="insertOrderedList" title="Numbered list">①</button>
<button class="fmt-btn" data-cmd="createLink" title="Insert link">🔗</button>
<button class="fmt-btn fmt-btn-html" id="cHtmlToggle" title="Edit raw HTML source"></> HTML</button>
</div>
<div class="compose-body-wrap">
<div class="compose-editor" contenteditable="true" data-placeholder="Write your message…" id="cEditor"></div>
<textarea class="compose-html-source" id="cHtmlSource" placeholder="<p>Write raw HTML here…</p>" spellcheck="false"></textarea>
</div>
<div class="compose-attach-row">
<button class="c-attach-btn" id="cAttachBtn">📎 Attach files</button>
<input id="cAttachInput" multiple="" style="display:none;" type="file"/>
<div id="cAttachList" style="display:flex;gap:8px;flex-wrap:wrap;"></div>
</div>
<div class="compose-options">
<div class="compose-opt-row">
<div class="compose-opt-text">
<div class="compose-opt-label">⏳ Email expiration</div>
<div class="compose-opt-sub">Automatically delete this email after a set date</div>
<div class="compose-opt-input" id="cExpireInputWrap">
<input id="cExpireAt" type="datetime-local"/>
</div>
</div>
<label class="opt-switch"><input id="cExpireToggle" type="checkbox"/><span class="slider"></span></label>
</div>
<div class="compose-opt-row">
<div class="compose-opt-text">
<div class="compose-opt-label">🔥 Self-destruct after reading</div>
<div class="compose-opt-sub">Deleted from the recipient's inbox once opened</div>
</div>
<label class="opt-switch"><input id="cSelfDestructToggle" type="checkbox"/><span class="slider"></span></label>
</div>
<div class="compose-opt-row" id="cScheduleRow" style="display:none;border-bottom:none;">
<div class="compose-opt-text">
<div class="compose-opt-input show">
<input id="cScheduleAt" type="datetime-local"/>
</div>
</div>
</div>
</div>
<div class="compose-footer">
<button class="compose-send-btn" id="cSendBtn"><span>✈</span> Send</button>
<button class="compose-schedule-btn" id="cScheduleBtn"><span>⏰</span> Schedule</button>
<span class="compose-status" id="cStatus"></span>
</div>
</div>
</div>
<!-- ── DELETE CONFIRM ── -->
<div class="modal-overlay" id="confirmOverlay">
<div class="modal-box" style="text-align:center;">
<div class="modal-title" style="text-align:center;">Delete message?</div>
<div class="modal-sub">This will permanently remove the message.</div>
<div class="modal-actions" style="justify-content:center;">
<button class="modal-cancel" id="confirmCancel">Cancel</button>
<button class="modal-confirm danger" id="confirmDelete">Delete</button>
</div>
</div>
</div>
<!-- ── NEW CATEGORY MODAL ── -->
<div class="modal-overlay" id="catModal">
<div class="modal-box">
<div class="modal-title">New Category</div>
<div class="cat-form-row">
<label>Name</label>
<input id="catName" placeholder="e.g. GitHub, Work, Family" type="text"/>
</div>
<div class="cat-form-row">
<label>Color</label>
<input id="catColor" type="color" value="#6366f1"/>
</div>
<div style="font-size:12px;color:var(--mut);margin-bottom:6px;">Sender rules — messages from these addresses are copied to this category:</div>
<div class="rule-list" id="ruleList"></div>
<div class="rule-add-row">
<input id="ruleInput" placeholder="sender@example.com" type="email"/>
<button id="ruleAddBtn">+ Add</button>
</div>
<div class="modal-actions">
<button class="modal-cancel" id="catModalCancel">Cancel</button>
<button class="modal-confirm" id="catModalSave">Create</button>
</div>
</div>
</div>
<!-- ── EDIT CATEGORY MODAL ── -->
<div class="modal-overlay" id="catEditModal">
<div class="modal-box">
<div class="modal-title">Edit Category</div>
<div class="cat-form-row">
<label>Name</label>
<input id="catEditName" type="text"/>
</div>
<div class="cat-form-row">
<label>Color</label>
<input id="catEditColor" type="color"/>
</div>
<div style="font-size:12px;color:var(--mut);margin-bottom:6px;">Sender rules:</div>
<div class="rule-list" id="editRuleList"></div>
<div class="rule-add-row">
<input id="editRuleInput" placeholder="sender@example.com" type="email"/>
<button id="editRuleAddBtn">+ Add</button>
</div>
<div class="modal-actions">
<button class="modal-cancel" id="catEditCancel">Cancel</button>
<button class="modal-confirm danger" id="catEditDelete" style="margin-right:auto;">Delete</button>
<button class="modal-confirm" id="catEditSave">Save</button>
</div>
</div>
</div>
<script src="/assets/js/main.js"></script>
<script src="/assets/js/auth-fix.js"></script>
<script src="/assets/js/wide.js"></script>
<script src="/assets/js/gallium.js"></script>
<script src="/assets/js/cookie.js"></script>
<script src="/assets/js/cursor.js"></script>
<script src="/assets/js/mail.js"></script>
</body>
</html>