-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.html
More file actions
78 lines (75 loc) · 1.88 KB
/
Copy pathconsole.html
File metadata and controls
78 lines (75 loc) · 1.88 KB
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
<!DOCTYPE html>
<html>
<head>
<title>SHEP AI</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<style>
body{
background-color:black;
color:white;
zoom: 125%;
}
input{
font-size:10px;
background-color:black;
color:white;
width:90%;
border: 0px solid;
outline: 0;
}
p{
font-size:10px;
}
@media only screen and (max-width: 600px) {
body{
zoom: 170%;
}
}
</style>
<body>
<p>
<pre>
`.--::::::--.`
`-://////////////:-`
.:////////////////////:.
-/////shhy/:--:://///////-
://///hMMMMm` `.:///////:
.//////sdNNmo -///////.
://////-`..` ///////-
://////- ///////-
.///////. -///////.
:///////-.` `.:///////:
-////////:::--:://///////-
.:////////////////////:.
.-///////////////:-`
`.--::::::--.`
</pre></p>
<p>For more information go to <a href="https://www.shepai.github.io" style="color:white;">SHEP AI</a></p>
<br>
<div>
<p id="output">Shep Message >></p>
<br>
<span class="textbox">
<p>User Message >></p>
<input type="text" id="input" name="fname" value="" autocomplete="off" placeholder="please type your message here">
</span>
<br>
</div>
</body>
<script>
var con=new WebSocket("ws://80.5.202.205:50101") //ws://echo.websocket.org
con.onopen=function(){con.send("hi"+"---"+"");};
con.onerror=function(error){console.log("error"+error);};
con.onmessage=function(e){
document.getElementById("output").innerHTML=e.data;
document.getElementById("input").value="";
}
input.addEventListener("keyup", function(event) {
// Number 13 is the "Enter" key on the keyboard
if (event.keyCode === 13) {
con.send(document.getElementById("input").value);
}
});
</script>
</html>