diff options
author | Minteck <contact@minteck.org> | 2022-11-11 23:47:49 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-11-11 23:47:49 +0100 |
commit | 209356b8ade1920b50d1d3a1a5e121c6623d167b (patch) | |
tree | 5301396987d1510f715a0b1c24754873af19e1dc /app/bits/static/switching.js | |
parent | 2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 (diff) | |
download | pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.gz pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.bz2 pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.zip |
Update
Diffstat (limited to 'app/bits/static/switching.js')
-rwxr-xr-x | app/bits/static/switching.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app/bits/static/switching.js b/app/bits/static/switching.js new file mode 100755 index 0000000..293de72 --- /dev/null +++ b/app/bits/static/switching.js @@ -0,0 +1,35 @@ +function switchToStats() { + //document.getElementById("switcher-1").style.display = "none"; + //document.getElementById("switcher-2").style.display = ""; + //document.getElementById("switcher-0").style.display = "none"; + document.getElementById("title-2").style.display = "none"; + document.getElementById("title-1").style.display = ""; + document.getElementById("title-0").style.display = "none"; + document.getElementById("list").style.display = "none"; + document.getElementById("expenses").style.display = "none"; + document.getElementById("stats").style.display = ""; +} + +function switchToExpenses() { + //document.getElementById("switcher-1").style.display = ""; + //document.getElementById("switcher-2").style.display = "none"; + //document.getElementById("switcher-0").style.display = "none"; + document.getElementById("title-2").style.display = ""; + document.getElementById("title-1").style.display = "none"; + document.getElementById("title-0").style.display = "none"; + document.getElementById("list").style.display = "none"; + document.getElementById("stats").style.display = "none"; + document.getElementById("expenses").style.display = ""; +} + +function switchToList() { + //document.getElementById("switcher-2").style.display = "none"; + //document.getElementById("switcher-1").style.display = "none"; + //document.getElementById("switcher-0").style.display = ""; + document.getElementById("title-2").style.display = "none"; + document.getElementById("title-1").style.display = "none"; + document.getElementById("title-0").style.display = ""; + document.getElementById("list").style.display = ""; + document.getElementById("stats").style.display = "none"; + document.getElementById("expenses").style.display = "none"; +}
\ No newline at end of file |