Insert Javascript inside code video js -- 2

Job ID: 36895167

Budget: €30 – €250 EUR

have to insert a javascript while using video.js in moodle. this javascript pops up a question to the student: "are you listening?" if the student clicks yes within 30 seconds, the video continues. if the student does not respond, the application and the video close, it lets you exit and the student must log in again and restart the video from minute 0.00
Related categories: PHP JavaScript CSS HTML5 jQuery / Prototype