diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-03-14 14:34:26 +1300 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-03-14 15:04:14 +1300 |
commit | 9800abe02202e18574e248930fb76b21f999df37 (patch) | |
tree | 62363b1f2c3589c451d6ab2d944fec23266c9945 /petrichor.js | |
parent | b4607e0d51a1982272460e0ab9af359d92876f3f (diff) | |
download | petrichor-9800abe02202e18574e248930fb76b21f999df37.tar.xz |
Initial rough-up of power confirmation box
Diffstat (limited to 'petrichor.js')
-rw-r--r-- | petrichor.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/petrichor.js b/petrichor.js index b5e06ed..fa4a100 100644 --- a/petrichor.js +++ b/petrichor.js @@ -2,6 +2,16 @@ password_prompt = false; selected_user = null; time_remaining = 0 +function show_element(id) +{ + document.getElementById(id).classList.add("shown"); +} + +function hide_element(id) +{ + document.getElementById(id).classList.remove("shown"); +} + function show_prompt(text, type) { password_prompt = true; |