|
|
@ -188,6 +188,7 @@ return $(this).text().replace(/^\s+|^\t+|\t+|\s+$/g, "");
|
|
|
|
|
|
|
|
|
|
|
|
// Move dropdown lists higher in dom, replace bootstrap toggle with own toggle.
|
|
|
|
// Move dropdown lists higher in dom, replace bootstrap toggle with own toggle.
|
|
|
|
$( 'ul[aria-labelledby="read-in-browser"]' ).insertBefore( '.blur-wrapper' ).addClass('readinbrowser-drop');
|
|
|
|
$( 'ul[aria-labelledby="read-in-browser"]' ).insertBefore( '.blur-wrapper' ).addClass('readinbrowser-drop');
|
|
|
|
|
|
|
|
$( 'ul[aria-labelledby="send-to-kindle"]' ).insertBefore( '.blur-wrapper' ).addClass('sendtokindle-drop');
|
|
|
|
$( '.leramslist' ).insertBefore( '.blur-wrapper' );
|
|
|
|
$( '.leramslist' ).insertBefore( '.blur-wrapper' );
|
|
|
|
$( 'ul[aria-labelledby="btnGroupDrop1"]' ).insertBefore( '.blur-wrapper' ).addClass('leramslist');
|
|
|
|
$( 'ul[aria-labelledby="btnGroupDrop1"]' ).insertBefore( '.blur-wrapper' ).addClass('leramslist');
|
|
|
|
$( '#add-to-shelves' ).insertBefore( '.blur-wrapper' );
|
|
|
|
$( '#add-to-shelves' ).insertBefore( '.blur-wrapper' );
|
|
|
@ -200,6 +201,11 @@ return $(this).text().replace(/^\s+|^\t+|\t+|\s+$/g, "");
|
|
|
|
$( '.leramslist' ).toggle();
|
|
|
|
$( '.leramslist' ).toggle();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#sendbtn2' ).click( function() {
|
|
|
|
|
|
|
|
$( '.sendtokindle-drop' ).toggle();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('div[aria-label="Add to shelves"]' ).click( function() {
|
|
|
|
$('div[aria-label="Add to shelves"]' ).click( function() {
|
|
|
|
$( '#add-to-shelves' ).toggle();
|
|
|
|
$( '#add-to-shelves' ).toggle();
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -226,6 +232,17 @@ return $(this).text().replace(/^\s+|^\t+|\t+|\s+$/g, "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( $( '#sendbtn2' ).length > 0 ) {
|
|
|
|
|
|
|
|
position = $( '#sendbtn2' ).offset().left
|
|
|
|
|
|
|
|
if ( position + $( '.sendtokindle-drop' ).width() > $( window ).width() ) {
|
|
|
|
|
|
|
|
positionOff = position + $( '.sendtokindle-drop' ).width() - $( window ).width();
|
|
|
|
|
|
|
|
ribPosition = position - positionOff - 5
|
|
|
|
|
|
|
|
$( '.sendtokindle-drop' ).attr("style", "left: " + ribPosition + "px !important; right: auto; top: " + topPos + "px");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$( '.sendtokindle-drop' ).attr("style", "left: " + position + "px !important; right: auto; top: " + topPos + "px");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ( $( '.downloadBtn' ).length > 0 ) {
|
|
|
|
if ( $( '.downloadBtn' ).length > 0 ) {
|
|
|
|
|
|
|
|
|
|
|
|
position = $( '#btnGroupDrop1' ).offset().left
|
|
|
|
position = $( '#btnGroupDrop1' ).offset().left
|
|
|
@ -274,6 +291,7 @@ $( '.book-meta > .bookinfo > .rating' ).clone().insertBefore( '.book-meta > .des
|
|
|
|
$(document).mouseup(function (e) {
|
|
|
|
$(document).mouseup(function (e) {
|
|
|
|
var container = new Array();
|
|
|
|
var container = new Array();
|
|
|
|
container.push($('ul[aria-labelledby="read-in-browser"]'));
|
|
|
|
container.push($('ul[aria-labelledby="read-in-browser"]'));
|
|
|
|
|
|
|
|
container.push($('.sendtokindle-drop'));
|
|
|
|
container.push($('.leramslist'));
|
|
|
|
container.push($('.leramslist'));
|
|
|
|
container.push($('#add-to-shelves'));
|
|
|
|
container.push($('#add-to-shelves'));
|
|
|
|
container.push($('.navbar-collapse.collapse.in'));
|
|
|
|
container.push($('.navbar-collapse.collapse.in'));
|
|
|
@ -509,7 +527,7 @@ $( '.profileDrop' ).attr({
|
|
|
|
|
|
|
|
|
|
|
|
$( '#btn-upload' ).attr({
|
|
|
|
$( '#btn-upload' ).attr({
|
|
|
|
'data-toggle': 'tooltip',
|
|
|
|
'data-toggle': 'tooltip',
|
|
|
|
'title': $( '#btn-upload' ).text() , // 'Upload',
|
|
|
|
'title': $( '#btn-upload' ).parent().text() , // 'Upload',
|
|
|
|
'data-placement': 'bottom',
|
|
|
|
'data-placement': 'bottom',
|
|
|
|
'data-viewport': '#main-nav' })
|
|
|
|
'data-viewport': '#main-nav' })
|
|
|
|
.addClass('upload-btn-tooltip');
|
|
|
|
.addClass('upload-btn-tooltip');
|
|
|
@ -564,6 +582,13 @@ $( '#sendbtn' ).attr({
|
|
|
|
'data-viewport': '.btn-toolbar' })
|
|
|
|
'data-viewport': '.btn-toolbar' })
|
|
|
|
.addClass('send-btn-tooltip');
|
|
|
|
.addClass('send-btn-tooltip');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$( '#sendbtn2' ).attr({
|
|
|
|
|
|
|
|
'data-toggle-two': 'tooltip',
|
|
|
|
|
|
|
|
'title': 'Send to Kindle',
|
|
|
|
|
|
|
|
'data-placement': 'bottom',
|
|
|
|
|
|
|
|
'data-viewport': '.btn-toolbar' })
|
|
|
|
|
|
|
|
.addClass('send-btn-tooltip');
|
|
|
|
|
|
|
|
|
|
|
|
$( '#read-in-browser' ).attr({
|
|
|
|
$( '#read-in-browser' ).attr({
|
|
|
|
'data-toggle-two': 'tooltip',
|
|
|
|
'data-toggle-two': 'tooltip',
|
|
|
|
'title': 'Read',
|
|
|
|
'title': 'Read',
|
|
|
|