getglobalstockssettings
This commit is contained in:
parent
35b2277996
commit
78058df0b4
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user