dev:changes in player script
Showing
2 changed files
with
14 additions
and
6 deletions
... | @@ -83,8 +83,11 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f | ... | @@ -83,8 +83,11 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f |
83 | params[i] = args.params[i]; | 83 | params[i] = args.params[i]; |
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | params['sesskey'] = M.cfg.sesskey; | |
87 | var url= $(location).attr('href'); | ||
87 | //notes player time starts | 88 | //notes player time starts |
89 | $('document').ready(function(){ | ||
90 | if(url.includes('/mod/page/view.php')){ | ||
88 | 91 | ||
89 | var iframe = document.querySelector('iframe'); | 92 | var iframe = document.querySelector('iframe'); |
90 | // console.log(iframe); | 93 | // console.log(iframe); |
... | @@ -96,8 +99,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f | ... | @@ -96,8 +99,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f |
96 | time=seconds; | 99 | time=seconds; |
97 | }) | 100 | }) |
98 | // | 101 | // |
102 | console.log("i am here"); | ||
99 | 103 | ||
100 | params['sesskey'] = M.cfg.sesskey; | ||
101 | var str = '</br></br><font color="green">newly You have taken notes at '; | 104 | var str = '</br></br><font color="green">newly You have taken notes at '; |
102 | console.log(time); | 105 | console.log(time); |
103 | str +=time; | 106 | str +=time; |
... | @@ -107,7 +110,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f | ... | @@ -107,7 +110,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f |
107 | 110 | ||
108 | player.pause().then(function() { | 111 | player.pause().then(function() { |
109 | }) | 112 | }) |
110 | 113 | } | |
114 | }); | ||
111 | //notes player time ends | 115 | //notes player time ends |
112 | 116 | ||
113 | var cfg = { | 117 | var cfg = { | ... | ... |
... | @@ -83,8 +83,11 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f | ... | @@ -83,8 +83,11 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f |
83 | params[i] = args.params[i]; | 83 | params[i] = args.params[i]; |
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | params['sesskey'] = M.cfg.sesskey; | |
87 | var url= $(location).attr('href'); | ||
87 | //notes player time starts | 88 | //notes player time starts |
89 | $('document').ready(function(){ | ||
90 | if(url.includes('/mod/page/view.php')){ | ||
88 | 91 | ||
89 | var iframe = document.querySelector('iframe'); | 92 | var iframe = document.querySelector('iframe'); |
90 | // console.log(iframe); | 93 | // console.log(iframe); |
... | @@ -96,8 +99,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f | ... | @@ -96,8 +99,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f |
96 | time=seconds; | 99 | time=seconds; |
97 | }) | 100 | }) |
98 | // | 101 | // |
102 | console.log("i am here"); | ||
99 | 103 | ||
100 | params['sesskey'] = M.cfg.sesskey; | ||
101 | var str = '</br></br><font color="green">newly You have taken notes at '; | 104 | var str = '</br></br><font color="green">newly You have taken notes at '; |
102 | console.log(time); | 105 | console.log(time); |
103 | str +=time; | 106 | str +=time; |
... | @@ -107,7 +110,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f | ... | @@ -107,7 +110,8 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f |
107 | 110 | ||
108 | player.pause().then(function() { | 111 | player.pause().then(function() { |
109 | }) | 112 | }) |
110 | 113 | } | |
114 | }); | ||
111 | //notes player time ends | 115 | //notes player time ends |
112 | 116 | ||
113 | var cfg = { | 117 | var cfg = { | ... | ... |
-
Please register or sign in to post a comment