-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
263 lines (234 loc) · 10.2 KB
/
index.html
File metadata and controls
263 lines (234 loc) · 10.2 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Trabalho Final — Tecnologia · Hackers · Games</title>
<!-- Estilos -->
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="assets/css/emulator.css" />
<!-- Scripts existentes -->
<script defer src="assets/js/script.js"></script>
<script defer src="assets/js/game.js"></script>
<script defer src="assets/js/emulator.js"></script>
<!-- Emulatrix SNES -->
<script>
var EmulatrixModule = {
locateFile: function(path) {
if (path.endsWith(".wasm")) return "wasm/Emulatrix_SuperNintendo.wasm";
return path;
}
};
</script>
<script src="wasm/Emulatrix_SuperNintendo.js"></script>
</head>
<body>
<!-- Fundo Matrix -->
<canvas id="matrix-bg" class="matrix-bg" aria-hidden="true"></canvas>
<div class="app-container rgb-border" id="app">
<!-- HEADER -->
<header class="topbar">
<div class="brand">
<h1>TF — Tecnologia · Hackers · Games</h1>
<p class="tag">História • Ferramentas (contexto & impacto) • Mini-Game educativo</p>
</div>
<nav class="topnav" id="topnav" aria-label="Navegação principal">
<a href="#intro">Início</a>
<a href="#tecnologia">Tecnologia</a>
<a href="#hardware">Hardware</a>
<a href="#ferramentas">Ferramentas</a>
<a href="#game">Mini-Game</a>
<a href="#games">Emulador Retro</a>
<a href="#retro-emulator">Emulatrix SNES</a>
<!-- Aba que abre o jogo -->
<a href="#overbyteos">OverByte OS Game</a>
<a href="#contato">Contato</a>
</nav>
<div class="top-controls">
<button id="contrast-toggle" title="Alternar tema">⚡</button>
</div>
</header>
<!-- MAIN GRID -->
<main class="main-grid" id="main">
<!-- COLUNA ESQUERDA -->
<aside class="side left-side">
<section class="card">
<h3>Resumo rápido</h3>
<p>Este trabalho apresenta a evolução da tecnologia, componentes de hardware, perfis e história das ferramentas com enfoque crítico e um mini-game educativo em formato quiz terminal.</p>
</section>
<section class="card">
<h3>Leaderboard</h3>
<div id="leaderboard" class="leaderboard" aria-live="polite">
<ol id="lb-list"><li>— vazio —</li></ol>
<button id="clear-lb">Limpar</button>
</div>
</section>
</aside>
<!-- CONTEÚDO PRINCIPAL -->
<section class="content" id="content">
<!-- INÍCIO -->
<article id="intro" class="panel">
<h2>Início</h2>
<p>Bem-vindo. Este projeto agrupa conteúdos sobre história da computação, hardware, ferramentas do universo de segurança (apresentadas em contexto histórico e ético) e um mini-game educativo.</p>
</article>
<!-- TECNOLOGIA -->
<article id="tecnologia" class="panel">
<h2>Tecnologia — Linha do tempo resumida</h2>
<ul class="timeline">
<li><strong>Pré-história:</strong> Ábaco e ferramentas mecânicas.</li>
<li><strong>1940s:</strong> Mainframes e ENIAC. Programação de baixo nível.</li>
<li><strong>1950–1970:</strong> Transístor e circuitos integrados.</li>
<li><strong>1971:</strong> Intel 4004 — microprocessadores.</li>
<li><strong>2000s:</strong> Multicore e GPUs.</li>
<li><strong>2010s–2020s:</strong> Nuvem, IA e computação heterogênea.</li>
</ul>
</article>
<!-- HARDWARE -->
<article id="hardware" class="panel">
<h2>Hardware — CPU / Placa-mãe / GPU (resumo)</h2>
<p>Principais componentes e evolução: soquetes, chipsets, litografia, memória, barramentos (PCIe) e impacto em jogos e ciência.</p>
</article>
<!-- FERRAMENTAS -->
<article id="ferramentas" class="panel">
<h2>Ferramentas (contexto e impacto)</h2>
<p>Exemplos: <strong>Nmap</strong>, <strong>Wireshark</strong>, <strong>Metasploit</strong>, <strong>John the Ripper</strong>, <strong>Forensics</strong>. Cada ficha no quiz traz história e impacto — sem instruções práticas.</p>
</article>
<!-- MINI-GAME SIMHACK -->
<article id="game" class="panel panel-game">
<h2>Mini-Game — SimHack (Quiz Terminal)</h2>
<p>Modo quiz: responda perguntas por nível, ganhe pontos, desbloqueie fichas ilustrativas com histórico.</p>
<div class="game-wrapper">
<div class="terminal-card" role="application">
<div class="terminal-header">
<span class="dot red"></span>
<span class="dot yellow"></span>
<span class="dot green"></span>
<div class="term-title">simhack@tf:~ /quiz</div>
</div>
<div id="terminal" class="terminal">
<div id="terminal-output" class="terminal-output">Clique em <strong>Iniciar</strong> para começar.</div>
<div id="choices" class="choices"></div>
</div>
<div class="terminal-controls">
<div class="left-controls">
<button id="game-start">Iniciar</button>
<button id="game-next" disabled>Próxima</button>
<button id="game-reset">Reiniciar</button>
</div>
<div class="right-controls">
<div class="scoreline">Score: <strong id="score">0</strong></div>
<div class="scoreline">Nível: <strong id="level">0</strong></div>
</div>
</div>
</div>
</div>
</article>
<!-- EMULADOR RETRO -->
<article id="games" class="panel">
<h2>Emulador Retro</h2>
<div id="emulator-root" class="emulator-root">
<canvas id="emu-screen" width="512" height="480"></canvas>
<div class="emu-controls">
<label class="file-btn">
<input id="rom-file" type="file" accept=".smc,.sfc,.zip" />
Carregar ROM
</label>
<button id="emu-run">▶️ Iniciar</button>
<button id="emu-pause">⏸️ Pausar</button>
<button id="emu-reset">🔁 Reset</button>
</div>
<div id="emu-status" class="emu-status">Nenhuma ROM carregada</div>
</div>
</article>
<!-- EMULATRIX SNES -->
<article id="retro-emulator" class="panel">
<h2>Emulatrix SNES</h2>
<p>Carregue uma ROM (.smc/.sfc) e jogue diretamente no navegador com Emulatrix.</p>
<div id="emulatrix-root" class="emulator-root">
<canvas id="emulatrix-screen" width="512" height="480"></canvas>
<div class="emu-controls">
<label class="file-btn">
<input id="emulatrix-rom" type="file" accept=".smc,.sfc,.zip" />
Carregar ROM
</label>
<button id="emulatrix-run">▶️ Iniciar</button>
<button id="emulatrix-pause">⏸️ Pausar</button>
<button id="emulatrix-reset">🔁 Reset</button>
</div>
<div id="emulatrix-status" class="emu-status">Nenhuma ROM carregada</div>
</div>
</article>
<!-- OVERBYTE OS GAME (game.html) -->
<article id="overbyteos" class="panel">
<h2>OverByte OS Game</h2>
<!-- IFRAME COM ALTURA PERFEITA -->
<iframe src="game.html"
style="width: 100%; height: calc(100vh - 180px); border: 2px solid #0f0; border-radius: 8px;"
title="OverByte OS Game">
</iframe>
<p style="color:#aaa">Game Educativo diverta-se!!!!!.</p>
</article>
<!-- CONTATO -->
<article id="contato" class="panel">
<h2>Contato</h2>
<p>Autor: Matheus Wickert Garbilla — email: exemplo@dominio.com</p>
</article>
</section>
<!-- COLUNA DIREITA -->
<aside class="side right-side">
<section class="card">
<h3>Ferramentas desbloqueadas</h3>
<div id="unlocked-list">Nenhuma ainda</div>
</section>
<section class="card">
<h3>Créditos & Observações</h3>
<p>Material educativo e histórico. O objetivo é informar e contextualizar.</p>
</section>
</aside>
</main>
<footer class="footer">
<p>© 2025 — Trabalho Final — Matheus Wickert Garbilla</p>
</footer>
</div>
<!-- INICIALIZAÇÃO EMULATRIX -->
<script>
document.addEventListener("DOMContentLoaded", () => {
let emu = null;
let romData = null;
EmulatrixModule.onRuntimeInitialized = function() {
emu = EmulatrixModule;
console.log("Emulatrix pronto!");
};
const romFile = document.getElementById("emulatrix-rom");
const runBtn = document.getElementById("emulatrix-run");
const pauseBtn = document.getElementById("emulatrix-pause");
const resetBtn = document.getElementById("emulatrix-reset");
const status = document.getElementById("emulatrix-status");
romFile.addEventListener("change", async (e) => {
const file = e.target.files[0];
if (!file) return;
const arrayBuffer = await file.arrayBuffer();
romData = new Uint8Array(arrayBuffer);
status.textContent = `ROM carregada: ${file.name}`;
});
runBtn.addEventListener("click", () => {
if (!romData || !emu) return alert("Carregue uma ROM primeiro!");
const filename = romFile.files[0].name;
emu.FS_createDataFile("/", filename, romData, true, true);
emu.ccall("EmulatrixRunROM", null, ["string"], ["/" + filename]);
status.textContent = "Emulador rodando!";
});
pauseBtn.addEventListener("click", () => {
if (!emu) return;
emu.ccall("EmulatrixPause", null, [], []);
status.textContent = "Emulador pausado.";
});
resetBtn.addEventListener("click", () => {
if (!emu) return;
emu.ccall("EmulatrixReset", null, [], []);
status.textContent = "Emulador resetado!";
});
});
</script>
</body>
</html>