|
|
@ -675,18 +675,17 @@ var PDFView = { |
|
|
|
* @param {String} anchor The anchor hash, including the #. |
|
|
|
* @param {String} anchor The anchor hash, including the #. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
getAnchorUrl: function getAnchorUrl(anchor) { |
|
|
|
getAnchorUrl: function getAnchorUrl(anchor) { |
|
|
|
//#if !(FIREFOX || MOZCENTRAL || CHROME)
|
|
|
|
//#if (GENERIC || B2G)
|
|
|
|
return anchor; |
|
|
|
return anchor; |
|
|
|
//#else
|
|
|
|
//#endif
|
|
|
|
//#if CHROME
|
|
|
|
//#if (FIREFOX || MOZCENTRAL)
|
|
|
|
// return location.href.split('#')[0] + anchor;
|
|
|
|
|
|
|
|
//#else
|
|
|
|
|
|
|
|
// return this.url.split('#')[0] + anchor;
|
|
|
|
// return this.url.split('#')[0] + anchor;
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
|
|
|
|
//#if CHROME
|
|
|
|
|
|
|
|
// return location.href.split('#')[0] + anchor;
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Show the error box. |
|
|
|
* Show the error box. |
|
|
|
* @param {String} message A message that is human readable. |
|
|
|
* @param {String} message A message that is human readable. |
|
|
@ -1483,15 +1482,15 @@ var DocumentOutlineView = function documentOutlineView(outline) { |
|
|
|
document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) { |
|
|
|
document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) { |
|
|
|
PDFView.initialize(); |
|
|
|
PDFView.initialize(); |
|
|
|
|
|
|
|
|
|
|
|
//#if !(FIREFOX || MOZCENTRAL || CHROME)
|
|
|
|
//#if (GENERIC || B2G)
|
|
|
|
var params = PDFView.parseQueryString(document.location.search.substring(1)); |
|
|
|
var params = PDFView.parseQueryString(document.location.search.substring(1)); |
|
|
|
var file = params.file || DEFAULT_URL; |
|
|
|
var file = params.file || DEFAULT_URL; |
|
|
|
//#else
|
|
|
|
//#endif
|
|
|
|
//#if CHROME
|
|
|
|
//#if (FIREFOX || MOZCENTRAL)
|
|
|
|
//var file = DEFAULT_URL;
|
|
|
|
|
|
|
|
//#else
|
|
|
|
|
|
|
|
//var file = window.location.href.split('#')[0];
|
|
|
|
//var file = window.location.href.split('#')[0];
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
|
|
|
|
//#if CHROME
|
|
|
|
|
|
|
|
//var file = DEFAULT_URL;
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
|
|
|
|
|
|
|
|
//#if CHROME
|
|
|
|
//#if CHROME
|
|
|
|