mirror of
https://github.com/seigler/fhqwhgads
synced 2025-07-27 06:46:10 +00:00
added fake replies of "command not found"
This commit is contained in:
parent
edae59d5e7
commit
adae1b71a7
8 changed files with 90 additions and 56 deletions
|
@ -1,4 +1,16 @@
|
||||||
(function() {
|
(function() {
|
||||||
|
function escapeHTML(html) {
|
||||||
|
var fn = function(tag) {
|
||||||
|
var charsToReplace = {
|
||||||
|
"&": "&",
|
||||||
|
"<": "<",
|
||||||
|
">": ">",
|
||||||
|
'"': """
|
||||||
|
};
|
||||||
|
return charsToReplace[tag] || tag;
|
||||||
|
};
|
||||||
|
return html.replace(/[&<>"]/g, fn);
|
||||||
|
}
|
||||||
function syncTyping() {
|
function syncTyping() {
|
||||||
var beforeSelection, selection, afterSelection;
|
var beforeSelection, selection, afterSelection;
|
||||||
beforeSelection = this.value.slice(0, this.selectionStart);
|
beforeSelection = this.value.slice(0, this.selectionStart);
|
||||||
|
@ -12,4 +24,13 @@
|
||||||
commandline.onkeydown = syncTyping;
|
commandline.onkeydown = syncTyping;
|
||||||
commandline.onkeyup = syncTyping;
|
commandline.onkeyup = syncTyping;
|
||||||
commandline.onselect = syncTyping;
|
commandline.onselect = syncTyping;
|
||||||
|
function handleForm() {
|
||||||
|
var scrollback = document.getElementById("scrollback");
|
||||||
|
var val = this.command.value;
|
||||||
|
this.command.value = "";
|
||||||
|
document.getElementById("typing").innerHTML = "";
|
||||||
|
scrollback.innerHTML = scrollback.innerHTML + "a>" + escapeHTML(val) + "<br>Command not found.<br>";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
document.forms[0].onsubmit = handleForm;
|
||||||
})();
|
})();
|
|
@ -1,17 +1,11 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<svg
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
<svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="200" width="2000" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
<metadata id="metadata7">
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
<rdf:RDF>
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
<cc:Work rdf:about="">
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
<dc:format>image/svg+xml</dc:format>
|
version="1.1"
|
||||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
width="2000"
|
||||||
<dc:title/>
|
height="200">
|
||||||
</cc:Work>
|
<g><path d="M 2000,0 0,200" style="fill:none;stroke:#003f00;stroke-width:5;" /></g>
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<g id="layer1" transform="translate(0,-852.36218)">
|
|
||||||
<rect id="rect2985" style="fill:#000000;" height="210" width="2000" y="847.36" x="0"/>
|
|
||||||
<path id="path2987" style="stroke-linejoin:miter;stroke:#003f00;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-width:5;fill:none;" d="M1995.1,857.28,4.9182,1047.4"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 892 B After Width: | Height: | Size: 362 B |
|
@ -19,24 +19,24 @@ label:after {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
min-height: 100%;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
font-family: computerfontregular, monospace;
|
font-family: computerfontregular, monospace;
|
||||||
color: #009900;
|
color: #009900;
|
||||||
font-size: 4vw;
|
font-size: 4vmax;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
label:before {
|
label:before {
|
||||||
content: "";
|
content: "";
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
top: -8vw;
|
top: -8vmax;
|
||||||
bottom: -8vw;
|
bottom: -8vmax;
|
||||||
-webkit-animation: scroll 10s linear infinite;
|
-webkit-animation: scroll 10s linear infinite;
|
||||||
animation: scroll 10s linear infinite;
|
animation: scroll 10s linear infinite;
|
||||||
background: url('/assets/images/scanline.svg');
|
background: url('/assets/images/scanline.svg') #000000;
|
||||||
background-size: 115vw 15vw;
|
background-size: 115vmax 15vmax;
|
||||||
background-repeat: repeat-y;
|
background-repeat: repeat-y;
|
||||||
background-position: 50% 0%;
|
background-position: 50% 0%;
|
||||||
}
|
}
|
||||||
|
@ -97,22 +97,22 @@ label:before {
|
||||||
}
|
}
|
||||||
@-webkit-keyframes scroll {
|
@-webkit-keyframes scroll {
|
||||||
0% {
|
0% {
|
||||||
-webkit-transform: translate3d(0, -7.5vw, 0);
|
-webkit-transform: translate3d(0, -7.5vmax, 0);
|
||||||
transform: translate3d(0, -7.5vw, 0);
|
transform: translate3d(0, -7.5vmax, 0);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
-webkit-transform: translate3d(0, 7.5vw, 0);
|
-webkit-transform: translate3d(0, 7.5vmax, 0);
|
||||||
transform: translate3d(0, 7.5vw, 0);
|
transform: translate3d(0, 7.5vmax, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@keyframes scroll {
|
@keyframes scroll {
|
||||||
0% {
|
0% {
|
||||||
-webkit-transform: translate3d(0, -7.5vw, 0);
|
-webkit-transform: translate3d(0, -7.5vmax, 0);
|
||||||
transform: translate3d(0, -7.5vw, 0);
|
transform: translate3d(0, -7.5vmax, 0);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
-webkit-transform: translate3d(0, 7.5vw, 0);
|
-webkit-transform: translate3d(0, 7.5vmax, 0);
|
||||||
transform: translate3d(0, 7.5vw, 0);
|
transform: translate3d(0, 7.5vmax, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
|
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
|
||||||
<title>FHQWHGADS</title>
|
<title>FHQWHGADS</title>
|
||||||
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||||
<style><?php include('compiled-styles.css'); ?></style>
|
<style><?php include('compiled-styles.css'); ?></style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -12,7 +13,7 @@
|
||||||
<div id="scrollback">
|
<div id="scrollback">
|
||||||
i love u<br>-fhqwhgadshgnsdhjsdbkhsdabkfabkveybvf<br><br>
|
i love u<br>-fhqwhgadshgnsdhjsdbkhsdabkfabkveybvf<br><br>
|
||||||
</div>
|
</div>
|
||||||
<div id="commandLine">a><input id="command" type="text" value="" /><span id="typing"></span></div>
|
<div id="commandLine">a><input id="command" name="command" type="text" value="" /><span id="typing"></span></div>
|
||||||
</label>
|
</label>
|
||||||
</form>
|
</form>
|
||||||
<script type="application/javascript"><?php include('application.js'); ?></script>
|
<script type="application/javascript"><?php include('application.js'); ?></script>
|
||||||
|
|
|
@ -16,23 +16,23 @@ label, label:before, label:after {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
min-height: 100%;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
font-family: computerfontregular, monospace;
|
font-family: computerfontregular, monospace;
|
||||||
color: @consoleColor;
|
color: @consoleColor;
|
||||||
font-size: 4vw;
|
font-size: 4vmax;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
label:before {
|
label:before {
|
||||||
content: "";
|
content: "";
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
top: -8vw;
|
top: -8vmax;
|
||||||
bottom: -8vw;
|
bottom: -8vmax;
|
||||||
animation: scroll 10s linear infinite;
|
animation: scroll 10s linear infinite;
|
||||||
background: url('/assets/images/scanline.svg');
|
background: url('/assets/images/scanline.svg') black;
|
||||||
background-size: 115vw 15vw;
|
background-size: 115vmax 15vmax;
|
||||||
background-repeat: repeat-y;
|
background-repeat: repeat-y;
|
||||||
background-position: 50% 0%;
|
background-position: 50% 0%;
|
||||||
}
|
}
|
||||||
|
@ -81,9 +81,9 @@ label:before {
|
||||||
}
|
}
|
||||||
@keyframes scroll {
|
@keyframes scroll {
|
||||||
0% {
|
0% {
|
||||||
transform: translate3d(0,-7.5vw,0);
|
transform: translate3d(0,-7.5vmax,0);
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
transform: translate3d(0,7.5vw,0);
|
transform: translate3d(0,7.5vmax,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,11 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<svg
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
<svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="200" width="2000" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
<metadata id="metadata7">
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
<rdf:RDF>
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
<cc:Work rdf:about="">
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
<dc:format>image/svg+xml</dc:format>
|
version="1.1"
|
||||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
width="2000"
|
||||||
<dc:title/>
|
height="200">
|
||||||
</cc:Work>
|
<g><path d="M 2000,0 0,200" style="fill:none;stroke:#003f00;stroke-width:5;" /></g>
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<g id="layer1" transform="translate(0,-852.36218)">
|
|
||||||
<rect id="rect2985" style="fill:#000000;" height="210" width="2000" y="847.36" x="0"/>
|
|
||||||
<path id="path2987" style="stroke-linejoin:miter;stroke:#003f00;stroke-linecap:butt;stroke-miterlimit:4;stroke-dasharray:none;stroke-width:5;fill:none;" d="M1995.1,857.28,4.9182,1047.4"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 892 B After Width: | Height: | Size: 362 B |
|
@ -4,6 +4,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
|
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
|
||||||
<title>FHQWHGADS</title>
|
<title>FHQWHGADS</title>
|
||||||
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||||
<style><?php include('compiled-styles.css'); ?></style>
|
<style><?php include('compiled-styles.css'); ?></style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -12,7 +13,7 @@
|
||||||
<div id="scrollback">
|
<div id="scrollback">
|
||||||
i love u<br>-fhqwhgadshgnsdhjsdbkhsdabkfabkveybvf<br><br>
|
i love u<br>-fhqwhgadshgnsdhjsdbkhsdabkfabkveybvf<br><br>
|
||||||
</div>
|
</div>
|
||||||
<div id="commandLine">a><input id="command" type="text" value="" /><span id="typing"></span></div>
|
<div id="commandLine">a><input id="command" name="command" type="text" value="" /><span id="typing"></span></div>
|
||||||
</label>
|
</label>
|
||||||
</form>
|
</form>
|
||||||
<script type="application/javascript"><?php include('application.js'); ?></script>
|
<script type="application/javascript"><?php include('application.js'); ?></script>
|
||||||
|
|
|
@ -1,4 +1,17 @@
|
||||||
(function(){
|
(function(){
|
||||||
|
function escapeHTML(html) {
|
||||||
|
var fn=function(tag) {
|
||||||
|
var charsToReplace = {
|
||||||
|
'&': '&',
|
||||||
|
'<': '<',
|
||||||
|
'>': '>',
|
||||||
|
'"': '"'
|
||||||
|
};
|
||||||
|
return charsToReplace[tag] || tag;
|
||||||
|
}
|
||||||
|
return html.replace(/[&<>"]/g, fn);
|
||||||
|
}
|
||||||
|
|
||||||
function syncTyping() {
|
function syncTyping() {
|
||||||
var beforeSelection, selection, afterSelection;
|
var beforeSelection, selection, afterSelection;
|
||||||
beforeSelection = this.value.slice(0, this.selectionStart);
|
beforeSelection = this.value.slice(0, this.selectionStart);
|
||||||
|
@ -12,4 +25,14 @@
|
||||||
commandline.onkeydown = syncTyping;
|
commandline.onkeydown = syncTyping;
|
||||||
commandline.onkeyup = syncTyping;
|
commandline.onkeyup = syncTyping;
|
||||||
commandline.onselect = syncTyping;
|
commandline.onselect = syncTyping;
|
||||||
|
|
||||||
|
function handleForm() {
|
||||||
|
var scrollback = document.getElementById('scrollback');
|
||||||
|
var val = this.command.value;
|
||||||
|
this.command.value = '';
|
||||||
|
document.getElementById("typing").innerHTML = '';
|
||||||
|
scrollback.innerHTML = scrollback.innerHTML + 'a>' + escapeHTML(val) + '<br>Command not found.<br>';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
document.forms[0].onsubmit = handleForm;
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue