Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0a075b5e
Commit
0a075b5e
authored
Dec 11, 2011
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanups. Basic infrastructure for restoring video playback state (but unfinished)
parent
7b578b83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
problem.html
+3
-5
seq_module.js
+9
-0
video_init.js
+9
-1
No files found.
problem.html
View file @
0a075b5e
...
...
@@ -9,7 +9,7 @@
submit_data
[
value
.
id
]
=
value
.
value
;
});
if
(
$
(
'#check_${ id }'
).
attr
(
'value'
)
==
'Check
'
)
{
if
(
$
(
'#check_${ id }'
).
attr
(
'value'
)
.
substring
(
0
,
5
)
!=
'Reset
'
)
{
$
.
getJSON
(
'/modx/problem/${ id }/problem_check'
,
submit_data
,
function
(
json
)
{
...
...
@@ -30,8 +30,6 @@
});
});
</script>
% if not done:
<input
id=
"check_${ id }"
type=
"button"
value=
"Check"
>
% else:
<input
id=
"check_${ id }"
type=
"button"
value=
"Reset"
>
% if check_button:
<input
id=
"check_${ id }"
type=
"button"
value=
"${ check_button }"
>
% endif
seq_module.js
View file @
0a075b5e
// CRITICAL TODO: Namespace
var
files
=
[
""
,
%
for
t
in
items
:
$
{
t
[
1
][
'content'
]}
,
...
...
@@ -5,10 +7,17 @@ var files=["",
""
];
var
functions
=
[
""
,
%
for
t
in
items
:
function
(){
$
{
t
[
1
][
'js'
]}
},
%
endfor
""
];
var
loc
;
function
goto
(
i
)
{
$
(
'#content'
).
html
(
files
[
i
]);
functions
[
i
]()
loc
=
i
;
}
...
...
video_init.js
View file @
0a075b5e
...
...
@@ -5,4 +5,12 @@ swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1&playerapiid=y
var
captions
=
0
;
$
(
"#slider"
).
slider
({
slide
:
function
(
event
,
ui
){
seek_slide
(
'slide'
,
event
.
originalEvent
,
ui
.
value
);},
stop
:
function
(
event
,
ui
){
seek_slide
(
'stop'
,
event
.
originalEvent
,
ui
.
value
);}});
loadNewVideo
(
'${id}'
);
function
good
()
{
window
[
'console'
].
log
(
ytplayer
.
getCurrentTime
());
}
ajax_video
=
good
;
loadNewVideo
(
'${id}'
,
$
{
video_time
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment