summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-13 12:36:59 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-13 12:36:59 +0200
commit7e045252547f17c6f41ed4354a6ab12ff4b2164e (patch)
treee45c2f9373637118e0507537dc63fc376fa72e79
parentDNM; update (diff)
downloadbeziapp-7e045252547f17c6f41ed4354a6ab12ff4b2164e.tar
beziapp-7e045252547f17c6f41ed4354a6ab12ff4b2164e.tar.gz
beziapp-7e045252547f17c6f41ed4354a6ab12ff4b2164e.tar.bz2
beziapp-7e045252547f17c6f41ed4354a6ab12ff4b2164e.tar.lz
beziapp-7e045252547f17c6f41ed4354a6ab12ff4b2164e.tar.xz
beziapp-7e045252547f17c6f41ed4354a6ab12ff4b2164e.tar.zst
beziapp-7e045252547f17c6f41ed4354a6ab12ff4b2164e.zip
-rw-r--r--js/jitsi.js20
-rw-r--r--pages-src/jitsi.bvr5
-rw-r--r--pages/jitsi.html5
-rw-r--r--sw.js3
4 files changed, 28 insertions, 5 deletions
diff --git a/js/jitsi.js b/js/jitsi.js
new file mode 100644
index 0000000..8dd55ab
--- /dev/null
+++ b/js/jitsi.js
@@ -0,0 +1,20 @@
+async function checkLogin() {
+ localforage.getItem("logged_in").then(function (value) {
+ // This code runs once the value has been loaded
+ // from the offline store.
+ if (value !== true) {
+ window.location.replace("/index.html");
+ }
+ }).catch(function (err) {
+ // This code runs if there were any errors
+ console.log(err);
+ });
+}
+
+document.addEventListener("DOMContentLoaded", () => {
+ checkLogin();
+
+ // Setup side menu
+ const menus = document.querySelectorAll(".side-menu");
+ M.Sidenav.init(menus, { edge: "right", draggable: true });
+});
diff --git a/pages-src/jitsi.bvr b/pages-src/jitsi.bvr
index e2f581c..5a43605 100644
--- a/pages-src/jitsi.bvr
+++ b/pages-src/jitsi.bvr
@@ -18,13 +18,14 @@
<link rel="manifest" href="/manifest.json">
<script src="/js/app.js"></script>
<script src="/js/lang/bundle.js"></script>
+ <script src="/js/jitsi.js"></script>
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
<!-- iOS support -->
<link rel="apple-touch-icon" href="/img/icons/icon_96.png">
<link rel="apple-touch-icon" href="/img/icons/icon_512.png">
<meta name="apple-mobile-web-app-status-bar" content="#004d32">
</head>
- <body style="display: flex">
+ <body>
<nav class="z-depth-0" id="navigation-main">
<div class="nav-wrapper container">
<b>Beži</b><span>App</span> &raquo; <x-su>videoconferences</x-su>
@@ -37,7 +38,7 @@
</div>
</nav>
<@?i navigation@>
- <div class="container" style="flex: 2; overflow: auto; width: 100%">
+ <div class="container" style="height: calc(100vh - 70px); width: 100%">
<iframe src="https://video.gimb.tk" frameBorder="0" style="width: 100%; height: 100%">
Ur browser does not support iframes, you have no Internet connection or the GimB videoconference server is down or does
not allow iframes. Probably we fucked something up, so drop us a message.
diff --git a/pages/jitsi.html b/pages/jitsi.html
index 77fef49..ee2278d 100644
--- a/pages/jitsi.html
+++ b/pages/jitsi.html
@@ -21,13 +21,14 @@
<link rel="manifest" href="/manifest.json">
<script src="/js/app.js"></script>
<script src="/js/lang/bundle.js"></script>
+ <script src="/js/jitsi.js"></script>
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
<!-- iOS support -->
<link rel="apple-touch-icon" href="/img/icons/icon_96.png">
<link rel="apple-touch-icon" href="/img/icons/icon_512.png">
<meta name="apple-mobile-web-app-status-bar" content="#004d32">
</head>
- <body style="display: flex">
+ <body>
<nav class="z-depth-0" id="navigation-main">
<div class="nav-wrapper container">
<b>Beži</b><span>App</span> &raquo; <x-su>videoconferences</x-su>
@@ -59,7 +60,7 @@
</ul>
- <div class="container" style="flex: 2; overflow: auto; width: 100%">
+ <div class="container" style="height: calc(100vh - 70px); width: 100%">
<iframe src="https://video.gimb.tk" frameBorder="0" style="width: 100%; height: 100%">
Ur browser does not support iframes, you have no Internet connection or the GimB videoconference server is down or does
not allow iframes. Probably we fucked something up, so drop us a message.
diff --git a/sw.js b/sw.js
index 3a22684..f2d6ffb 100644
--- a/sw.js
+++ b/sw.js
@@ -1,5 +1,5 @@
// Change version to cause cache refresh
-const static_cache_name = "site-static-v1.0.13.0";
+const static_cache_name = "site-static-v1.0.13.1";
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!
@@ -79,6 +79,7 @@ const assets = [
"/logout.html",
"/favicon.png",
"/pages/jitsi.html",
+ "/js/jitsi.js",
"/pages/chats.html",
"/js/chats.js",
"/css/bubbles.css"