65c54cac by logesh

for testing player.min.js

1 parent 002f33f0
......@@ -86,7 +86,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
params['sesskey'] = M.cfg.sesskey;
var url= $(location).attr('href');
//notes player time starts
$('document').ready(function(){
/*$('document').ready(function(){
if(url.includes('/mod/page/view.php')){
var iframe = document.querySelector('iframe');
......@@ -111,7 +111,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
player.pause().then(function() {
})
}
});
});*/
//notes player time ends
var cfg = {
......
define(["jquery"],function(e){return{init:function(){var n=e(location).attr("href");e("document").ready(function(){if(n.includes("/mod/page/view.php")){var e=document.querySelector("iframe");new Vimeo.Player(e)}})}}});
\ No newline at end of file
define(["jquery"],function(e){return{init:function(){var n=e(location).attr("href");e("document").ready(function(){if(n.includes("/mod/page/view.php")){var o=document.querySelector("iframe"),i=new Vimeo.Player(o);console.log(i),e("#mynotepencil").click(function(){var e;i.getCurrentTime().then(function(n){console.log("timer function"),e=n}),console.log(e)})}})}}});
\ No newline at end of file
......
......@@ -86,7 +86,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
params['sesskey'] = M.cfg.sesskey;
var url= $(location).attr('href');
//notes player time starts
$('document').ready(function(){
/*$('document').ready(function(){
if(url.includes('/mod/page/view.php')){
var iframe = document.querySelector('iframe');
......@@ -111,7 +111,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
player.pause().then(function() {
})
}
});
});*/
//notes player time ends
var cfg = {
......
......@@ -12,16 +12,19 @@ define(['jquery'], function($) {
var player = new Vimeo.Player(iframe);
/* $('#mynotepencil').click(function(){
console.log(player);
$('#mynotepencil').click(function(){
var time;
player.getCurrentTime().then(function(seconds) {
console.log("timer function");
time=seconds;
})
setTimeout(function(){
console.log(time);
// setTimeout(function(){
// var str = "<div> You have taken notes at ";
......@@ -30,9 +33,9 @@ define(['jquery'], function($) {
// var result = str.fontcolor("green");
// $("#id_mynotecontent-258").val(result);
}, 1000);
// }, 1000);
});*/
});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!