002f33f0 by logesh

dev:changes in player script

1 parent 558fb160
......@@ -83,9 +83,12 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
params[i] = args.params[i];
}
}
params['sesskey'] = M.cfg.sesskey;
var url= $(location).attr('href');
//notes player time starts
$('document').ready(function(){
if(url.includes('/mod/page/view.php')){
var iframe = document.querySelector('iframe');
// console.log(iframe);
var player = new Vimeo.Player(iframe);
......@@ -96,8 +99,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
time=seconds;
})
//
params['sesskey'] = M.cfg.sesskey;
console.log("i am here");
var str = '</br></br><font color="green">newly You have taken notes at ';
console.log(time);
str +=time;
......@@ -107,7 +110,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
player.pause().then(function() {
})
}
});
//notes player time ends
var cfg = {
......
......@@ -83,9 +83,12 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
params[i] = args.params[i];
}
}
params['sesskey'] = M.cfg.sesskey;
var url= $(location).attr('href');
//notes player time starts
$('document').ready(function(){
if(url.includes('/mod/page/view.php')){
var iframe = document.querySelector('iframe');
// console.log(iframe);
var player = new Vimeo.Player(iframe);
......@@ -96,8 +99,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
time=seconds;
})
//
params['sesskey'] = M.cfg.sesskey;
console.log("i am here");
var str = '</br></br><font color="green">newly You have taken notes at ';
console.log(time);
str +=time;
......@@ -107,7 +110,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
player.pause().then(function() {
})
}
});
//notes player time ends
var cfg = {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!