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
65c54cac
authored
2018-09-20 20:29:03 +0530
by
logesh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
for testing player.min.js
1 parent
002f33f0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
amd/build/mynotesblock.js
amd/build/script.min.js
amd/src/mynotesblock.js
amd/src/script.js
amd/build/mynotesblock.js
View file @
65c54ca
...
...
@@ -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
=
{
...
...
amd/build/script.min.js
View file @
65c54ca
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
...
...
amd/src/mynotesblock.js
View file @
65c54ca
...
...
@@ -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
=
{
...
...
amd/src/script.js
View file @
65c54ca
...
...
@@ -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);
});
*/
});
...
...
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