From 67f3eab7aba135fe669589927954d34c2fe30c3e Mon Sep 17 00:00:00 2001 From: Neil Kollack Date: Sun, 20 Mar 2022 01:14:53 -0500 Subject: feat: garbage terminal --- functions.js | 67 ------------------------------------------------------------ 1 file changed, 67 deletions(-) delete mode 100644 functions.js (limited to 'functions.js') diff --git a/functions.js b/functions.js deleted file mode 100644 index 62aca84..0000000 --- a/functions.js +++ /dev/null @@ -1,67 +0,0 @@ -//import Terminal from './node_modules/xterm'; -//import "./node_modules/xterm/css/xterm.css"; -/* -const styles = { - fontFamily: 'sans-serif', - textAlign: 'center', -}; - -var terminal = new Terminal({ rows: 48, cols: 140 }); -terminal.open(document.getElementById('terminal'),false); - -var termPrompt = '$ '; -var command = ''; -var backspaceLimit = 2; - -terminal.open(document.getElementById('terminal')); -terminal.write('Welcome to Featherfall Containers!'); - -terminal.writePrompt = function () { - terminal.write('\r\n' + termPrompt); -}; - -terminal.on('key', - function (key, eVal) { - var isPrintable = ( - !eVal.metaKey && !eVal.altKey && !eVal.ctrlKey - ); - - switch (ev.key) { - case 'Enter': - if (command == 'clear') { - terminal.clear(); - } - - command = ''; - - terminal.writePrompt(); - break; - case 'Backspace': - console.log(terminal.rows); - - if (terminal.x > backspaceLimit) { - terminal.write('\b \b'); - } - break; - default: - if (isPrintable) { - command += key; - terminal.write(key); - } - break; - } - } -); - -terminal.on('paste', - function (copiedData, eVal) { - terminal.write(copiedData); - } -); -*/ -function toStudentView() { - location.replace("studentPage.html") -} -function logOut() { - location.replace("login.html") -} \ No newline at end of file -- cgit v1.2.3-70-g09d2