define(["jquery"],function(e){return{init:function(){varo=e(location).attr("href");e("document").ready(function(){if(o.includes("/mod/page/view.php")){vare=document.querySelector("iframe");console.log(e);varn=newVimeo.Player(e);console.log(n),n.on("play",function(){console.log("played the video!")}),n.getCurrentTime().then(function(e){console.log(e)}),n.pause().then(function(){console.log("the video was paused")}),console.log("after player")}})}}});
\ No newline at end of file
define(["jquery"],function(e){return{init:function(){varn=e(location).attr("href");e("document").ready(function(){vart="You have taken notes at ",o=(t+=" in this video.").fontcolor("green");if(alert(o),n.includes("/mod/page/view.php")){vari=document.querySelector("iframe"),u=newVimeo.Player(i);u.on("play",function(){alert("played the video!")}),u.getVideoId().then(function(e){}),setTimeout(function(){u.getCurrentTime().then(function(e){console.log("time out function"),console.log(e)})},1500),e("#mynotepencil").click(function(){varn;u.getCurrentTime().then(function(e){n=e}),setTimeout(function(){e("#id_mynotecontent-258").val(n)},1e3)}),u.pause().then(function(){alert("the video was paused")})}})}}});