These are the files I have:
.dir {
color: white;
font-family: "Lucida Console", Monaco, monospace;
font-size: 16px;
}
.cmdline {
font-family: "Lucida Console", Monaco, monospace;
background-color: black;
border: 1px solid black;
color: white;
font-size: 16px;
width: 100%;
}
.cmdline:focus {
outline: none !important;
border: 1px solid black;
}
.blink_text {
-webkit-animation-name: blinker;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: blinker;
-moz-animation-duration: 1s;
-moz-animation-timing-function: linear;
-moz-animation-iteration-count: infinite;
animation-name: blinker;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
color: white;
}
@-moz-keyframes blinker {
0% {
opacity: 1.0;
}
50% {
opacity: 0.0;
}
100% {
opacity: 1.0;
}
}
@-webkit-keyframes blinker {
0% {
opacity: 1.0;
}
50% {
opacity: 0.0;
}
100% {
opacity: 1.0;
}
}
@keyframes blinker {
0% {
opacity: 1.0;
}
50% {
opacity: 0.0;
}
100% {
opacity: 1.0;
}
}
<!DOCTYPE html>
<!--<>-->
<!--<ink rel="stylesheet" type="text/css" href="interface.css">-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<!--</>-->
<body style="background-color:black;">
<span class="dir">~/Link/Hydrogen/Helium/Lithium></span>
<input class="cmdline" autofocus>
<input type="submit" style="visibility: hidden;" />
</body>
Disregard the comments...
How can I create a functionality where entering a command will trigger a response to be printed? Kind of like what's seen on telehack.com? Additionally, I need help figuring out how to make an input with 100% width appear in the same line as a span
, p
, or div
. Appreciate any assistance in advance.