From 66eb14b78c600f7b69b075c5a85ce41f701261c4 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Fri, 24 Mar 2023 22:49:14 -0400 Subject: [PATCH] Spectrum works now. --- htdocs/index.html | 12 ++++-------- htdocs/lib/Spectrum.js | 3 --- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/htdocs/index.html b/htdocs/index.html index 55d2291d..d474edda 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -52,16 +52,12 @@ +
+ +
-
- -
- - - -
@@ -245,7 +241,7 @@
-
+
REC
diff --git a/htdocs/lib/Spectrum.js b/htdocs/lib/Spectrum.js index 471b7f44..f0ddbf85 100644 --- a/htdocs/lib/Spectrum.js +++ b/htdocs/lib/Spectrum.js @@ -68,7 +68,6 @@ Spectrum.prototype.draw = function() { Spectrum.prototype.close = function() { // Hide container $('.openwebrx-spectrum-container').removeClass('expanded'); - $('.openwebrx-rx-details-arrow').removeClass('openwebrx-rx-details-arrow--up').addClass('openwebrx-rx-details-arrow--down'); // Stop redraw timer if (this.timer) { @@ -83,7 +82,6 @@ Spectrum.prototype.close = function() { Spectrum.prototype.open = function() { // Show container $('.openwebrx-spectrum-container').addClass('expanded'); - $('.openwebrx-rx-details-arrow').removeClass('openwebrx-rx-details-arrow--down').addClass('openwebrx-rx-details-arrow--up'); // Start redraw timer if (!this.timer) { @@ -93,7 +91,6 @@ Spectrum.prototype.open = function() { } Spectrum.prototype.toggle = function() { -// if (ev && ev.target && ev.target.tagName == 'A') return; // Toggle based on the current redraw timer state if (this.timer) this.close(); else this.open(); };