Skip to content

Commit 8ee5a2a

Browse files
authored
Update index.html
1 parent 1a6273b commit 8ee5a2a

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

index.html

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
}
8686
</script>
8787
</head>
88-
<body class="bg-light-bg dark:bg-dark-bg text-light-fg dark:text-dark-fg transition-colors duration-300">
88+
<body class="bg-light-bg dark:bg-dark-bg text-light-fg dark:text-dark-fg transition-colors duration-300" oncontextmenu="return false;">
8989

9090
<div id="terminal" class="p-2 sm:p-4 h-screen w-full flex flex-col">
9191
<!-- Header Jendela Terminal -->
@@ -270,7 +270,7 @@
270270
}
271271
});
272272

273-
// --- Logika Tema ---
273+
// --- Tema ---
274274
const setTheme = (theme) => {
275275
if (theme === 'dark') {
276276
document.documentElement.classList.add('dark');
@@ -294,7 +294,7 @@
294294
function getWelcomeMessage() {
295295
return `
296296
<p class="text-2xl font-bold text-light-green dark:text-dark-green mb-4">Selamat Datang di Portofolio Terminal!</p>
297-
<p>Ini adalah portofolio interaktif bergaya Command Line Interface (CLI).</p>
297+
<p>Ini adalah portofolio interaktif dengan style Command Line Interface (CLI).</p>
298298
<p>Ketik <span class="text-light-cyan dark:text-dark-cyan">'help'</span> untuk melihat daftar perintah yang tersedia.</p>
299299
<br>
300300
`;
@@ -315,6 +315,24 @@
315315
}
316316
initialize();
317317
</script>
318+
319+
<!-- block -->
320+
<script>
321+
document.addEventListener('keydown', function(e) {
322+
if (e.keyCode === 123) {
323+
e.preventDefault();
324+
}
325+
if (
326+
(e.ctrlKey && e.shiftKey && (e.key === 'I' || e.key === 'J' || e.key === 'C')) || (e.ctrlKey && e.key === 'U') || (e.metaKey && e.altKey && e.key === 'I')
327+
) {
328+
e.preventDefault();
329+
}
330+
});
331+
document.addEventListener('contextmenu', function(e) {
332+
e.preventDefault();
333+
return false;
334+
});
335+
</script>
318336
</body>
319337
</html>
320338

@@ -336,4 +354,5 @@
336354

337355

338356

357+
339358

0 commit comments

Comments
 (0)