Skip to content

Commit

Permalink
insurance in setting user timezone offset; update to lti config template
Browse files Browse the repository at this point in the history
  • Loading branch information
presnick committed May 24, 2018
1 parent e5fc631 commit e855409
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lti.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.imsglobal.org/xsd/imslticc_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticc_v1p0.xsd http://www.imsglobal.org/xsd/imsbasiclti_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imsbasiclti_v1p0.xsd http://www.imsglobal.org/xsd/imslticm_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd http://www.imsglobal.org/xsd/imslticp_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd">
<blti:title>External Textbook</blti:title>
<blti:title>External Practice</blti:title>
<blti:description>Runestone textbook</blti:description>
<blti:launch_url>https://a1a367b4.ngrok.io/runestone/lti</blti:launch_url>
<blti:secure_launch_url>https://a1a367b4.ngrok.io/runestone/lti</blti:secure_launch_url>
<blti:launch_url>http://106w18.learningpython.today/runestone/lti</blti:launch_url>
<blti:secure_launch_url>https://106w18.learningpython.today/runestone/lti</blti:secure_launch_url>
<blti:extensions platform="canvas.instructure.com">
<lticm:property name="tool_id">zaption</lticm:property>
<lticm:property name="privacy_level">public</lticm:property>
Expand All @@ -18,7 +18,7 @@
<lticm:property name="course_name">UMSI106</lticm:property>
</lticm:options>
<lticm:options name="course_navigation">
<lticm:property name="text">Textbook</lticm:property>
<lticm:property name="text">External Practice</lticm:property>
<lticm:property name="visibility">members</lticm:property>
<lticm:property name="default">enabled</lticm:property>
<lticm:property name="enabled">true</lticm:property>
Expand Down
9 changes: 6 additions & 3 deletions views/assignments/settz_then_practice.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
<script type="text/javascript" src="/{{=request.application}}/static/{{=course_name}}/_static/jquery.js"></script>
<script type="text/javascript">
var data = {timezoneoffset: (new Date()).getTimezoneOffset()/60};
jQuery.post('/{{=request.application}}/ajax/set_tz_offset',data, function() {
});
window.location = '{{=URL('assignments', 'practice')}}'
jQuery.post('/{{=request.application}}/ajax/set_tz_offset',data,
function() {
window.location = '{{=URL('assignments', 'practice')}}'
}
);
//window.location = '{{=URL('assignments', 'practice')}}'
</script>

Automatically redirecting to {{=URL('assignments', 'practice')}}

0 comments on commit e855409

Please sign in to comment.