From eb84974aab719d4bc9814135a4bc41f9551a222f Mon Sep 17 00:00:00 2001 From: gurgenbrx <156850445+gurgenbrx@users.noreply.github.com> Date: Tue, 21 May 2024 13:40:43 -0600 Subject: [PATCH 1/8] Updated to new xterm, added rickroll code --- config/commands.js | 18 +- index.html | 20 +- js/rickroll.js | 28 + js/terminal-ext.js | 6 +- package-lock.json | 40076 ------------------------------------------- package.json | 11 +- 6 files changed, 72 insertions(+), 40087 deletions(-) create mode 100644 js/rickroll.js delete mode 100644 package-lock.json diff --git a/config/commands.js b/config/commands.js index d918ce27..c330b286 100644 --- a/config/commands.js +++ b/config/commands.js @@ -92,7 +92,14 @@ const commands = { }, test: function() { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + // innerText HTMLElement pointer for the correct terminal line. + // We use this line to replace it with a video element. + term.stylePrint(`${colorText("nf134bf139b", "command")}`, false); + + // Mass print of background lines to correctly represent the height of the video + for(let i = 0; i < 41; i++) { + term.stylePrint(`${colorText("dn19BRXub191", "command")}`, false); + } }, email: function() { @@ -242,7 +249,14 @@ const commands = { term.stylePrint(`No such file: ${filename}`); } if (filename == "id_rsa") { - term.openURL("https://i.imgur.com/Q2Unw.gif"); + // innerText HTMLElement pointer for the correct terminal line. + // We use this line to replace it with a video element. + term.stylePrint(`${colorText("nf134bf139b", "command")}`, false); + + // Mass print of background lines to correctly represent the height of the video + for(let i = 0; i < 41; i++) { + term.stylePrint(`${colorText("dn19BRXub191", "command")}`, false); + } } }, diff --git a/index.html b/index.html index 54c0f509..f32feaa0 100644 --- a/index.html +++ b/index.html @@ -46,8 +46,9 @@ - - + + + @@ -81,6 +82,21 @@