Open stuartpearman opened 7 years ago
Oh, I read "or clicked on" as "and clicked on", hence each drum having 2 event listeners.
Actually, now that I'm reading it again, I'm not sure whether we're supposed to have both, or one of the two.
Nice work! I like how you structured your javascript. We're meant to do both event listeners, but Erik read it as one. Open to suggestions on how to word it more clearly. 😄
:shipit:
PS Check your indentation settings! Looks like you're using giant tab indentation, not 2-space. There are some Atom tips in the HTML Linting lesson.
Ah, I have been using sublime. I kept checking my atom settings to try and figure out why it was still using 4-space indentation 😖
Thanks Katie!
@KatieMFritz Can you take a look at this? It's hosted here and meets the following criteria:
button
elements are included in your pagemouseenter
event) or clicked on (click
event), a unique sound effect will play from anaudio
element (try the.play()
method) -- you may use these drum kit sounds, create ones from this sound effects generator, or use any other sounds that won't hurt/irritate the people who listen to themaudio
elements are invisible (nocontrols
attribute), so that they can only be played with the buttons.js