repl.it
HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.16/peer.min.js"></script>
  </head>
  <body class="hidden">

    <div id="connection">
      <button id="connect">Connect</button>
      <input id="id" type="text" placeholder="Remote ID or leave empty if server" />
      <span id="status"></span>
    </div>

    <div id="chat" class="hidden">

      <textarea id="out" disabled rows="20" cols="40"></textarea>
      <br/>
      <input id="input" type="text" onkeydown="kd" />

    </div>

    <script src="script.js"></script>
  </body>
</html>
result
console
?