Changing background-color from black to white when using background image
parent
cf2ae6d207
commit
f07bd8dfc3
|
@ -282,7 +282,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
if (params.backgroundImage !== undefined) {
|
if (params.backgroundImage !== undefined) {
|
||||||
$myDom.css({
|
$myDom.css({
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
background: '#000 url("' + H5P.getPath(params.backgroundImage.path, contentId) + '") no-repeat 50% 50%',
|
background: '#fff url("' + H5P.getPath(params.backgroundImage.path, contentId) + '") no-repeat 50% 50%',
|
||||||
backgroundSize: '100% auto'
|
backgroundSize: '100% auto'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
var $intro = $myDom.find('.intro-page');
|
var $intro = $myDom.find('.intro-page');
|
||||||
if ($intro.length) {
|
if ($intro.length) {
|
||||||
$intro.css({
|
$intro.css({
|
||||||
background: '#000 url("' + H5P.getPath(params.introPage.backgroundImage.path, contentId) + '") no-repeat 50% 50%',
|
background: '#fff url("' + H5P.getPath(params.introPage.backgroundImage.path, contentId) + '") no-repeat 50% 50%',
|
||||||
backgroundSize: '100% auto'
|
backgroundSize: '100% auto'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue