From 88fb037266e6069a6e17724a0778fcdf7257fd9e Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 8 Aug 2023 17:49:31 +0800 Subject: [PATCH] getmarketsettings --- static/app.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/static/app.js b/static/app.js index dca2f52..ac3aaa7 100755 --- a/static/app.js +++ b/static/app.js @@ -1763,6 +1763,28 @@ function getEconomicSettings(page) { } +// market settings +function getMarketSettings(page) { + + let title = page.querySelectorAll(".title-select")[0].checked; + let categories = getListItems(page.querySelectorAll(".symbol-list")[0]); + let percent = page.querySelectorAll(".percent-select")[0].checked; + let point = page.querySelectorAll(".point-select")[0].checked; + let no_logos = page.querySelectorAll(".logo-select")[0].checked; + let lohivol = page.querySelectorAll(".lohivol-select")[0].checked; + + settings = { + title: title, + categories: categories, + percent: percent, + point: point, + logos: no_logos, + lohivol: lohivol, + }; + console.log(settings); + return settings; +} + // jokes settings function getJokesSettings(page) {