|
|
@@ -34,7 +34,7 @@ function reloadTerminal() { |
|
|
|
const terminal = document.querySelector("#term"); |
|
|
|
const autoscroll = document.querySelector("#scroll"); |
|
|
|
|
|
|
|
fetch(`/terminal`, { |
|
|
|
fetch('/terminal', { |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/x-www-form-urlencoded', |
|
|
@@ -60,7 +60,7 @@ document.addEventListener('DOMContentLoaded', () => { |
|
|
|
// use data- attributes for action |
|
|
|
document.querySelectorAll('.control').forEach((button) => { |
|
|
|
button.onclick = () => { |
|
|
|
fetch(`/action`, { |
|
|
|
fetch('/action', { |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/x-www-form-urlencoded', |