add more code, fix pre width
This commit is contained in:
parent
a25cae0e76
commit
42f1e93c29
|
@ -17,6 +17,7 @@ code {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
min-width: 42em;
|
||||||
color: #5cb85c;
|
color: #5cb85c;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>telnet 10.r3.at</h1>
|
|
||||||
<div>
|
<div>
|
||||||
|
<pre><code>$ telnet 10.r3.at</code></pre>
|
||||||
<pre><code class="output">...loading...</code></pre>
|
<pre><code class="output">...loading...</code></pre>
|
||||||
<pre><code class="output2"></code></pre>
|
<pre><code class="output2"></code></pre>
|
||||||
<pre><code class="output3"></code></pre>
|
<pre><code class="output3"></code></pre>
|
||||||
|
|
|
@ -21,7 +21,7 @@ function overwriteLine(element, text, delay) {
|
||||||
function() {
|
function() {
|
||||||
element.text(text + '\n');
|
element.text(text + '\n');
|
||||||
//console.log(text);
|
//console.log(text);
|
||||||
window.scrollTo(0,document.body.scrollHeight);
|
//window.scrollTo(0,document.body.scrollHeight);
|
||||||
},
|
},
|
||||||
globalDelay
|
globalDelay
|
||||||
)
|
)
|
||||||
|
@ -72,6 +72,9 @@ $(function () {
|
||||||
var $output = $('.output');
|
var $output = $('.output');
|
||||||
$output.text('');
|
$output.text('');
|
||||||
|
|
||||||
|
printLine($output, 'Trying 2a02:3e0:4000:1::56...');
|
||||||
|
printLine($output, 'Connected to entrance.realraum.at.');
|
||||||
|
printLine($output, 'Escape character is \'^]\'.');
|
||||||
|
|
||||||
printLine($output, '');
|
printLine($output, '');
|
||||||
printLine($output, '');
|
printLine($output, '');
|
||||||
|
@ -114,7 +117,8 @@ $(function () {
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function() {
|
function() {
|
||||||
$body.on('keypress', function (event) {
|
$body.on('keypress', function (event) {
|
||||||
console.log(event.which);
|
globalDelay = 0;
|
||||||
|
//console.log(event.which);
|
||||||
if (event.which === 121 && input === '') {
|
if (event.which === 121 && input === '') {
|
||||||
input += 'y';
|
input += 'y';
|
||||||
}
|
}
|
||||||
|
@ -130,11 +134,9 @@ $(function () {
|
||||||
if (event.which === 111 && input === 'n') {
|
if (event.which === 111 && input === 'n') {
|
||||||
input += 'o';
|
input += 'o';
|
||||||
}
|
}
|
||||||
$output.text(' are you coming? ' + input + '_\n');
|
overwriteLine($output, ' are you coming? ' + input + '_');
|
||||||
window.scrollTo(0,document.body.scrollHeight);
|
|
||||||
if (event.which === 13 && (input === 'y' || input === 'yes')) {
|
if (event.which === 13 && (input === 'y' || input === 'yes')) {
|
||||||
$body.off('keypress');
|
$body.off('keypress');
|
||||||
globalDelay = 0;
|
|
||||||
$output = $('.output4');
|
$output = $('.output4');
|
||||||
printLine($output, ' Great! We\'ll see you at the party then.');
|
printLine($output, ' Great! We\'ll see you at the party then.');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue