From 9800abe02202e18574e248930fb76b21f999df37 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 14 Mar 2016 14:34:26 +1300 Subject: Initial rough-up of power confirmation box --- petrichor.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'petrichor.js') 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; -- cgit v1.1