This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sender.html
44 lines (42 loc) · 1.62 KB
/
sender.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<title>ClipSync | PEER</title>
</head>
<body>
<div class="container">
<h1>ClipSync - Peer</h1>
<div class="status">
<div class="title">Status:</div>
<div class="id-input">
<span style="font-weight: bold">ID: </span>
<input type="text" id="receiver-id" title="Input the ID from recipient.html">
</div>
<button class="btn connect">Connect</button>
<div id="status"></div>
</div>
<div class="messages">
<div class="title">Messages:</div>
<div class="message-box">
<div class="message-panel">
<img class="hide" src="open.png" />
</div>
<div id="message"></div>
<input type="text" id="sendInput" placeholder="Enter a message..." autofocus="true">
</div>
<div class="btns">
<button class="btn send">Send</button>
<button class="btn clearMsg">Clear Messages (Locally)</button>
<button class="btn past-clipbrd">Past clipboard</button>
</div>
</div>
</div>
<script src="https://unpkg.com/[email protected]/dist/peerjs.min.js"></script>
<script src="./purify.js"></script>
<script src="./sender.js"></script>
</body>
</html>