aboutsummaryrefslogtreecommitdiff
path: root/petrichor.js
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 14:34:26 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 15:04:14 +1300
commit9800abe02202e18574e248930fb76b21f999df37 (patch)
tree62363b1f2c3589c451d6ab2d944fec23266c9945 /petrichor.js
parentb4607e0d51a1982272460e0ab9af359d92876f3f (diff)
downloadpetrichor-9800abe02202e18574e248930fb76b21f999df37.tar.xz
Initial rough-up of power confirmation box
Diffstat (limited to 'petrichor.js')
-rw-r--r--petrichor.js10
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;