LP#
1685840: Dojoless Google Books Preview
Avoid polluting the global namespace by wrapping the code in (function() {})().
Add event listeners to the DOM elements rather than the crufty
href=javascript:function approach.
Optimization: do not load the Google Books JSAPI unless there is a matching
embedded ISBN.
Use display style directly, rather than munging class names with hide_me
Supports IE 10/11, which does not handle responseType = 'json', through
the fallback to XHR responseText.
IE9 for now; it seems the new Google Books Loader wipes out the DOM in
IE9 instead of loading nicely in the <head>. Could go back to the old
Google JS loader, which still works, but is deprecated, so could
disappear at any point.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>