full move from room -> join

This commit is contained in:
Ian Ramzy 2020-04-04 21:06:07 -04:00
parent 0069818cf9
commit bda65fc136
5 changed files with 12 additions and 12 deletions

View File

@ -15,7 +15,7 @@
<meta property="og:title" content="Join your friends call - Zipcall" />
<meta
property="og:description"
content="Click the link to join this chat room using Zipcall"
content="Click the link to join this call using Zipcall"
/>
<meta property="og:image" content="https://zipcall.io/images/preview.png" />
<meta property="og:url" content="https://zipcall.io/" />
@ -116,7 +116,7 @@
<div class="buttonContainer">
<button
class="hoverButton"
onclick="{window.location.href = '/newroom'}"
onclick="{window.location.href = '/pickname'}"
>
<i class="fas fa-phone-slash fa-xs"></i>
</button>

View File

@ -347,7 +347,7 @@ function chatRoomFull() {
alert(
"Chat room is full. Check to make sure you don't have multiple open tabs, or try with a new room link"
);
window.location.href = "/newroom";
window.location.href = "/pickname";
}
function rePositionLocalVideo() {

View File

@ -92,7 +92,7 @@
#ffc55a 100%
);
"
href="/newroom"
href="/pickname"
>Try now</a
>
</div>
@ -331,7 +331,7 @@
#ffc55a 100%
);
"
href="/newroom"
href="/pickname"
>Try now</a
>
</div>

View File

@ -79,8 +79,8 @@
class="mt-0 mb-32 reveal-from-bottom"
data-reveal-delay="300"
>
Each chat has its own disposable URL. Just pick a call name and
share your custom link. It's really that easy.
Each chat has its own disposable URL. Just pick a call
name and share your custom link. It's really that easy.
</p>
</div>
<style>
@ -119,7 +119,7 @@
/>
<button
class="button button-primary pulse"
onclick="{window.location.href = '/room/' + document.getElementById('input-01').value}"
onclick="{window.location.href = '/join/' + document.getElementById('input-01').value}"
>
Go To My Call
</button>

View File

@ -28,15 +28,15 @@ app.get("/", function (req, res) {
res.sendFile(path.join(public, "landing.html"));
});
app.get("/newroom", function (req, res) {
res.sendFile(path.join(public, "newroom.html"));
app.get("/pickname", function (req, res) {
res.sendFile(path.join(public, "pickname.html"));
});
app.get("/room/", function (req, res) {
app.get("/join/", function (req, res) {
res.redirect("/");
});
app.get("/room/*", function (req, res) {
app.get("/join/*", function (req, res) {
if (Object.keys(req.query).length > 0) {
logIt("redirect:" + req.url + " to " + url.parse(req.url).pathname);
res.redirect(url.parse(req.url).pathname);