From 5fa02883ff947b7a450b3fab501614dbe1bbaa41 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 16 Mar 2023 17:25:27 +0800 Subject: [PATCH] portfolio tracking --- static/app.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/static/app.js b/static/app.js index 7be0d79..66758de 100755 --- a/static/app.js +++ b/static/app.js @@ -2406,3 +2406,26 @@ var specialChars = /[`!@#$%&*()_+\-=\[\]{};':"\\|<>\/?~]/; } document.getElementById("demo9").innerHTML = text; } + + +// portoflio stuff + + var portfolioCheckbox = document.getElementById("flexCheckChecked4"); + if (portfolioCheckbox.checked) { + document.getElementById('stocks-portfolio').style.display = "block"; + } else { + document.getElementById('stocks-portfolio').style.display = "none"; + } + + +function portfolioValidate() { + var portfolioCheckbox = document.getElementById("flexCheckChecked4"); + if (portfolioCheckbox.checked) { + document.getElementById('stocks-portfolio').style.display = "block"; + } else { + document.getElementById('stocks-portfolio').style.display = "none"; + } +} + + +