Web Audio API Meets a Sprinkle of Confetti


A Web Audio API app which uses AJAX to retrieve a locally hosted audio file. When the user clicks on the start button, the background and text color of the button change, as does the background color of the page. Music starts playing, and confetti populates the page. When the user clicks on the stop button, the music stops, the background and text color of the button change, as well as the background color of the page. When the user clicks on the refresh button, the page and buttons are set to their default state.