aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-09-24 12:33:20 +0200
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:20:13 +0100
commitbbd85c7d2dd79b2b70e70e3a824ac831bb25007b (patch)
treee4dcb4db2e90f305d9f55049753601a555f41cac /src/index.js
parent2de1c21023be0d1518d3d2ac663d00a7c20c8944 (diff)
FUNCT Add screen navigation support
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 962b5a6..ded8fe7 100644
--- a/src/index.js
+++ b/src/index.js
@@ -18,4 +18,14 @@
import './js/AFB.js';
/* CSS */
-import './styles/app.scss'; \ No newline at end of file
+import './styles/app.scss';
+
+window.show = function(page){
+ document.getElementById('main').classList.add('hide');
+ document.getElementById(page).classList.remove('hide');
+}
+
+window.hide = function(page) {
+ document.getElementById('main').classList.remove('hide');
+ document.getElementById(page).classList.add('hide');
+} \ No newline at end of file