Updated to use image objects from options
parent
e6add04473
commit
44ef62eb90
|
@ -96,15 +96,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
animations: {
|
animations: {
|
||||||
showAnimations: false,
|
showAnimations: false,
|
||||||
successVideo: undefined,
|
successVideo: undefined,
|
||||||
failVideo: undefined,
|
failVideo: undefined
|
||||||
successResultAnimation: {
|
|
||||||
machineName: "H5P.Image",
|
|
||||||
options: {image: ""}
|
|
||||||
},
|
|
||||||
failedResultAnimation: {
|
|
||||||
machineName: "H5P.Image",
|
|
||||||
options: {image: ""}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -180,7 +172,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
// Render own DOM into target.
|
// Render own DOM into target.
|
||||||
$myDom = target;
|
$myDom = target;
|
||||||
$myDom.html(template.render(params)).css({
|
$myDom.html(template.render(params)).css({
|
||||||
backgroundImage: 'url(' + cp + params.backgroundImage + ')'
|
backgroundImage: 'url(' + cp + params.backgroundImage.path + ')'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Attach questions
|
// Attach questions
|
||||||
|
|
Loading…
Reference in New Issue