Files
Testing/videocall3/chat-hangout/index.html
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

214 lines
8.0 KiB
HTML

<!--
> Muaz Khan - https://github.com/muaz-khan
> MIT License - https://www.webrtc-experiment.com/licence/
> Experiments - https://github.com/muaz-khan/WebRTC-Experiment/tree/master/chat-hangout
-->
<!DOCTYPE html>
<html id="home" lang="en">
<head>
<title>WebRTC Group Chat | Hangout</title>
<script>
if(!location.hash.replace('#', '').length) {
location.href = location.href.split('#')[0] + '#' + (Math.random() * 100).toString().replace('.', '');
location.reload();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="author" type="text/html" href="https://plus.google.com/+MuazKhan">
<meta name="author" content="Muaz Khan">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://cdn.webrtc-experiment.com/style.css">
<style>
input {
border: 1px solid #d9d9d9;
border-radius: 1px;
font-size: 2em;
margin: .2em;
width: 60%;
}
p { padding: 1em; }
li {
border-bottom: 1px solid rgb(189, 189, 189);
border-left: 1px solid rgb(189, 189, 189);
padding: .5em;
}
#chat-table blockquote {
border: 1px dotted gray;
margin: 1em 5em;
padding: 1em 2em;
}
#chat-table blockquote hr {
border: 0;
border-top: 1px dotted #BBA9A9;
margin: 1em -2em;
}
input[disabled] {
background: #f5f0f0;
border: 1px solid #f3e4e4;
cursor: not-allowed;
}
margin-top: 0!important;
margin-bottom: 0!important;
padding: 10px 10px!important;
}
blockquote {
margin: 10px;
border-radius: 10px;
background: rgb(253, 253, 253);
padding: 8px 20px;
font-size: 25px;
font-weight: 200;
line-height: 1.5;
word-spacing: 5px;
}
section blockquote {
color: #EC008C;
}
.specific-h2, h1 {
font-size: 35px;
font-weight: 200;
padding: 5px 10px;
border-bottom: 1px dotted #EC008C;
}
.specific-h2 a {
color: #EC008C;
}
h1 {
font-size: 40px;
color: #EC008C;
}
</style>
<script>
document.createElement('article');
document.createElement('footer');
</script>
</head>
<body>
<article>
<header style="text-align: center;">
<h1>
WebRTC Group Chat | Hangout
</h1>
<p>
<a href="https://www.webrtc-experiment.com/">HOME</a>
<span> &copy; </span>
<a href="http://www.MuazKhan.com/" target="_blank">Muaz Khan</a>
.
<a href="http://twitter.com/WebRTCWeb" target="_blank" title="Twitter profile for WebRTC Experiments">@WebRTCWeb</a>
.
<a href="https://github.com/muaz-khan?tab=repositories" target="_blank" title="Github Profile">Github</a>
.
<a href="https://github.com/muaz-khan/WebRTC-Experiment/issues?state=open" target="_blank">Latest issues</a>
.
<a href="https://github.com/muaz-khan/WebRTC-Experiment/commits/master" target="_blank">What's New?</a>
</p>
</header>
<div class="github-stargazers"></div>
<section class="experiment">
<!-- <HTML code for you> ::: just copy this section! -->
<table class="visible">
<tr>
<td style="text-align: right;width: 50%!important;">
<input type="text" id="conference-name" placeholder="Hangout Name...">
</td>
<td style="width: 50%!important;">
<button id="start-conferencing" href="#">Start Chat-Hangout</button>
</td>
</tr>
</table>
<table id="rooms-list" class="visible"></table>
<table class="visible">
<tr>
<td style="text-align: center;">
<strong>Private chat-hangout</strong> ?? <a href="" target="_blank"
title="Open this link in new tab. Then your chat-hangout room will be private!"><code><strong
id="unique-token">#123456789</strong></code></a>
</td>
</tr>
</table>
<table id="chat-table" class="center-table hidden">
<tr>
<td style="text-align: center;">
<input type="text" id="chat-message" disabled>
<button id="post-chat-message">Post Message</button>
</td>
</tr>
</table>
<table id="chat-output" class="hidden"></table>
<blockquote>
A text chat-hangout experiment where all participants can share text messages in a group!
</blockquote>
</section>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="https://cdn.webrtc-experiment.com/socket.io.js"> </script>
<script src="https://cdn.webrtc-experiment.com/RTCPeerConnection-v1.5.js"> </script>
<script src="https://cdn.webrtc-experiment.com/chat-hangout/hangout.js"> </script>
<script src="https://cdn.webrtc-experiment.com/chat-hangout/hangout-ui.js"> </script>
<!-- </HTML code for you> ::: end copy this section! -->
<section style="border: 1px solid rgb(189, 189, 189); border-radius: .2em; margin: 1em 3em;">
<h2 id="feedback" style="border-bottom: 1px solid rgb(189, 189, 189); padding: .2em .4em;">Feedback</h2>
<div>
<textarea id="message"
style="border: 1px solid rgb(189, 189, 189); height: 8em; margin: .2em; outline: none; resize: vertical; width: 98%;"
placeholder="Have any message? Suggestions or something went wrong?"></textarea>
</div>
<button id="send-message" style="font-size: 1em;">Send Message</button>
</section>
<section class="experiment own-widgets latest-commits">
<h2 class="header" id="updates" style="color: red; padding-bottom: .1em;"><a href="https://github.com/muaz-khan/WebRTC-Experiment/commits/master" target="_blank">Latest Updates</a></h2>
<div id="github-commits"></div>
</section>
</article>
<a href="https://github.com/muaz-khan/WebRTC-Experiment/tree/master/chat-hangout" class="fork-left"></a>
<footer>
<p>
<a href="https://www.webrtc-experiment.com/">WebRTC Experiments</a>
© <a href="https://plus.google.com/+MuazKhan" rel="author" target="_blank">Muaz Khan</a>
<a href="mailto:muazkh@gmail.com" target="_blank">muazkh@gmail.com</a>
</p>
</footer>
<!-- commits.js is useless for you! -->
<script src="https://cdn.webrtc-experiment.com/commits.js" async> </script>
</body>
</html>