body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
#command-container {
max-width: 600px;
margin: 50px auto;
background-color: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
#output {
height: 200px;
overflow-y: auto;
border: 1px solid #ccc;
padding: 10px;
margin-bottom: 10px;
}
#input-container {
display: flex;
}
#input {
flex: 1;
padding: 10px;
}
#submit {
background-color: #007bff;
color: #fff;
padding: 10px;
cursor: pointer;
}
function executeCommand() {
const inputElement = document.getElementById('input');
const outputElement = document.getElementById('output');
const command = inputElement.value;
// Add your command logic here
const result = `Command executed: ${command}`;
// Display the result in the output container
outputElement.innerHTML += `
${result}
`; // Clear the input field
inputElement.value = '';
}
0 Comments