BinaryONe commited on
Commit
811b3df
·
1 Parent(s): cb6f2bb
WebSSH/static/js/{AppHandler.js → app.js} RENAMED
File without changes
WebSSH/templates/index.html CHANGED
@@ -4,7 +4,7 @@
4
  <meta charset="UTF-8">
5
  <title>WebSSH</title>
6
  <link href="static/img/favicon.png" rel="icon" type="image/png">
7
- <script src="static/js/AppHandler.js" type="text/javascript"></script>
8
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
9
  <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
10
  <style>
@@ -64,7 +64,7 @@
64
  function run_commands() {
65
  const command = document.getElementById('command').value;
66
  fetch('/commands', {
67
- method: 'POST',
68
  headers: {
69
  'Content-Type': 'application/json'
70
  },
@@ -80,7 +80,7 @@
80
  var username = document.getElementById('username').value;
81
  var password = document.getElementById('password').value;
82
  fetch('/get_key', {
83
- method: 'POST',
84
  headers: {
85
  'Content-Type': 'application/json'
86
  },
 
4
  <meta charset="UTF-8">
5
  <title>WebSSH</title>
6
  <link href="static/img/favicon.png" rel="icon" type="image/png">
7
+ <script src="static/js/app.js"></script>
8
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
9
  <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
10
  <style>
 
64
  function run_commands() {
65
  const command = document.getElementById('command').value;
66
  fetch('/commands', {
67
+ method: 'GET',
68
  headers: {
69
  'Content-Type': 'application/json'
70
  },
 
80
  var username = document.getElementById('username').value;
81
  var password = document.getElementById('password').value;
82
  fetch('/get_key', {
83
+ method: 'GET',
84
  headers: {
85
  'Content-Type': 'application/json'
86
  },