From ab3a89d34de2daa4ec7a99b94621d0557e45e181 Mon Sep 17 00:00:00 2001 From: Naiel <109038805+naielv@users.noreply.github.com> Date: Thu, 29 May 2025 14:37:04 +0200 Subject: [PATCH] updated --- index.html | 4306 ++++++++++++++++++++-------------------- static/doublescroll.js | 83 + sw.js | 3 +- 3 files changed, 2228 insertions(+), 2164 deletions(-) create mode 100644 static/doublescroll.js diff --git a/index.html b/index.html index b1373c1..dbb98bf 100644 --- a/index.html +++ b/index.html @@ -1,378 +1,371 @@ - - - - - TeleSec - - - - - - -
- - SuperMesh
-
PID ?????????? -
- - Todos los datos están encriptados. -
-
-
-
- - TeleSec - ??? - (? - nodos) - -
- Credenciales -
- -
-
- -

- -
-
- -
- + + + +
+ + SuperMesh
+
PID ?????????? +
+
    + Todos los datos están encriptados. +
    +
    +
    +
    + + TeleSec - ??? - (? + nodos) + +
    + Credenciales +
    + +
    +
    + +

    + +
    +
    + +
    + -
    -
    -
    -
    - -
    - - - - - - - - - - - - - - - - - - -
    Una nueva versión de TeleSec está disponible, Pulsa aqui para actualizar.
    - + + + + + + + + + + + + + + + + + + +
    Una nueva versión de TeleSec está disponible, Pulsa aqui para actualizar.
    + - - + + - + - + - - + }, + }; + Object.keys(PAGES).forEach((key) => { + var a = document.createElement("a"); + a.className = "button " + PAGES[key].navcss; + a.href = "#" + key; + a.innerText = PAGES[key].Title; + document.getElementById("appendApps").append(a); + }); + open_page(location.hash.replace("#", "")); + + + + \ No newline at end of file diff --git a/static/doublescroll.js b/static/doublescroll.js new file mode 100644 index 0000000..ff18907 --- /dev/null +++ b/static/doublescroll.js @@ -0,0 +1,83 @@ +/* + * @name DoubleScroll + * @desc displays scroll bar on top and on the bottom of the div + * @requires jQuery, jQueryUI + * + * @author Pawel Suwala - http://suwala.eu/ + * @version 0.3 (12-03-2014) + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +(function($){ + $.widget("suwala.doubleScroll", { + options: { + contentElement: undefined, // Widest element, if not specified first child element will be used + topScrollBarMarkup: '
    ', + topScrollBarInnerSelector: '.suwala-doubleScroll-scroll', + scrollCss: { + 'overflow-x': 'scroll', + 'overflow-y':'hidden' + }, + contentCss: { + 'overflow-x': 'scroll', + 'overflow-y':'hidden' + } + }, + _create : function() { + var self = this; + var contentElement; + + // add div that will act as an upper scroll + var topScrollBar = $($(self.options.topScrollBarMarkup)); + self.element.before(topScrollBar); + + // find the content element (should be the widest one) + if (self.options.contentElement !== undefined && self.element.find(self.options.contentElement).length !== 0) { + contentElement = self.element.find(self.options.contentElement); + } + else { + contentElement = self.element.find('>:first-child'); + } + + // bind upper scroll to bottom scroll + topScrollBar.scroll(function(){ + self.element.scrollLeft(topScrollBar.scrollLeft()); + }); + + // bind bottom scroll to upper scroll + self.element.scroll(function(){ + topScrollBar.scrollLeft(self.element.scrollLeft()); + }); + + // apply css + topScrollBar.css(self.options.scrollCss); + self.element.css(self.options.contentCss); + + // set the width of the wrappers + $(self.options.topScrollBarInnerSelector, topScrollBar).width(contentElement[0].scrollWidth); + topScrollBar.width(self.element[0].clientWidth); + }, + refresh: function(){ + // this should be called if the content of the inner element changed. + // i.e. After AJAX data load + var self = this; + var contentElement; + var topScrollBar = self.element.parent().find('.suwala-doubleScroll-scroll-wrapper'); + + // find the content element (should be the widest one) + if (self.options.contentElement !== undefined && self.element.find(self.options.contentElement).length !== 0) { + contentElement = self.element.find(self.options.contentElement); + } + else { + contentElement = self.element.find('>:first-child'); + } + + // set the width of the wrappers + $(self.options.topScrollBarInnerSelector, topScrollBar).width(contentElement[0].scrollWidth); + topScrollBar.width(self.element[0].clientWidth); + } + }); +})(jQuery); \ No newline at end of file diff --git a/sw.js b/sw.js index 3c216e4..4fa3599 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -var cacheName = 'telesec_2025-05-28_2'; +var cacheName = 'telesec_2025-05-29_1'; self.addEventListener('install', event => { event.waitUntil( @@ -9,6 +9,7 @@ self.addEventListener('install', event => { "index.html", "manifest.json", "static/axe.js", + "static/doublescroll.js", "static/gun.js", "static/jquery.js", "static/load.js",