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
91b5521d
Commit
91b5521d
authored
Mar 27, 2015
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove timer_expiration_duration (leftover from Pearson proctored exams).
parent
609b1144
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
+0
-59
lms/templates/courseware/courseware.html
+0
-59
No files found.
lms/templates/courseware/courseware.html
View file @
91b5521d
...
@@ -94,54 +94,6 @@ ${page_title_breadcrumbs(course_name())}
...
@@ -94,54 +94,6 @@ ${page_title_breadcrumbs(course_name())}
});
});
</script>
</script>
% if timer_expiration_duration:
<script
type=
"text/javascript"
>
var
timer
=
{
timer_inst
:
null
,
end_time
:
null
,
get_remaining_secs
:
function
(
endTime
)
{
var
currentTime
=
new
Date
();
var
remaining_secs
=
Math
.
floor
((
endTime
-
currentTime
)
/
1000
);
return
remaining_secs
;
},
get_time_string
:
function
()
{
function
pretty_time_string
(
num
)
{
return
(
num
<
10
?
"0"
:
""
)
+
num
;
}
// count down in terms of hours, minutes, and seconds:
var
hours
=
pretty_time_string
(
Math
.
floor
(
remaining_secs
/
3600
));
remaining_secs
=
remaining_secs
%
3600
;
var
minutes
=
pretty_time_string
(
Math
.
floor
(
remaining_secs
/
60
));
remaining_secs
=
remaining_secs
%
60
;
var
seconds
=
pretty_time_string
(
Math
.
floor
(
remaining_secs
));
var
remainingTimeString
=
hours
+
":"
+
minutes
+
":"
+
seconds
;
return
remainingTimeString
;
},
update_time
:
function
(
self
)
{
remaining_secs
=
self
.
get_remaining_secs
(
self
.
end_time
);
if
(
remaining_secs
<=
0
)
{
self
.
end
(
self
);
}
$
(
'#exam_timer'
).
text
(
self
.
get_time_string
(
remaining_secs
));
},
start
:
function
()
{
var
that
=
this
;
// set the end time when the template is rendered.
// This value should be UTC time as number of milliseconds since epoch.
this
.
end_time
=
new
Date
((
new
Date
()).
getTime
()
+
$
{
timer_expiration_duration
});
this
.
timer_inst
=
setInterval
(
function
(){
that
.
update_time
(
that
);
},
1000
);
},
end
:
function
(
self
)
{
clearInterval
(
self
.
timer_inst
);
// redirect to specified URL:
window
.
location
=
"${time_expired_redirect_url}"
;
}
}
// start timer right away:
timer
.
start
();
</script>
% endif
% if show_chat:
% if show_chat:
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/candy_libs/libs.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/candy_libs/libs.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/candy.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/candy.min.js')}"
></script>
...
@@ -180,17 +132,6 @@ ${fragment.foot_html()}
...
@@ -180,17 +132,6 @@ ${fragment.foot_html()}
</
%
block>
</
%
block>
% if timer_expiration_duration:
<div
class=
"timer-main"
>
<div
id=
"timer_wrapper"
>
% if timer_navigation_return_url:
<a
href=
"${timer_navigation_return_url}"
class=
"timer_return_url"
>
${_("Return to Exam")}
</a>
% endif
<div
class=
"timer_label"
>
Time Remaining:
</div>
<div
id=
"exam_timer"
class=
"timer_value"
>
</div>
</div>
</div>
% endif
<
%
include
file=
"/dashboard/_dashboard_prompt_midcourse_reverify.html"
/>
<
%
include
file=
"/dashboard/_dashboard_prompt_midcourse_reverify.html"
/>
% if default_tab:
% if default_tab:
<
%
include
file=
"/courseware/course_navigation.html"
/>
<
%
include
file=
"/courseware/course_navigation.html"
/>
...
...
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