File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed
Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 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 -->
270270 }
271271 } ) ;
272272
273- // --- Logika Tema ---
273+ // --- Tema ---
274274 const setTheme = ( theme ) => {
275275 if ( theme === 'dark' ) {
276276 document . documentElement . classList . add ( 'dark' ) ;
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 ` ;
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
336354
337355
338356
357+
339358
You can’t perform that action at this time.
0 commit comments