master
Selcuk Sari 4 years ago
parent 9039fc3415
commit 46e9a54a20

@ -0,0 +1 @@
node_modules

@ -0,0 +1,6 @@
const terminal = document.getElementById("terminal");
terminal.innerHTML = "Ohhh";
const term = new Terminal({ cols: 120, rows: 10 });
term.open(terminal);
term.write("oh my god\r\n");
term.write("it looks working");

File diff suppressed because one or more lines are too long

@ -0,0 +1,24 @@
{
"name": "static",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"dependencies": {
"xterm": "^4.19.0"
}
},
"node_modules/xterm": {
"version": "4.19.0",
"resolved": "https://registry.npmjs.org/xterm/-/xterm-4.19.0.tgz",
"integrity": "sha512-c3Cp4eOVsYY5Q839dR5IejghRPpxciGmLWWaP9g+ppfMeBChMeLa1DCA+pmX/jyDZ+zxFOmlJL/82qVdayVoGQ=="
}
},
"dependencies": {
"xterm": {
"version": "4.19.0",
"resolved": "https://registry.npmjs.org/xterm/-/xterm-4.19.0.tgz",
"integrity": "sha512-c3Cp4eOVsYY5Q839dR5IejghRPpxciGmLWWaP9g+ppfMeBChMeLa1DCA+pmX/jyDZ+zxFOmlJL/82qVdayVoGQ=="
}
}
}

@ -0,0 +1,5 @@
{
"dependencies": {
"xterm": "^4.19.0"
}
}

@ -1,13 +1,16 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}"> <link
rel="stylesheet"
href="{{ url_for('static', filename='css/main.css') }}"
/>
{% block head %}{% endblock %} {% block head %}{% endblock %}
</head> </head>
<body> <body>
{% block body %}{% endblock %} {% block body %}{% endblock %}
</body> </body>
</html> </html>

@ -1,7 +1,11 @@
{% extends 'base.html' %} {% block head %} {% extends 'base.html' %} {% block head %}
<title>Anka Anvil</title> <title>Anka Anvil</title>
<link
rel="stylesheet"
href="{{ url_for('static', filename='node_modules/xterm/css/xterm.css') }}"
/>
{% endblock %} {% block body %} {% endblock %} {% block body %}
<div class="content"> <!-- <div class="content">
<h3 style="text-align: center">Please choose an application below</h3> <h3 style="text-align: center">Please choose an application below</h3>
<ul> <ul>
<li>FFlash Firmware</li> <li>FFlash Firmware</li>
@ -22,5 +26,12 @@
<input type="submit" value="Clear" name="Clear" /> <input type="submit" value="Clear" name="Clear" />
<input type="submit" value="Randomize" name="Randomize" /> <input type="submit" value="Randomize" name="Randomize" />
</form> </form>
</div> </div> -->
<!-- <div id="terminal-wrappeasdr" style="margin: 50px"> -->
<!-- </div> -->
<div id="terminal"></div>
<!-- <script src="{{ url_for('static', filename='node_modules/xterm/lib/xterm.js') }}"></script> -->
<script src="{{ url_for('static', filename='js/xterm_min.js') }}"></script>
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
{% endblock %} {% endblock %}

Loading…
Cancel
Save