-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
135 lines (122 loc) · 4.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!doctype html>
<html>
<head>
<title>NodeBox | BCH</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: courier, monospace;
color: #fff;
width:750px;
margin-left:auto;
margin-right:auto;
margin-top:10px;
font-size:14px;
background-color:black;
background:black;
line-height:normal;
}
li {
background:black;
background-color:black;
}
form { background: #000; padding: 3px; position: fixed; bottom: 0; width: 775px; }
form input { border: 0; padding: 10px; width: 90%; margin-right: .5%; height:40px;
font: 400 14px system-ui;
}
form button { width: 9%; background: rgb(130, 224, 255); border: none; padding: 10px; height:40px;}
#messages { list-style-type: none; margin: 0; padding: 0; }
#messages li { padding: 5px 10px; }
#messages li:nth-child(odd) { }
#messages { margin-bottom: 55px }
#messages li { background-color:black;
position:relative;
}
#tracker { margin:2em; position: fixed; top: 0; left: 0; z-index: 999; width: 100%; height: 23px;}
@media only screen and (max-width: 775px) {
form {
width: 100%;
}
form input button {
height:60px;
}
#messages { margin-bottom: 65px }
}
@media only screen and (max-device-width: 480px) {
body {
width:480;
overflow: hidden;
}
#messages li {
width:480;
}
}
</style>
</head>
<!-- background: #000; font: 13px Helvetica, Arial; -->
<body>
<ul id="messages">
</ul>
<form action="">
<input id="m" autocomplete="off" /><button> ENTER </button>
</form>
<!-- <script src="https://cdn.socket.io/socket.io-1.2.0.js"></script> -->
<script src="https://cdn.socket.io/4.6.0/socket.io.min.js" integrity="sha384-c79GN5VsunZvi+Q/WObgk2in0CbZsHnjEqvFxC5DxHn9lTfNce2WW6h2pH6u/kF+" crossorigin="anonymous"></script>
<!-- <script src="/socket.io/socket.io.js"></script> -->
<!-- <script src="https://code.jquery.com/jquery-1.11.1.js"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script>
$(function () {
var socket = io();
$('#m').focus();
$('#m').select();
$('form').submit(function(){
if(($('#m').val() == 'clear') || ($('#m').val() == 'reboot')){
location.reload();
}
if($('#m').val() == 'keepbitcoinfree.org'){
window.location.replace('https://keepbitcoinfree.org');
}
if($('#m').val() == 'donate'){
$('#messages').append($('<li style="color:#0f0;text-align:center;"><a href="bitcoincash:qr2fmqy796u2nevuj57vhmcak7vv786zjq389wv7ly"><img src="/img/nodebox-donation-addr.png" height=250px width=250px /></a>'));
}
socket.emit('chat message', $('#m').val());
$('#m').val('');
return false;
});
socket.on('chat message', function(msg){
$('#messages').append($('<li>').text(msg));
window.scrollTo(0, document.body.scrollHeight);
});
socket.on('update', function(msg){
$('#messages').append($('<li style="color:#0f0;">').text(msg));
window.scrollTo(0, document.body.scrollHeight);
});
socket.on('error', function(msg){
$('#messages').append($('<li style="color:red;">').text(msg));
window.scrollTo(0, document.body.scrollHeight);
});
// socket.on('waiting', function(msg){
// $('#messages').append($('<span>').text(msg));
// window.scrollTo(0, document.body.scrollHeight);
// });
socket.on('example', function(msg){
$('#messages').append($('<li style="color:grey;padding-left:50px;">').text(msg));
window.scrollTo(0, document.body.scrollHeight);
});
socket.on('logo', function(msg){
$('#messages').append($('<li style="line-height:.3em;color:white;text=align:center;">').text(msg));
window.scrollTo(0, document.body.scrollHeight);
});
socket.on('logo1', function(msg){
$('#messages').append($('<li style="line-height:.1em;color:white;text=align:center;">').text(msg));
window.scrollTo(0, document.body.scrollHeight);
});
});
</script>
<!-- <div id="tracker">
Linux Terminal styling -
https://www.besttechie.com/how-to-make-your-website-look-like-a-linux-terminal/
</div> -->
</body>
</html>