$(self.prefetchedImgs[newIndexL]).css('zIndex', 2);
//jquery adds display:block to the element style, which interferes with our print css
- $(self.prefetchedImgs[newIndexL]).css('display', null);
- $(self.prefetchedImgs[newIndexR]).css('display', null);
+ $(self.prefetchedImgs[newIndexL]).css('display', '');
+ $(self.prefetchedImgs[newIndexR]).css('display', '');
$(self.leafEdgeR).css({
// Moves the right leaf edge
$(self.prefetchedImgs[newIndexR]).css('zIndex', 2);
//jquery adds display:block to the element style, which interferes with our print css
- $(self.prefetchedImgs[newIndexL]).css('display', null);
- $(self.prefetchedImgs[newIndexR]).css('display', null);
+ $(self.prefetchedImgs[newIndexL]).css('display', '');
+ $(self.prefetchedImgs[newIndexR]).css('display', '');
$(self.leafEdgeL).css({
width: newLeafEdgeWidthL+'px',
OLAuth.prototype.init = function() {
var htmlStr = 'Checking loan status with Open Library';
- this.showPopup("#ddd", "#000", htmlStr, 'Please wait as we check the status of this book...');
+ this.showPopup("#F0EEE2", "#000", htmlStr, 'Please wait as we check the status of this book...');
var authUrl = this.authUrl+'?rand='+Math.random();
if (false !== this.loanUUID) {
authUrl += '&loan='+this.loanUUID
this.popup = document.createElement("div");
$(this.popup).css({
position: 'absolute',
- top: '20px',
+ top: '50px',
left: ($('#BookReader').attr('clientWidth')-400)/2 + 'px',
width: '400px',
- padding: "20px",
+ padding: "15px",
border: "3px double #999999",
zIndex: 3,
textAlign: 'center',
OLAuth.prototype.callback = function(obj) {
if (false == obj.success) {
- this.showPopup("#fff", "#000", obj.msg, obj.resolution);
+ this.showPopup("#F0EEE2", "#000", obj.msg, obj.resolution);
clearInterval(this.poller);
this.ttsPoller = null;
} else {
var self = this;
this.poller=setInterval(function(){
if (!self.olConnect) {
- self.showPopup("#f00", "#fff", 'Connection error', 'The BookReader cannot reach Open Library. This might mean that you are offline or that Open Library is down. Please check your Internet connection and refresh this page or try again later.');
+ self.showPopup("#F0EEE2", "#000", 'Connection error', 'The BookReader cannot reach Open Library. This might mean that you are offline or that Open Library is down. Please check your Internet connection and refresh this page or try again later.');
clearInterval(self.poller);
self.ttsPoller = null;
} else {