MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / checkPlaying

Function checkPlaying

assets/js/yoga.js:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49 // function to play and pause sound
50 const checkPlaying = song => {
51 if (song.paused) {
52 song.play();
53 video.play();
54 play.src = "../assets/svg/pause.svg";
55 } else {
56
57 song.pause();
58 video.pause();
59 play.src = "../assets/svg/play.svg";
60 }
61};
62
63 // animate circle function
64 song.ontimeupdate = () => {

Callers 1

yogaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected