From 4901fd516653813916cd5cabf1d9e3a0864e050a Mon Sep 17 00:00:00 2001
From: Naiel <109038805+naielv@users.noreply.github.com>
Date: Thu, 29 May 2025 15:05:46 +0200
Subject: [PATCH] fixing stuff
---
index.html | 7 +++++++
static/doublescroll.js | 2 +-
static/ico/connect_ko.svg | 1 +
static/ico/connect_ok.svg | 1 +
sw.js | 2 +-
5 files changed, 11 insertions(+), 2 deletions(-)
create mode 100644 static/ico/connect_ko.svg
create mode 100644 static/ico/connect_ok.svg
diff --git a/index.html b/index.html
index ef8c4fc..687d9d6 100644
--- a/index.html
+++ b/index.html
@@ -374,6 +374,7 @@
-->
+
@@ -527,6 +528,12 @@
});
peerListEl.innerHTML = list.innerHTML;
peerCountEl.innerText = peerCount;
+ if (peerCount < 2){
+ document.getElementById("connectStatus").src = "static/connect_ko.svg"
+ } else {
+ document.getElementById("connectStatus").src = "static/connect_ok.svg"
+
+ }
}
getPeers();
setInterval(() => {
diff --git a/static/doublescroll.js b/static/doublescroll.js
index 5d40067..ebb4b79 100644
--- a/static/doublescroll.js
+++ b/static/doublescroll.js
@@ -104,7 +104,7 @@
// set the width of the wrappers
$(options.topScrollBarInnerSelector, $topScrollBar).width($contentElement.outerWidth());
- $topScrollBar.width($self.width());
+ $topScrollBar.width("100%");
$topScrollBar.scrollLeft($self.scrollLeft());
}
diff --git a/static/ico/connect_ko.svg b/static/ico/connect_ko.svg
new file mode 100644
index 0000000..9c8031c
--- /dev/null
+++ b/static/ico/connect_ko.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/static/ico/connect_ok.svg b/static/ico/connect_ok.svg
new file mode 100644
index 0000000..1d62ffc
--- /dev/null
+++ b/static/ico/connect_ok.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/sw.js b/sw.js
index 28c2177..f6a4087 100644
--- a/sw.js
+++ b/sw.js
@@ -1,4 +1,4 @@
-var cacheName = 'telesec_2025-05-29_7';
+var cacheName = 'telesec_2025-05-29_9';
self.addEventListener('install', event => {
event.waitUntil(