aboutsummaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html107
1 files changed, 0 insertions, 107 deletions
diff --git a/index.html b/index.html
deleted file mode 100644
index 947b8aa..0000000
--- a/index.html
+++ /dev/null
@@ -1,107 +0,0 @@
-<!--adminPage.html-->
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta
- charset="utf-8"
- name="viewport"
- content="width=device-width, initial-scale=1"
- />
- <title>SIUE Zone Container Manager - Admin</title>
-
- <link rel="stylesheet" href="ZoneStyle.css" />
- <link rel="stylesheet" href="node_modules/xterm/css/xterm.css" />
- <script src="node_modules/xterm/lib/xterm.js"></script>
- <script src="functions.js"></script>
- </head>
-
- <body>
- <!-- sidebar on the left -->
- <div class="sidenav" id="sidebar">
- <ul>
- <li><a href="#">Create Template</a></li>
- <li><a href="#" onclick="toStudentView()">View as Student</a></li>
- <li><a href="#" onclick="logOut()">Log Out</a></li>
- </ul>
- </div>
- <!-- sidebar on the left ends -->
- <!-- main container -->
- <div class="terminalContainer" id="terminal"></div>
- <!-- main container ends-->
- <!-- topology summary -->
- <div class="topolSumContainer">
- <h2>Topology Summary</h2>
- <p>Topology summary will go here</p>
- </div>
- <!-- topology summary ends-->
- <!-- container summary -->
- <div class="containSumContainer">
- <h2>Container Summary</h2>
- <p>Container summary will go here</p>
- </div>
- <!-- <script>
- var term = new Terminal({rows: 48, cols: 140});
- term.open(document.getElementById('terminal'));
- term.write('Hello from \x1B[1;3;31mxterm.js\x1B[0m $ ')
- </script> -->
- <!-- <script type="module" src="./functions.js"></script> -->
- <script>
- //create a terminal which users can type into
- var term = new Terminal({
- rows: 48,
- cols: 140,
- cursorBlink: true,
- useStyle: true,
- theme: {
- foreground: "#fff",
- background: "#000",
- cursor: "#fff",
- cursorAccent: "#000",
- selection: "#fff",
- },
- });
- var termPrompt = "$ ";
- var command = "";
- term.open(document.getElementById("terminal"));
-
- term.write("Welcome to Featherfall Software!");
- term.writeln('');
- term.write(termPrompt);
-
- //handles typing in terminal
- term.onKey(function (key) {
- //console.log("Key is '" + key.key + "'");
-
- switch (key.key) {
- //backspace
- case '\u007F':
- //console.log("Backspace found.");
- if (command.length > 0) {
- command = command.substring(0, command.length - 1);
- term.write('\b \b');
- }
- break;
-
- //enter
- case '\r':
- //console.log("Enter found.");
- if (command == 'clear') {
- term.clear();
- }
-
- command = "";
- term.writeln('');
- term.write(termPrompt + command);
- break;
-
- //any other key
- default:
- command += key.key;
- term.write(key.key);
- break;
- }
- //console.log("command is '" + command + "'");
- });
- </script>
- </body>
-</html>