UNPKG

epub-full-text-search

Version:
106 lines (77 loc) 3.61 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://readium.firebaseapp.com/images/readium_favicon.png" rel="shortcut icon"/> <link href="https://readium.firebaseapp.com/images/readium-touch-icon.png" rel="apple-touch-icon"/> <style> .library-item { height: 100px; } body:not(.list-view) .library-item .no-cover { width: 300px; height: 400px; font-size: 40px; } </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <link rel="stylesheet" type="text/css" href="https://readium.firebaseapp.com/css/readium-all.css"> <script type="text/javascript" src="https://readium.firebaseapp.com/scripts/readium-js-viewer_all.js"></script> <script type="text/javascript" src="https://readium.firebaseapp.com/font-faces/fonts.js"></script> <script type="text/javascript"> var HTTPServerRootFolder = 'https://readium.firebaseapp.com'; console.log(HTTPServerRootFolder); var getURLQueryParams = function () { var params = {}; var query = window.location.search; if (query && query.length) { query = query.substring(1); var keyParams = query.split('&'); for (var x = 0; x < keyParams.length; x++) { var keyVal = keyParams[x].split('='); if (keyVal.length > 1) { params[keyVal[0]] = decodeURIComponent(keyVal[1]); } } } return params; }; var urlParams = getURLQueryParams(); console.log(urlParams); var fontsArray = []; if (typeof getFontFaces != "undefined") { // defined externally fontsArray = getFontFaces(HTTPServerRootFolder + "/font-faces/"); } // MUST BE *SINGLE* CALL TO require.config() FOR ALMOND (SINGLE BUNDLE) TO WORK CORRECTLY!!! require.config({ /* http://requirejs.org/docs/api.html#config-waitSeconds */ waitSeconds: 0, config: { 'readium_js_viewer/ModuleConfig': { 'mathJaxUrl': HTTPServerRootFolder + '/scripts/mathjax/MathJax.js', 'fonts': fontsArray, 'annotationCSSUrl': HTTPServerRootFolder + '/css/annotations.css', 'jsLibRoot': HTTPServerRootFolder + '/scripts/zip/', 'useSimpleLoader': false, // cloud reader (strictly-speaking, this config option is false by default, but we prefer to have it explicitly set here). 'epubLibraryPath': 'https://readium.firebaseapp.com/epub_content/epub_library.opds', 'imagePathPrefix': 'https://readium.firebaseapp.com/', 'canHandleUrl': false, 'canHandleDirectory': false, 'workerUrl': undefined, 'epubReadingSystemUrl': undefined } } }); </script> </head> <!-- This is all application-specific HTML --> <body> <nav id="app-navbar" class="navbar" role="banner" aria-label="{{Strings.i18n_toolbar}}"> </nav> <div id="app-container"> </div> </body> </html>