From d0498d9a5b5f8a909050ea55561be221d5baaffa Mon Sep 17 00:00:00 2001 From: adsbin Date: Fri, 12 Aug 2022 15:21:19 +0800 Subject: [PATCH] Show/Hide Settings --- bnb5_4.html => bnb5_5.html | 31 +++++++++++++++++++++++-------- btc1_4.html => btc1_5.html | 27 +++++++++++++++++++++------ cake1_4.html => cake1_5.html | 33 ++++++++++++++++++++++++--------- 3 files changed, 68 insertions(+), 23 deletions(-) rename bnb5_4.html => bnb5_5.html (94%) rename btc1_4.html => btc1_5.html (94%) rename cake1_4.html => cake1_5.html (96%) diff --git a/bnb5_4.html b/bnb5_5.html similarity index 94% rename from bnb5_4.html rename to bnb5_5.html index 23d88af..63428de 100644 --- a/bnb5_4.html +++ b/bnb5_5.html @@ -3,7 +3,7 @@ - FFS BNB System 5.4 + FFS BNB System 5.5 @@ -347,6 +350,7 @@ const ShortTime = "H:i:s.v"; const Btn_c = document.getElementById("btn_showhidechart"); + const Btn_s = document.getElementById("btnShowHideSet"); const SdLog = document.getElementById("stdDevLog"); const VLog = document.getElementById("volLog"); @@ -381,7 +385,18 @@ else { CandleChart.style.display = "none"; Btn_c.innerHTML = "S Chart"; - tvWidget.innerHTML=""; + tvWidget.innerHTML = ""; + } + } + + function SHSettings() { + if (Btn_s.innerHTML == "S Settings") { + Provision.style.display = "inline-block"; + Btn_s.innerHTML = "H Settings"; + } + else { + Provision.style.display = "none"; + Btn_s.innerHTML = "S Settings"; } } diff --git a/btc1_4.html b/btc1_5.html similarity index 94% rename from btc1_4.html rename to btc1_5.html index 7c5d82f..b08037e 100644 --- a/btc1_4.html +++ b/btc1_5.html @@ -3,7 +3,7 @@ - FFS BTC System 1.4 + FFS BTC System 1.5 @@ -347,6 +350,7 @@ const ShortTime = "H:i:s.v"; const Btn_c = document.getElementById("btn_showhidechart"); + const Btn_s = document.getElementById("btnShowHideSet"); const SdLog = document.getElementById("stdDevLog"); const VLog = document.getElementById("volLog"); @@ -381,7 +385,18 @@ else { CandleChart.style.display = "none"; Btn_c.innerHTML = "S Chart"; - tvWidget.innerHTML=""; + tvWidget.innerHTML = ""; + } + } + + function SHSettings() { + if (Btn_s.innerHTML == "S Settings") { + Provision.style.display = "inline-block"; + Btn_s.innerHTML = "H Settings"; + } + else { + Provision.style.display = "none"; + Btn_s.innerHTML = "S Settings"; } } @@ -411,7 +426,7 @@ let curQty = Math.trunc(json_message['q'] * 1000) / 1000; cal_stddev_mean(curPrice, curQty); - let curDiff = Math.trunc((curPrice - curMean) * 1000)/1000; + let curDiff = Math.trunc((curPrice - curMean) * 1000) / 1000; Symbol.innerHTML = json_message['s']; Price.innerHTML = curPrice + " : " + curDiff;