Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ Xylophone.js
File
Xylophone.js
assets/js/Xylophone.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
var
key_num = document.querySelectorAll(
'.note'
).length
2
3
for
(
var
i = 0; i < key_num; i++) {
4
document.querySelectorAll(
'.note'
)[i].addEventListener(
'click'
,
function
() {
Callers
nothing calls this directly
Calls
2
playSoundsForKey
Function · 0.85
buttonAnimation
Function · 0.70
Tested by
no test coverage detected