From bbd85c7d2dd79b2b70e70e3a824ac831bb25007b Mon Sep 17 00:00:00 2001 From: Humberto Alfonso Díaz Date: Tue, 24 Sep 2019 12:33:20 +0200 Subject: FUNCT Add screen navigation support --- src/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/index.js') 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 -- cgit 1.2.3-korg