mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-23 10:39:20 +08:00
add not supported page
This commit is contained in:
parent
4b22a48420
commit
426b185982
@ -796,12 +796,22 @@ function togglePictureInPicture() {
|
||||
//
|
||||
|
||||
function startUp() {
|
||||
if (
|
||||
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
||||
navigator.userAgent
|
||||
)
|
||||
) {
|
||||
alert(
|
||||
"Zipcall is not currently supported on mobile. Please try again on dekstop."
|
||||
);
|
||||
window.location.href = "/notsupported";
|
||||
}
|
||||
// Redirect unsupported browsers
|
||||
if (!isWebRTCSupported || browserName === "MSIE") {
|
||||
alert(
|
||||
"Your browser doesn't support Zipcall. Please use Chrome, Firefox, or Safari on laptop/desktop."
|
||||
);
|
||||
window.location.href = "/";
|
||||
window.location.href = "/notsupported";
|
||||
}
|
||||
|
||||
document.title = "Zipcall - " + url.substring(url.lastIndexOf("/") + 1);
|
||||
|
147
public/notsupported.html
Normal file
147
public/notsupported.html
Normal file
@ -0,0 +1,147 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="no-js">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<title>Zipcall</title>
|
||||
<link rel="stylesheet" href="css/landing.css" />
|
||||
<link rel="shortcut icon" href="images/logo.svg" />
|
||||
<meta property="og:title" content="Zipcall - Decentralized video calls" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Decentralized video
|
||||
calling provides real-time HD quality and latency simply
|
||||
not available with traditional technology."
|
||||
/>
|
||||
<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 -->
|
||||
<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>
|
||||
</head>
|
||||
<body class="has-animations">
|
||||
<div class="body-wrap">
|
||||
<header class="site-header reveal-from-top">
|
||||
<div class="container">
|
||||
<div class="site-header-inner">
|
||||
<div class="brand">
|
||||
<h1 class="m-0">
|
||||
<a href="/"
|
||||
><img src="images/logo.svg" alt="Neon" width="32" height="32"
|
||||
/></a>
|
||||
</h1>
|
||||
</div>
|
||||
<button
|
||||
id="header-nav-toggle"
|
||||
class="header-nav-toggle"
|
||||
aria-controls="primary-menu"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<span class="screen-reader">Menu</span>
|
||||
<span class="hamburger"
|
||||
><span class="hamburger-inner"></span
|
||||
></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="site-content">
|
||||
<section class="hero section illustration-section-01">
|
||||
<div class="container">
|
||||
<div class="hero-inner section-inner">
|
||||
<div class="split-wrap invert-mobile">
|
||||
<div class="split-item">
|
||||
<div
|
||||
class="hero-content split-item-content center-content-mobile"
|
||||
>
|
||||
<h1
|
||||
class="mt-0 mb-16 reveal-from-bottom"
|
||||
data-reveal-delay="150"
|
||||
>
|
||||
Your browser is not supported. Please try Chrome, Safari,
|
||||
or Firefox on a desktop/laptop browser.
|
||||
</h1>
|
||||
</div>
|
||||
<style>
|
||||
@media (min-width: 641px) {
|
||||
.hero .split-wrap .split-item {
|
||||
min-height: 492px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
<footer class="site-footer center-content-mobile">
|
||||
<div class="container">
|
||||
<div class="site-footer-inner">
|
||||
<div class="footer-top space-between text-xxs">
|
||||
<div class="brand">
|
||||
<a href="/"
|
||||
><img src="images/logo.svg" alt="Neon" width="32" height="32"
|
||||
/></a>
|
||||
</div>
|
||||
<div class="footer-social">
|
||||
<div>
|
||||
<a
|
||||
target="_blank"
|
||||
href="https://github.com/ianramzy/decentralized-video-chat"
|
||||
>
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<title>GitHub</title>
|
||||
<path
|
||||
d="M7.95 0C3.578 0 0 3.578 0 7.95c0 3.479 2.286 6.46 5.466 7.553.397.1.497-.199.497-.397v-1.392c-2.187.497-2.683-.994-2.683-.994-.398-.894-.895-1.192-.895-1.192-.696-.497.1-.497.1-.497.795.1 1.192.795 1.192.795.696 1.292 1.888.894 2.286.696.1-.497.298-.895.497-1.093-1.79-.2-3.578-.895-3.578-3.976 0-.894.298-1.59.795-2.087-.1-.198-.397-.993.1-2.086 0 0 .695-.2 2.186.795a6.408 6.408 0 0 1 1.987-.299c.696 0 1.392.1 1.988.299 1.49-.994 2.186-.795 2.186-.795.398 1.093.199 1.888.1 2.086.496.597.795 1.292.795 2.087 0 3.081-1.889 3.677-3.677 3.876.298.398.596.895.596 1.59v2.187c0 .198.1.496.596.397C13.714 14.41 16 11.43 16 7.95 15.9 3.578 12.323 0 7.95 0z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="footer-bottom space-between text-xxs invert-order-desktop"
|
||||
>
|
||||
<nav class="footer-nav">
|
||||
<ul class="list-reset">
|
||||
<li>
|
||||
<a target="_blank" href="https://ianramzy.com"
|
||||
>Made with ❤️ by Ian Ramzy</a
|
||||
>
|
||||
</li>
|
||||
<!-- <li><a href="#">Contact</a></li>-->
|
||||
<!-- <li><a href="#">About us</a></li>-->
|
||||
<!-- <li><a href="#">FAQ's</a></li>-->
|
||||
<!-- <li><a href="#">Support</a></li>-->
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="footer-copyright">
|
||||
© 2020 Zipcall, all rights reserved
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="js/landing.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user