-
Notifications
You must be signed in to change notification settings - Fork 4
/
screenshare.html
169 lines (140 loc) · 6.94 KB
/
screenshare.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mirror Mate</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<link rel="stylesheet" href="./style/room.css">
<script src="https://kit.fontawesome.com/6510466b6c.js" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Trocchi&display=swap" rel="stylesheet">
<script>
const params = new URLSearchParams(location.search);
if (!params.get("room")) location.href = "/";
</script>
</head>
<div class="loader">
<span class="loader__element"></span>
<span class="loader__element"></span>
<span class="loader__element"></span>
</div>
<body>
<div class="overlay" id="overlay">
<div class="box">
<div class="head-name">Enter your name</div>
<input type="text" class="name-field" placeholder="Type here.." id="name-field"></input><br>
<button class="continue-name">Continue</button>
</div>
</div>
<div class="container-room">
<div class="left-cont">
<div class="video-cont-single" id="vcont">
<div class="video-box">
<video class="video-frame" id="vd1" autoplay playsinline>
</video>
<div class="nametag" id="myname">yourname</div>
<div class="mute-icon" id="mymuteicon"><i class="fas fa-microphone-slash"></i></div>
<div class="video-off" id="myvideooff">Video Off</div>
</div>
</div>
<div class="editor-cont">
<div class="label-close-div">
<div class="live-editor-label">
Live Editor
</div>
<div class="live-text-editor-close">
<i class="fa fa-close"></i>
</div>
</div>
<textarea id="live-editor" autofocus placeholder="Start writing here..." rows="20" cols="100"></textarea>
</div>
<div class="whiteboard-cont"><canvas id="whiteboard" height="1000" width="1000"></canvas>
<div class="colors-cont">
<div class="black" onclick="setColor('black')"></div>
<div class="red" onclick="setColor('#e74c3c')"></div>
<div class="blue" onclick="setColor('#3498db')"></div>
<div class="orange" onclick="setColor('#e67e22')"></div>
<div class="yellow" onclick="setColor('#f1c40f')"></div>
<div class="pink" onclick="setColor('#fd79a8')"></div>
<div class="brown" onclick="setColor('#834c32')"></div>
<div class="green" onclick="setColor('#badc58')"></div>
<div class="purple" onclick="setColor('#9b59b6')"></div>
<div class="maroon" onclick="setColor('#800000')"></div>
<div class="aquamarine" onclick="setColor('#00FFFF')"></div>
<div class="grey" onclick="setColor('gray')"></div>
<div class="eraser" onclick="setEraser()"><i class="fas fa-eraser"></i></div>
<div class="clearboard" onclick="clearBoard()"><i class="fas fa-trash-alt"></i></div>
<div class="download-canvas" onclick="downloadCanvas()"><i class="fas fa-download"></i></div>
</div>
</div>
<div class="footer">
<div class="time-display-div">
<span id="time-display-span">
</span>
</div>
<div class="utils">
<div class="audio">
<i class="fas fa-microphone"></i>
</div>
<div class="novideo">
<i class="fas fa-video"></i>
</div>
<div class="screenshare tooltip">
<i class="fas fa-desktop"></i>
<span class="tooltiptext">Share Screen</span>
</div>
<div class="board-icon tooltip">
<i class="fas fa-chalkboard-teacher"></i>
<span class="tooltiptext">Whiteboard</span>
</div>
<div class="live-text-editor tooltip">
<i class="fa fa-clipboard"></i>
<span class="tooltiptext">Live Text Editor</span>
</div>
<div class="participants tooltip">
<i class="fas fa-users mr-1"></i>
<span class="tooltiptext">Participants</span>
</div>
<div class="chat-tooltip tooltip">
<i class="fas fa-comment-alt mr-1"></i>
<span class="tooltiptext">Chat</span>
</div>
<div class="endcall tooltip">
<i class="fas fa-phone-slash"></i>
<span class="tooltiptext">End Call</span>
</div>
</div>
<div class="copycode-cont">
<div class="roomcode"></div>
<i class="copycode-button fa fa-copy" onclick="CopyClassText()"></i>
<div class="whatsapp-code tooltip" onclick="shareCodeOnWp()">
<i class="fa fa-whatsapp"></i>
<span class="tooltiptext">Send Invite On WhatsApp</span>
</div>
</div>
</div>
</div>
<div class="right-cont">
<div class="head-title">
<div class="chats"><i class="fas fa-comment-alt mr-1"></i>Chats</div>
<div class="participants-right-cont-switch"><i class="fas fa-users mr-1"></i>Participants</div>
</div>
<div class="chat-cont">
</div>
<div class="participants-cont">
<ul id="participants-list-id" class="participants-list">
</ul>
</div>
<div class="chat-input-cont">
<div class="ci-cont"><input type="text" class="chat-input" placeholder="Send a message to everyone"></div>
<div class="ci-send"><i class="chat-send fa fa-send"></i></div>
</div>
</div>
</div>
<script src="https://cdn.socket.io/4.6.0/socket.io.min.js" integrity="sha384-c79GN5VsunZvi+Q/WObgk2in0CbZsHnjEqvFxC5DxHn9lTfNce2WW6h2pH6u/kF+" crossorigin="anonymous"></script>
<script src="./public/screenshare.js"></script>
</body>
</html>