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 ...@@ -86,7 +86,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
86 params['sesskey'] = M.cfg.sesskey; 86 params['sesskey'] = M.cfg.sesskey;
87 var url= $(location).attr('href'); 87 var url= $(location).attr('href');
88 //notes player time starts 88 //notes player time starts
89 $('document').ready(function(){ 89 /*$('document').ready(function(){
90 if(url.includes('/mod/page/view.php')){ 90 if(url.includes('/mod/page/view.php')){
91 91
92 var iframe = document.querySelector('iframe'); 92 var iframe = document.querySelector('iframe');
...@@ -111,7 +111,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -111,7 +111,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
111 player.pause().then(function() { 111 player.pause().then(function() {
112 }) 112 })
113 } 113 }
114 }); 114 });*/
115 //notes player time ends 115 //notes player time ends
116 116
117 var cfg = { 117 var cfg = {
......
1 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 ...\ No newline at end of file
1 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 ...\ No newline at end of file
......
...@@ -86,7 +86,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -86,7 +86,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
86 params['sesskey'] = M.cfg.sesskey; 86 params['sesskey'] = M.cfg.sesskey;
87 var url= $(location).attr('href'); 87 var url= $(location).attr('href');
88 //notes player time starts 88 //notes player time starts
89 $('document').ready(function(){ 89 /*$('document').ready(function(){
90 if(url.includes('/mod/page/view.php')){ 90 if(url.includes('/mod/page/view.php')){
91 91
92 var iframe = document.querySelector('iframe'); 92 var iframe = document.querySelector('iframe');
...@@ -111,7 +111,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -111,7 +111,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
111 player.pause().then(function() { 111 player.pause().then(function() {
112 }) 112 })
113 } 113 }
114 }); 114 });*/
115 //notes player time ends 115 //notes player time ends
116 116
117 var cfg = { 117 var cfg = {
......
...@@ -12,16 +12,19 @@ define(['jquery'], function($) { ...@@ -12,16 +12,19 @@ define(['jquery'], function($) {
12 12
13 var player = new Vimeo.Player(iframe); 13 var player = new Vimeo.Player(iframe);
14 14
15 15 console.log(player);
16 /* $('#mynotepencil').click(function(){ 16 $('#mynotepencil').click(function(){
17 17
18 var time; 18 var time;
19 19
20 player.getCurrentTime().then(function(seconds) { 20 player.getCurrentTime().then(function(seconds) {
21 21 console.log("timer function");
22 time=seconds; 22 time=seconds;
23 }) 23 })
24 setTimeout(function(){ 24
25 console.log(time);
26
27 // setTimeout(function(){
25 28
26 29
27 // var str = "<div> You have taken notes at "; 30 // var str = "<div> You have taken notes at ";
...@@ -30,9 +33,9 @@ define(['jquery'], function($) { ...@@ -30,9 +33,9 @@ define(['jquery'], function($) {
30 // var result = str.fontcolor("green"); 33 // var result = str.fontcolor("green");
31 // $("#id_mynotecontent-258").val(result); 34 // $("#id_mynotecontent-258").val(result);
32 35
33 }, 1000); 36 // }, 1000);
34 37
35 });*/ 38 });
36 39
37 40
38 41
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!