On screens with large fonts or not much vertical resolution or with lots
of copies to display, clicking the "Google Books Preview" button
wouldn't result in a very noticeable change to the page because the
major change was buried under the fold.
Therefore, use the ID of the preview pane to scroll to that location
after the preview gets loaded.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
GBPViewer.load('ISBN:' + GBisbns[0]);
GBPViewer.resize();
dojo.byId('gbpbadge').style.display = 'none';
+ document.location.hash = '#rdetail_preview_div';
}
dojo.addOnLoad(function() {