From 43f0d935a43f9a4bfd92e132b9e328d61ed101a7 Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 3 May 2024 01:33:38 +0200 Subject: [PATCH] playground - without needle --- playground/html/material-gauge-gh-pages/index.html | 2 +- playground/html/root/gauge.js | 4 ++-- playground/html/root/index.html | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/playground/html/material-gauge-gh-pages/index.html b/playground/html/material-gauge-gh-pages/index.html index 74ad04b..2a67ccb 100644 --- a/playground/html/material-gauge-gh-pages/index.html +++ b/playground/html/material-gauge-gh-pages/index.html @@ -39,7 +39,7 @@
-
+
diff --git a/playground/html/root/gauge.js b/playground/html/root/gauge.js index d281f14..5eb8fa8 100644 --- a/playground/html/root/gauge.js +++ b/playground/html/root/gauge.js @@ -13,7 +13,7 @@ var setElement = function(el) { // Keep a reference to the various elements and sub-elements element = el; data = element.querySelector('.gauge__data'); - needle = element.querySelector('.gauge__needle'); + //needle = element.querySelector('.gauge__needle'); valueLabel = element.querySelector('.gauge__label--spacer'); }; @@ -23,7 +23,7 @@ var setValue = function(x, max, unit) { value = percentage / 100; var turns = -0.5 + (value * 0.5); data.style[prop] = 'rotate(' + turns + 'turn)'; - needle.style[prop] = 'rotate(' + turns + 'turn)'; + //needle.style[prop] = 'rotate(' + turns + 'turn)'; valueLabel.textContent = x + unit; }; diff --git a/playground/html/root/index.html b/playground/html/root/index.html index 44cfbf8..d27a1f2 100644 --- a/playground/html/root/index.html +++ b/playground/html/root/index.html @@ -114,7 +114,7 @@ a:active {
-
+
@@ -129,7 +129,7 @@ a:active {
-
+
@@ -144,7 +144,7 @@ a:active {
-
+