diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-03-22 20:54:51 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-03-22 20:54:51 -0400 |
commit | c36d05d5aed2f8f7c6342b174692146e2d11c386 (patch) | |
tree | 8e54047d7b6db7e3d21ccfad6b8c4965d42c09fa /frontend/index.js | |
parent | c29a911cd1a3f23f66478f205cace14487aadc56 (diff) |
Refactored frontend, beginnings of general cpp layer, and beginning roadmap
Diffstat (limited to 'frontend/index.js')
-rw-r--r-- | frontend/index.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/frontend/index.js b/frontend/index.js index 85b3fe6..e05b25c 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -2,7 +2,8 @@ (function() { function main() { - + + // Retrieve the navbar $.get('/navbar.html', function(pData) { $('nav').html(pData); @@ -10,6 +11,17 @@ $('nav').find('a').removeClass('nav-selected'); $('nav').find('a[href="' + window.location.pathname + '"').addClass('nav-selected'); }); + + // Set up show/hide functionality on the play/stop buttons + $('.play_button').on('click', function() { + $(this).hide(); + $(this).parent().find('.stop_button').show(); + }); + + $('.stop_button').on('click', function() { + $(this).hide(); + $(this).parent().find('.play_button').show(); + }); } $(document).ready(main); |