git clonethe repository to your desktop with the followingcommandif usingSSH:
git clone git@github.com:interglobalmedia/web-audio-api-ajax.gitIf using HTTPS:
git clone https://github.com/interglobalmedia/web-audio-api-ajax.git-
When the user clicks on the
Startbutton, asongstarts playing, thebackground colorof the page changes color,confettistarts falling, and thebackground colorandcolorof theStartbutton changes. -
When the user clicks on the
Stopbutton, thesongstops playing (paused), thebackground colorof the page changes color,confettistarts falling, and thebackground colorandcolorof theStopbutton changes. -
When the user clicks on the
Refreshbutton, everything goes back to its default state. Thebackground colorof the page goes back towhite, theconfettidisappears, and thebackground colorof thebuttonsreverts to their default states ofwhite, and thecolorof the buttons reverts to their default states of ofblack.
-
npm -
npmpackagenode-sassto enable usingSassfor the project styling -
npmpackagegh-pagesto enable theautomatic deploymentof the application togh-pages. -
cdnjsofconfetti-jsnpm package which automatically generates an animatedconfettieffect on the page. -
The
Web Audio API, which is responsible for the generation of the music. -
AJAX(Asynchronous JavaScript and XML), to make a request to the (local)Audio1file in the form of anarraybuffer, which is decoded onpage load.
npm run scss: watches for changes in styles/scss/main.scss and
outputs them into styles/css/main.css.
npm run clean: removes the old dist folder and replaces
it with a new one containing latest changes.
npm run build: creates a new dist build.
npm run deploy: deploys the contents of the dist folder to
gh-pages.