if (Object.keys(this.fluidbook.settings.dynamicBackgroundColor).length > 0) {
var $this = this;
$(this.fluidbook).on('fluidbook.page.change.end', function (e, page) {
- var c = $this.fluidbook.settings.dynamicBackgroundColor[page];
+ var s = $this.fluidbook.settings.dynamicBackgroundColor[page];
+ var back = s[0];
+ var arrows = '';
+ if (s.length > 1) {
+ arrows = s[1];
+ }
var style;
- if (c === undefined || c === null || c === '' || c === '-') {
+ if (back === undefined || back === null || back === '' || back === '-') {
style = '';
} else {
- style = "background-image:none !important;background-color:" + c + " !important;";
+ style = "background-image:none !important;background-color:" + back + " !important;";
}
$('#background').attr('style', style);
+ $("#prev-arrows,#next-arrows").css('color', arrows);
});
}
},