aboutsummaryrefslogtreecommitdiffstats
path: root/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js67
1 files changed, 0 insertions, 67 deletions
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