Updated to use image objects from options

d3summaryChart
Frank Ronny Larsen 2013-02-06 15:49:15 +01:00
parent e6add04473
commit 44ef62eb90
1 changed files with 2 additions and 10 deletions

View File

@ -96,15 +96,7 @@ H5P.QuestionSet = function (options, contentId) {
animations: {
showAnimations: false,
successVideo: undefined,
failVideo: undefined,
successResultAnimation: {
machineName: "H5P.Image",
options: {image: ""}
},
failedResultAnimation: {
machineName: "H5P.Image",
options: {image: ""}
}
failVideo: undefined
}
}
};
@ -180,7 +172,7 @@ H5P.QuestionSet = function (options, contentId) {
// Render own DOM into target.
$myDom = target;
$myDom.html(template.render(params)).css({
backgroundImage: 'url(' + cp + params.backgroundImage + ')'
backgroundImage: 'url(' + cp + params.backgroundImage.path + ')'
});
// Attach questions