getglobalstockssettings

This commit is contained in:
Justin 2023-09-25 21:47:59 +08:00 committed by GitHub
parent 35b2277996
commit 78058df0b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1522,6 +1522,34 @@ function getTradingSettings(page) {
return settings;
}
// gets the global stocks settings
function getGlobalStocksSettings(page) {
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 title = page.querySelectorAll(".title-select")[0].checked;
let symbols_el = page.querySelectorAll(".symbol-list")[0];
let symbols = getListItems(symbols_el);
let portfolio = page.querySelectorAll(".portfolio-select")[0].checked;
let lohivol = page.querySelectorAll(".lohivol-select")[0].checked;
let display_name = page.querySelectorAll(".name-select")[0].checked;
settings = {
percent: percent,
point: point,
logos: no_logos,
title: title,
symbols: symbols,
display_name: display_name,
lohivol: lohivol,
chart: portfolio,
};
console.log(settings);
return settings;
}
// gets the current wether and forecast settings
function getWeatherSettings(page) {
let temp = getSelected(page.querySelectorAll(".temp-select")[0]);