From c00dcda911e5b3d22da86e51f74abed201890329 Mon Sep 17 00:00:00 2001 From: Joey Scott Date: Thu, 25 May 2017 17:36:24 +0100 Subject: [PATCH] Add functionality for showing record labels on click of nav buttons Relates #53 #70 --- public/record.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 public/record.js diff --git a/public/record.js b/public/record.js new file mode 100644 index 0000000..259ea9b --- /dev/null +++ b/public/record.js @@ -0,0 +1,21 @@ +document.addEventListener("DOMContentLoaded", function(event) { + + $('#camera').on('click', () => { + setTimeout(function () { + $('.record-photo').show(); + }, 1050); + $('.menu-open-button').on('click', () => { + $('.record-photo').hide(); + }); + }); + + $('#microphone').on('click', () => { + setTimeout(function () { + $('.record-voice').show(); + }, 1050); + $('.menu-open-button').on('click', () => { + $('.record-voice').hide(); + }); + }); + +});