aboutsummaryrefslogtreecommitdiff
path: root/petrichor.js
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 15:21:52 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-14 15:21:52 +1300
commit00f2fc95a0db4e2f26c5d09ac292d0e682799744 (patch)
tree736b157886a34138a9d7e454c2539eb33429f47b /petrichor.js
parentb4607e0d51a1982272460e0ab9af359d92876f3f (diff)
parentb0911b7b5556bfe621b6d42b51533c2264bae0f8 (diff)
downloadpetrichor-00f2fc95a0db4e2f26c5d09ac292d0e682799744.tar.xz
Merge branch 'power-options' into develop
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;