Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Logeshwaran
/
mynotes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
8
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
002f33f0
authored
2018-09-20 20:12:56 +0530
by
logesh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dev:changes in player script
1 parent
558fb160
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
amd/build/mynotesblock.js
amd/src/mynotesblock.js
amd/build/mynotesblock.js
View file @
002f33f
...
...
@@ -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
=
{
...
...
amd/src/mynotesblock.js
View file @
002f33f
...
...
@@ -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
=
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment