Skip to content

Commit

Permalink
Add functionality for showing record labels on click of nav buttons
Browse files Browse the repository at this point in the history
Relates #53 #70
  • Loading branch information
joeylouise committed May 25, 2017
1 parent c0d9418 commit c00dcda
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions public/record.js
Original file line number Diff line number Diff line change
@@ -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();
});
});

});

0 comments on commit c00dcda

Please sign in to comment.