Background image need to be set on container.
parent
5ad15675f8
commit
ac381582c5
|
@ -141,7 +141,6 @@ H5P.QuestionSet = function (options) {
|
||||||
questionInstances.push(tmp);
|
questionInstances.push(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var _updateFinishButton = function () {
|
var _updateFinishButton = function () {
|
||||||
var answered = true;
|
var answered = true;
|
||||||
for (var i = questionInstances.length - 1; i >= 0; i--) {
|
for (var i = questionInstances.length - 1; i >= 0; i--) {
|
||||||
|
@ -185,8 +184,7 @@ H5P.QuestionSet = function (options) {
|
||||||
// Render own DOM into target.
|
// Render own DOM into target.
|
||||||
template.update(targetId, params);
|
template.update(targetId, params);
|
||||||
$myDom = $('#' + targetId);
|
$myDom = $('#' + targetId);
|
||||||
|
$myDom.css({backgroundImage: 'url(' + params.backgroundImage + ')'});
|
||||||
$myDom.find(".questionset").css({backgroundImage: 'url(' + params.backgroundImage + ')'});
|
|
||||||
|
|
||||||
// Attach questions
|
// Attach questions
|
||||||
for (var i=0; i<questionInstances.length; i++) {
|
for (var i=0; i<questionInstances.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue