diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 12 |
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 |