-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
203 lines (176 loc) · 9.14 KB
/
demo.html
File metadata and controls
203 lines (176 loc) · 9.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="manifest" href="manifest.json">
<style>
* {
border: 0 !important;
border-width: 0 !important;
outline: none !important;
box-shadow: none !important;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
box-sizing: border-box;
border-radius: 0 !important;
}
:root { --t: 0.4s; --btn: 56px; }
body, html {
margin: 0; padding: 0; height: 100%; overflow: hidden;
background: #000; font-family: "Times New Roman", serif; font-size: 16px;
cursor: default;
}
.app-container { display: grid; height: 100vh; height: 100dvh; grid-template-columns: 1fr 0fr 2fr; transition: grid-template-columns var(--t) ease; }
.pane { position: relative; }
#area-a { padding: 15px; z-index: 10; overflow-y: auto; }
.central-col {
display: grid;
grid-template-rows: 1fr 0fr 0fr;
overflow: hidden;
background: transparent;
transition: grid-template-rows var(--t) ease;
}
.central-col.view-active { grid-template-rows: auto 1fr auto; }
#area-b { padding: 25px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
#area-c { position: relative; padding: 0; overflow: hidden; background: #000; display: none; }
.view-active #area-c { display: block; }
#viewframe { width: 100%; height: 100%; background: #fff; }
#area-d { display: none; grid-template-columns: 1fr 1fr; height: 60px; }
.view-active #area-d { display: grid; }
#area-concept { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
#concept-content { flex: 1; overflow-y: auto; padding: 25px; line-height: 1.6; }
.master-btn {
position: absolute; width: var(--btn); height: var(--btn);
border-radius: 50% !important; background: #222; color: #fff;
cursor: pointer; z-index: 2000; display: none;
align-items: center; justify-content: center;
font-size: 9px; letter-spacing: 1px;
border: 1px solid #444 !important;
}
.master-btn.visible { display: flex; }
#closeBtn { top: 50%; left: 50%; transform: translate(-50%, -50%); }
#openBtn { top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #000; }
.menu-main { cursor: pointer; display: block; padding: 10px 0; font-size: 1.1rem; transition: opacity 0.2s; }
.menu-sub { cursor: pointer; display: block; padding: 5px 0; font-size: 0.95rem; opacity: 0.6; transition: opacity 0.2s; }
.menu-sub:hover { opacity: 1; }
.light { background: #fff; color: #000; }
.dark { background: #000; color: #fff; }
.active-sel { opacity: 1; font-weight: bold; }
.nav-link { display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 11px; letter-spacing: 2px; }
/* Support Section */
.donate-box { padding: 25px; flex-shrink: 0; border-top: 1px solid rgba(255,255,255,0.1) !important; }
.donate-btn {
font-family: inherit;
color: rgba(255,255,255,0.7);
border: 1px solid rgba(255,255,255,0.7) !important;
padding: 8px 20px; background: transparent; cursor: pointer;
font-size: 16px; transition: 0.3s; letter-spacing: 1px;
}
.donate-btn:hover { background: #fff; color: #000; }
.crypto-info { display: none; flex-direction: column; gap: 8px; margin-top: 15px; }
.crypto-address-display {
font-size: 10px; color: #fff; background: rgba(255,255,255,0.05);
padding: 10px; border: 1px dashed #fff !important; cursor: copy; word-break: break-all;
}
</style>
</head>
<body oncontextmenu="return false;">
<script src="pwa-init.js"></script>
<div class="master-btn" id="closeBtn" onclick="resetUI()">CLOSE</div>
<div class="app-container" id="main">
<div class="pane light" id="area-a">
<div class="menu-main" onclick="openSection('monolith', this)">Linguistic Monolith</div>
<div class="menu-main" onclick="openSection('lab', this)">Laboratory</div>
<div class="menu-main" onclick="openSection('archive', this)">Archive</div>
</div>
<div class="central-col" id="center">
<div class="pane light" id="area-b"></div>
<div class="pane dark" id="area-c">
<iframe id="viewframe"></iframe>
<div class="master-btn" id="openBtn" onclick="fullView()">OPEN</div>
</div>
<div id="area-d">
<a href="index.html" class="pane light nav-link">HOME</a>
<a href="https://t.me/eugenebox" target="_blank" class="pane dark nav-link">FEEDBACK</a>
</div>
</div>
<div class="pane dark" id="area-concept">
<div id="concept-content">Select a directive to begin system analysis.</div>
<div class="donate-box">
<button class="donate-btn" onclick="toggleDonate()">Support</button>
<div id="cryptoInfo" class="crypto-info">
<span style="font-size: 10px; color: #fff; letter-spacing: 1px;">USDT (BEP20)</span>
<div id="cryptoAddr" class="crypto-address-display" onclick="copyToClipboard()">0x769192cea8fbb7207f086d95fd653ebc3adb0c72</div>
<span id="copyHint" style="font-size: 9px; color: #fff;">Click to copy address</span>
</div>
</div>
</div>
</div>
<script>
const db = {
'monolith': {
desc: 'A toolkit for dissecting meaning. Advanced linguistic metrics, cognitive visualization, and structural text processing via Spark, Flash, and Clock modules.',
links: [{t: 'Spark', url: 'spark.html'}, {t: 'Book', url: 'book.html'}, {t: 'Flash', url: 'flash.html'}, {t: 'Clock', url: 'clock.html'}]
},
'lab': {
desc: 'A digital proving ground. Exploring 3D environments, code architecture, and peer-to-peer interaction mechanics through experimental interfaces.',
links: [{t: 'Cube', url: 'cube.html'}, {t: 'Size', url: 'size.html'}, {t: 'Code', url: 'code.html'}, {t: 'Peer', url: 'peer.html'}]
},
'archive': {
desc: 'The system’s foundation. A structured repository of finalized concepts and the primary entry point for core protocols.',
links: [{t: 'Home', url: 'index.html'}, {t: 'Wire', url: 'wire.html'}]
}
};
let activeUrl = "";
const defaultMsg = "Select a directive to begin system analysis.";
function openSection(id, el) {
const sec = db[id];
document.querySelectorAll('.menu-main').forEach(m => m.classList.remove('active-sel'));
el.classList.add('active-sel');
document.getElementById('area-b').innerHTML = sec.links.map(l =>
`<div class="menu-sub" onclick="previewPage('${l.url}')">${l.t}</div>`
).join('');
document.getElementById('concept-content').innerText = sec.desc;
document.getElementById('center').classList.remove('view-active');
document.getElementById('openBtn').classList.remove('visible');
document.getElementById('main').style.gridTemplateColumns = '1fr 1.2fr 2fr';
document.getElementById('closeBtn').classList.add('visible');
}
function previewPage(url) {
activeUrl = url;
document.getElementById('viewframe').src = url;
document.getElementById('center').classList.add('view-active');
document.getElementById('openBtn').classList.add('visible');
}
function fullView() { if (activeUrl) window.location.href = activeUrl; }
function resetUI() {
document.getElementById('main').style.gridTemplateColumns = '1fr 0fr 2fr';
document.getElementById('center').classList.remove('view-active');
document.querySelectorAll('.master-btn').forEach(b => b.classList.remove('visible'));
document.querySelectorAll('.menu-main').forEach(m => m.classList.remove('active-sel'));
document.getElementById('concept-content').innerText = defaultMsg;
document.getElementById('viewframe').src = "";
document.getElementById('cryptoInfo').style.display = "none";
}
function toggleDonate() {
const info = document.getElementById("cryptoInfo");
const isOpening = (info.style.display !== "flex");
info.style.display = isOpening ? "flex" : "none";
if (isOpening) setTimeout(() => info.scrollIntoView({ behavior: 'smooth', block: 'end' }), 50);
}
function copyToClipboard() {
const addr = document.getElementById("cryptoAddr");
navigator.clipboard.writeText(addr.innerText).then(() => {
const oldText = addr.innerText;
addr.innerText = "Copied!";
addr.style.color = "#00ff00";
setTimeout(() => { addr.innerText = oldText; addr.style.color = "#fff"; }, 1500);
});
}
document.onselectstart = () => false;
</script>
</body>
</html>