Blazor Sound Boared
This is a cute little application that will allow the user to click a button and play a sound in a Blazor application. How it works We started with the 6 sounds, see image. We added those mp3 files to our web application so we can access them from the application. We generated a list of the names of the sounds we will be supporting: List<string> sounds = new List<string>() { "applause", "boo", "gasp", "tada", "victory", "wrong" }; HTML Tags For this application we will need an audio tag for each sound and a button for each sound: <audio id="boo" src="/sounds/boo.mp3"></audio> For the button: <button type="button" Boo </button> Normally we would have 6 each of these tags, but with Blazor we can do a couple of for loops, We'll need a method to build the...