decentralized-video-chat/public/chat.html

139 lines
4.6 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>
2020-04-30 09:41:53 +08:00
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-162048272-1"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-162048272-1");
</script>
2020-03-31 02:16:08 +08:00
<meta charset="UTF-8" />
2020-04-12 20:43:04 +08:00
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2020-04-30 09:41:53 +08:00
<title>Zipcall</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>
<script src="/js/jquery.ui.touch-punch.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/" />
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 target="_blank" href="/">
2020-03-31 02:16:08 +08:00
<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>
2020-05-30 18:54:57 +08:00
<div id="wrapper"></div>
2020-03-31 02:16:08 +08:00
<div id="moveable">
<p id="local-video-text">No webcam input</p>
2020-04-13 01:56:33 +08:00
<video id="local-video" autoplay muted playsinline></video>
2020-03-31 02:16:08 +08:00
</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
<div class="chat-messages"></div>
2020-03-31 02:16:08 +08:00
</div>
<form class="compose">
<input type="text" placeholder="Type a message" />
</form>
</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-07 06:28:42 +08:00
onclick="{window.location.href = '/newcall'}"
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>
2020-03-26 05:57:54 +08:00
2020-04-06 12:44:16 +08:00
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
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>
<script src="https://cdn.rawgit.com/muaz-khan/DetectRTC/master/DetectRTC.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>