decentralized-video-chat/public/chat.html

136 lines
4.4 KiB
HTML
Raw Normal View History

2020-03-22 05:23:46 +08:00
<!DOCTYPE html>
<html>
2020-03-31 02:16:08 +08:00
<head>
<meta charset="UTF-8" />
2020-04-03 09:24:22 +08:00
<title>ZipChat</title>
2020-03-31 02:16:08 +08:00
<link rel="shortcut icon" href="/images/logo.svg" />
<link rel="stylesheet" href="../css/chat.css" />
<link rel="stylesheet" href="../css/snackbar.css" />
<script
src="https://kit.fontawesome.com/9d7bb7e31a.js"
crossorigin="anonymous"
></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
2020-04-03 09:24:22 +08:00
<meta property="og:title" content="Join your friends call - Zipcall" />
2020-03-31 02:16:08 +08:00
<meta
property="og:description"
2020-04-05 09:06:07 +08:00
content="Click the link to join this call using Zipcall"
2020-03-31 02:16:08 +08:00
/>
2020-04-03 09:24:22 +08:00
<meta property="og:image" content="https://zipcall.io/images/preview.png" />
<meta property="og:url" content="https://zipcall.io/" />
<!-- Global site tag (gtag.js) - Google Analytics -->
2020-03-31 02:16:08 +08:00
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-162048272-1"
></script>
<script>
2020-03-31 02:16:08 +08:00
window.dataLayer = window.dataLayer || [];
2020-03-28 02:06:07 +08:00
2020-03-31 02:16:08 +08:00
function gtag() {
dataLayer.push(arguments);
}
2020-03-28 02:06:07 +08:00
2020-03-31 02:16:08 +08:00
gtag("js", new Date());
gtag("config", "UA-162048272-1");
</script>
2020-03-31 02:16:08 +08:00
</head>
<body id="body" onresize="windowResized()">
2020-03-31 02:16:08 +08:00
<div id="header">
<a href="/">
<img src="/images/logo.svg" alt="Neon" width="48" height="48" />
2020-04-03 09:24:22 +08:00
<p>Zipcall</p>
2020-03-31 02:16:08 +08:00
</a>
</div>
2020-03-29 00:36:59 +08:00
2020-03-31 02:16:08 +08:00
<p id="remote-video-text"></p>
<video id="remote-video" autoplay></video>
2020-03-31 02:16:08 +08:00
<div id="moveable">
<p id="local-video-text">No webcam input</p>
<video id="local-video" autoplay muted></video>
</div>
2020-03-31 02:16:08 +08:00
<div id="entire-chat">
<div id="chat-zone">
2020-03-31 11:12:25 +08:00
<form class="compose">
2020-03-31 12:18:15 +08:00
<input type="text" placeholder="Type a message" />
2020-03-31 11:12:25 +08:00
</form>
<div class="chat-messages"></div>
2020-03-31 02:16:08 +08:00
</div>
</div>
2020-03-31 02:16:08 +08:00
<div class="multi-button">
<div class="buttonContainer">
2020-03-28 02:06:07 +08:00
<button class="hoverButton" onclick="{muteMicrophone()}">
2020-03-31 02:16:08 +08:00
<i id="mic-icon" class="fas fa-microphone fa-xs"></i>
2020-03-28 02:06:07 +08:00
</button>
<div class="HoverState" id="mic-text">Mute</div>
2020-03-31 02:16:08 +08:00
</div>
2020-04-03 04:06:02 +08:00
<!-- <div class="buttonContainer">-->
<!-- <button class="hoverButton" onclick="{openFullscreen()}">-->
<!-- <i class="fas fa-compress fa-xs"></i>-->
<!-- </button>-->
<!-- <div class="HoverState">Fullscreen</div>-->
<!-- </div>-->
2020-04-03 04:06:02 +08:00
2020-03-31 02:16:08 +08:00
<div class="buttonContainer">
2020-03-28 02:06:07 +08:00
<button class="hoverButton" onclick="{pauseVideo()}">
2020-03-31 02:16:08 +08:00
<i class="fas fa-video fa-xs" id="video-icon"></i>
2020-03-28 02:06:07 +08:00
</button>
<div class="HoverState" id="video-text">Pause Video</div>
2020-03-31 02:16:08 +08:00
</div>
2020-04-03 04:06:02 +08:00
2020-03-31 02:16:08 +08:00
<div class="buttonContainer">
<button class="hoverButton" id="share-button" onclick="{swap()}">
2020-03-31 02:16:08 +08:00
<i id="swap-icon" class="fas fa-desktop fa-xs"></i>
2020-03-28 02:06:07 +08:00
</button>
<div class="HoverState" id="swap-text">Share Screen</div>
2020-03-31 02:16:08 +08:00
</div>
2020-04-03 04:06:02 +08:00
<div class="buttonContainer">
<button class="hoverButton" onclick="{toggleChat()}">
<i id="chat-icon" class="fas fa-comment fa-xs"></i>
</button>
<div class="HoverState" id="chat-text">Show Chat</div>
</div>
2020-03-31 02:16:08 +08:00
<div class="buttonContainer">
<button
class="hoverButton"
2020-04-03 04:06:02 +08:00
id="pip-button"
onclick="{togglePictureInPicture()}"
2020-03-31 02:16:08 +08:00
>
2020-04-03 04:06:02 +08:00
<i class="fas fa-external-link-alt fa-xs"></i>
</button>
2020-04-04 08:10:15 +08:00
<div class="HoverState" id="pip-text">Toggle Picture in Picture</div>
2020-03-31 02:16:08 +08:00
</div>
2020-04-03 04:06:02 +08:00
2020-03-31 02:16:08 +08:00
<div class="buttonContainer">
2020-03-29 10:47:24 +08:00
<button class="hoverButton" onclick="{requestToggleCaptions()}">
2020-03-31 02:16:08 +08:00
<i class="fas fa-closed-captioning fa-xs"></i>
2020-03-29 10:47:24 +08:00
</button>
2020-04-06 11:15:20 +08:00
<div class="HoverState" id="caption-button-text">
Start Live Caption
</div>
2020-03-31 02:16:08 +08:00
</div>
2020-04-03 04:06:02 +08:00
2020-03-31 02:16:08 +08:00
<div class="buttonContainer">
<button
class="hoverButton"
2020-04-05 09:06:07 +08:00
onclick="{window.location.href = '/pickname'}"
2020-03-31 02:16:08 +08:00
>
2020-04-03 04:06:02 +08:00
<i class="fas fa-phone-slash fa-xs"></i>
2020-03-30 09:46:29 +08:00
</button>
2020-04-03 04:06:02 +08:00
<div class="HoverState">End Call</div>
2020-03-31 02:16:08 +08:00
</div>
2020-03-30 09:46:29 +08:00
</div>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
2020-03-26 05:57:54 +08:00
2020-03-31 02:16:08 +08:00
<script src="/socket.io/socket.io.js"></script>
<script src="../js/snackbar.js"></script>
<script src="../js/autolink.js"></script>
2020-04-03 00:26:13 +08:00
<script id="chatJS" src="../js/chat.js"></script>
2020-03-31 02:16:08 +08:00
</body>
</html>