Commit 99152b60 authored by marioromera's avatar marioromera
Browse files

listen to doc in index.js

parent daa17b47
......@@ -21,12 +21,7 @@
});
},
});
document.addEventListener('click', playSound, false);
function playSound(e) {
console.log('PLay sound', e);
window.yourTurnAudio.play({ loops: 3, volume: 100 });
}
</script>
</head>
......
......@@ -13,7 +13,12 @@ drawId(state.id);
import _ from 'lodash';
// Add styles
document.addEventListener('click', playSound, false);
function playSound(e) {
console.log('PLay sound', e);
window.yourTurnAudio.play({ loops: 3, volume: 100 });
}
import Drawing from './components/drawing';
const draw = new Drawing('#drawing-svg');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment