OPPG-376:

Added hook for modifying params.
Replace getContentPath with getPath to reduce code and display absolute urls.
pull/1/head
Frode Petterson 2013-06-27 14:13:00 +02:00
parent 0bd174b54a
commit ddb6893d35
1 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@ H5P.QuestionSet = function (options, contentId) {
}
var $ = H5P.jQuery;
var cp = H5P.getContentPath(contentId);
var texttemplate =
'<% if (introPage.showIntroPage) { %>' +
@ -234,7 +233,7 @@ H5P.QuestionSet = function (options, contentId) {
fitToWrapper: true,
controls: false,
autoplay: true
}, cp);
}, contentId);
video.endedCallback = function () {
displayResults();
$videoContainer.hide();
@ -270,7 +269,7 @@ H5P.QuestionSet = function (options, contentId) {
if (params.backgroundImage !== undefined) {
$myDom.css({
overflow: 'hidden',
background: '#000 url(' + cp + params.backgroundImage.path + ') no-repeat 50% 50%',
background: '#000 url(' + H5P.getPath(contentId, params.backgroundImage.path) + ') no-repeat 50% 50%',
backgroundSize: '100% auto'
});
}