-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
256 lines (186 loc) · 7.03 KB
/
index.html
File metadata and controls
256 lines (186 loc) · 7.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>localhost knowledge base</title>
<meta name="description" content="localhost knowledge base" />
<meta name="theme-color" content="#3366cc" />
<meta name="color-scheme" content="light dark" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: blob:; script-src 'self' blob:; object-src 'none'; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; base-uri 'self'; form-action 'self';">
<meta http-equiv="Referrer-Policy" content="no-referrer">
<meta http-equiv="Permissions-Policy" content="microphone=(), camera=(), geolocation=()">
<link rel="manifest" href="./manifest.json">
<link rel="stylesheet" href="./styles.css" type="text/css">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="icon" href="./icon-192.png" type="image/png" sizes="192x192">
<link rel="apple-touch-icon" href="./icon-192.png">
<script>
/**
* MEV Legacy Sentry
* Detects if the browser is 'Outdated' (Cannot handle ES6 logic)
* and redirects to the 'Less' interface for safety.
*/
(function() {
var isLegacy = false;
try {
// Test for Arrow Functions and Default Parameters (ES6)
new Function("(a = 0) => a");
} catch (err) {
isLegacy = true;
}
// Also check for LocalStorage (Required for the Subconscious)
if (!window.localStorage) {
isLegacy = true;
}
if (isLegacy) {
console.log("Legacy Browser Detected. Redirecting to Less Interface...");
window.location.href = "./less.html";
}
})();
</script>
<script src="./a.js" defer></script>
</head>
<body>
<div id="offline-message">
⚠️ You’re offline. Some features may be unavailable.
</div>
<header>
<button id="menu-btn" aria-label="Toggle menu navigation">☰</button>
<div id="ai-bar">
<input
type="text"
id="ai-input"
placeholder="search or speak your query…"
aria-label="Search or question input"
data-action="filter-sidebar"
list="search-suggestions">
<datalist id="search-suggestions">
<option value="Main_Page">
<option value="Formatting_Examples">
</datalist>
<button id="ai-button">OK</button>
</div>
</header>
<div id="find-view">
<div id="search-container">
<p id="search-note" style="font-size: 0.9em; margin-bottom: 10px;"></p>
<input
id="filterInput-find"
data-action="filter-findview"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
type="text"
placeholder="Search wiki pages..."
aria-label="Search wiki pages"
aria-describedby="search-note"
required>
<ul id="page-list-find"></ul>
<div id="status-message-find">Start typing to filter pages...</div>
</div>
</div>
<div id="container">
<nav id="sidebar">
<div id="auth-links">
<div id="user-status">Not logged in</div>
<a href="#create" id="create-account-link">Create Account</a><br>
<a href="#login" id="login-link">Log In</a><br>
<a href="#profile" id="profile-link">My Profile</a><br>
<a href="#logout" id="logout-link" class="hidden">Log Out</a>
</div>
<br>
<center>
<button id="theme-toggle-btn" class="mev-button" style="width: auto; margin-left: 10px; padding: 5px 10px;">
Toggle "Less" Theme
</button>
</center>
<br>
<hr/>
<h3>Navigation Filters</h3>
<ul id="quick-filters">
<li class="titleInput"><button data-page-target="Main_Page">Main_Page</button></li>
<li class="titleInput"><button data-nav-target="recent">Recent Changes</button></li>
<li class="titleInput"><button data-nav-target="settings">Settings</button></li>
<li class="titleInput"><button data-nav-target="about">About</button></li>
<li class="titleInput"><button data-page-target="Formatting_Examples">Wiki Formatting Help</button></li>
</ul>
<hr />
<h3>Wiki Pages</h3>
<ul id="page-list"></ul>
<button id="create-page-btn" class="edit-btn" style="width: 100%; margin-top: 10px;">+ New Page</button>
<div id="storage-bar">
<div id="storage-bar-inner"></div>
</div>
</nav>
<main id="main-content-wrapper" itemscope itemtype="https://schema.org/WebPage">
<meta itemprop="url" content="https://jehovahsays.github.io/mev/">
<div id="page-container"></div>
</main>
</div>
<footer>
<div id="status-indicator">🔴 Offline
</div>
<div id="ticker"><span id="ticker-content"></span></div>
<span id="last-updated" style="margin-left: auto;"></span>
</footer>
<div id="auth-modal" class="modal-overlay">
<div class="modal-box">
<h2 id="auth-modal-title">Enter Username</h2>
<label for="auth-username">Username:</label>
<input id="auth-username" type="text" autocomplete="username" /><br><br>
<label for="auth-pin">PIN/Passphrase (4-12 characters recommended):</label>
<input id="auth-pin" type="password" maxlength="12" autocomplete="current-password" />
<p style="font-size: 0.8em; color: red; margin-top: 10px;">⚠️ If you set a PIN/Passphrase, **all your data will be encrypted**.</p>
<div class="modal-actions">
<button id="submit-auth">Submit</button>
<button id="cancel-auth">Cancel</button>
</div>
</div>
</div>
<div id="mev-splash-screen" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: black; z-index: 9999; overflow: hidden;">
<div id="info" style="position: absolute; top: 10px; width: 100%; text-align: center; color: white; z-index: 100; pointer-events: none;"></div>
<a href="./css.html#search">
<button
class="mev-button"
style="color: #ccc; margin-top: 10px; font-family: monospace;">
Turn off CSS
</button>
</a>
<a href="./chat.html">
<button
class="mev-button"
style="color: #ccc; margin-top: 10px; font-family: monospace;">
chat
</button>
</a>
<a href="./stream.html">
<button
class="mev-button"
style="color: #ccc; margin-top: 10px; font-family: monospace;">
local video stream
</button>
</a>
<a href="./less.html">
<button
class="mev-button"
style="color: #ccc; margin-top: 10px; font-family: monospace;">
less version for outdated and legacy browsers.
</button>
</a>
<noscript>
<p id="noscript-warning" style="text-align: center; color: red; padding: 20px;">
This application requires JavaScript. <br>
Please enable JavaScript for MEV Wiki to function.
</p>
</noscript>
<ul id="page-list-splash" style="list-style: none; padding: 0; margin: 10px 0;">
</ul>
<div id="status-message-splash" style="color: #ccc; margin-top: 10px; font-family: monospace;">
</div>
</div>
</div>
</body>
</html>