BinaryONe
Changes
811b3df
raw
history blame contribute delete
552 Bytes
function run_commands() {
const command = document.getElementById('command').value;
fetch('/commands', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ command: command })
})
.then(response => response.text())
.then(data => {
console.log(data);
});
}
function callFunctionTwo() {
fetch('/function_two', {
method: 'POST'
})
.then(response => response.text())
.then(data => {
console.log(data);
});
}