-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
150 lines (120 loc) · 5.07 KB
/
main.html
File metadata and controls
150 lines (120 loc) · 5.07 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0"/>
</head>
<style>
#container {
min-height:100vh;
display:flex;
flex-direction:column;
}
#flextitle {
display: flex;
/*justify-content: space-between;*/
align-items: center;
justify-content: center;
font-family:"ui-sans-serif , system";
font-size: 2em;
font-weight: bold;
}
#flexfooter {
display: flex;
font-size: smaller;
justify-content: center;
padding: 10px;
flex-wrap: wrap;
}
#dialogws {
display: flex;
justify-content: space-between;
align-items: center;
justify-content: center;
flex-grow:1;
flex-direction: row;
align-items: stretch;
}
.baraction {
display: flex;
justify-content: space-between;
padding-bottom: 10px;
padding-top: 10px;
}
.logcontent {
background-color: white;
/* height: 300px;*/
position: relative;
display: flex;
flex-direction: column;
flex-grow: 1;
}
#logs {
overflow: auto;
}
.logmessage {
padding: 4px;
color:black ;
font-size: small;
}
.logmessagetime {
font-family: system-ui;
font-size: 10px;
display: inline;
padding-right: 4px;
}
.logmessagetimeerror {
color: red;
}
.logmessageerror {
color: red;
}
#trashlog {
position: absolute;
top: 10px;
right: 10px;
z-index: 1;
}
#icondisconnect {
position:absolute;
top: 0px;
right: 0px;
}
#iconconnect {
position:absolute;
top: 0px;
right: 0px;
}
.disconnecticon {
fill:red
}
.connecticon {
fill:white
}
</style>
<body style="margin:0; padding:0">
<div id="container">
<div id="flextitle">WASM Websocket tester</div>
<div id="dialogws">
<div style="max-width: 600px;background-color: #39375c;padding: 10px;color:white;position: relative;flex-grow: 1; display: flex;flex-direction: column;">
<div style="text-align: center; position: relative;" >Enter your WS information here:
<span id="iconconnect">
<a id="ws-disconnect" title="Close connection" href="#"><svg class="connecticon" connecticonxmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="mdi-lan-connect" width="24" height="24" viewBox="0 0 24 24"><path d="M4,1C2.89,1 2,1.89 2,3V7C2,8.11 2.89,9 4,9H1V11H13V9H10C11.11,9 12,8.11 12,7V3C12,1.89 11.11,1 10,1H4M4,3H10V7H4V3M3,13V18L3,20H10V18H5V13H3M14,13C12.89,13 12,13.89 12,15V19C12,20.11 12.89,21 14,21H11V23H23V21H20C21.11,21 22,20.11 22,19V15C22,13.89 21.11,13 20,13H14M14,15H20V19H14V15Z" /></svg></a>
</span>
<span id="icondisconnect">
<svg class="disconnecticon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="mdi-lan-disconnect" width="24" height="24" viewBox="0 0 24 24"><path d="M4,1C2.89,1 2,1.89 2,3V7C2,8.11 2.89,9 4,9H1V11H13V9H10C11.11,9 12,8.11 12,7V3C12,1.89 11.11,1 10,1H4M4,3H10V7H4V3M14,13C12.89,13 12,13.89 12,15V19C12,20.11 12.89,21 14,21H11V23H23V21H20C21.11,21 22,20.11 22,19V15C22,13.89 21.11,13 20,13H14M3.88,13.46L2.46,14.88L4.59,17L2.46,19.12L3.88,20.54L6,18.41L8.12,20.54L9.54,19.12L7.41,17L9.54,14.88L8.12,13.46L6,15.59L3.88,13.46M14,15H20V19H14V15Z" /></svg>
</span>
</div>
<div id="connect" class="baraction"><input id="wsserver" type="text" style="flex-grow: 1;padding: 5px;" placeholder="wss://ws.ifelse.io"><button id="buttonconnect" style="margin-left: 4px;min-width: 80px;">Connect</button></div>
<div id="msg" class="baraction"><input id="msg2send" type="text" style="flex-grow: 1;padding: 5px;"><button id="sendmsg" style="margin-left: 4px;min-width: 80px;">Send</button></div>
<div id="logcontent" class="logcontent">
<a id="trashlog" title="clear logs" href="" ><img src="https://raw.githubusercontent.com/Templarian/MaterialDesign/5772b5e293352e7feed316c4ab6bde3ba572959e/svg/trash-can-outline.svg"></a>
<div id="logs">
</div>
</div>
<template id="logmessagetemplate"><div id="logmessage" class="logmessage"><span id="logmessagetime" class="logmessagetime" ></span><span id="logmessagetxt"></span></div></template>
</div>
</div>
<div id="flexfooter">Develop without JS with <del>love </del> hogosuru in GO by Manuel BARRAUD</div>
</div>
</body>
</html>