diff --git a/static/app.js b/static/app.js index db9b3d4..f0d9180 100755 --- a/static/app.js +++ b/static/app.js @@ -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]);