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