Permalink
62 lines (57 sloc)
3.25 KB
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Internet Archive - in the browser</title> | |
| <!--TODO-DETAILS-STAGE2 links should refer to content addressable files--> | |
| <script src="./includes/jquery-1.10.2.min.js" type="text/javascript"></script> | |
| <script src="./includes/bootstrap.min.js" type="text/javascript"></script> | |
| <link href="./includes/archive.min.css" rel="stylesheet" type="text/css"> | |
| <script>var archive_setup=[]</script> | |
| <!--React Needed even though in webpacked as refered to in archive.min.js --> | |
| <!--TODO try removing Reactt from archive.org/includes/archive.min.js--> | |
| <script src="./includes/node_modules/react/dist/react.js" type="text/javascript"></script> | |
| <!--<script src="https://archive.org//includes/node_modules/react-dom/dist/react-dom.js?v=503df4f" type="text/javascript"></script><!--removed as in packed --> | |
| <script src="./includes/archive.min.js" type="text/javascript"></script> | |
| <!-- JW now replaced by RenderMedia (part of WebTorrent) stuffing a Video tag --> | |
| <!--<script src="https://archive.org/jw/6.8/jwplayer.js" type="text/javascript"></script>--> | |
| <!--<script src="https://archive.org/includes/play.js" type="text/javascript"></script>--> | |
| <!--<script src="./dweb_bundled.js" type="text/javascript"></script> <!--Obsoleted by new combined archive.js --> | |
| <link rel='stylesheet' href='dweb-archive-styles.css'> | |
| <style> | |
| #jw6, #jw6__list { backgroundColor:black; } | |
| </style> | |
| <!-- Order of these bundle inclusions is important, objects should be loaded after transports as it adds Name lookup to DwebTransports--> | |
| <!--<script type="text/javascript" src="dweb-transports-bundle.js"></script> <!-- Direct Transports --> | |
| <script type="text/javascript" src="dweb-serviceworker-proxy-bundle.js"></script> <!-- Transport via Proxy --> | |
| <script type="text/javascript" src="dweb-archive-bundle.js"></script> | |
| </head> | |
| <!-- TODO-DETAILS missing scripts, properties and links that appear before body tag on archive/details/commute etc --> | |
| <body class="examplesarchive navia ia-module navbar-no-margin-bottom tiles responsive"> | |
| <a href="#maincontent" class="hidden-for-screen-readers">Skip to main content</a> | |
| <script> | |
| $(function(){ $('.navbar [data-toggle="tooltip"]').tooltip({}); }); | |
| async function main() { | |
| await DwebTransports.p_connect({statuselement: document.getElementById("statuselement"), transports: searchparams.getAll("transport"), paused: searchparams.getAll("paused")}); | |
| const opts = Nav.setState(searchparams); // Save persistent state | |
| if (query) { | |
| Nav.navSearch(query, opts, {wanthistory: true}); | |
| } else { | |
| await Nav.factory(item || "home", opts, {wanthistory: true}); | |
| } | |
| } | |
| </script> | |
| <div class="floatright" id="statuselement"> | |
| </div><!--End of standard network status and login panel--> | |
| <div id="main"></div><!-- destination for <Page>-> | |
| <script> | |
| localStorage.debug = "dweb-transports:* dweb-archive:*"; | |
| var searchparams = new URL(window.location.href).searchParams; | |
| i = location.pathname.indexOf("/details/"); | |
| var item = (i > -1) ? location.pathname.slice(i+9) : searchparams.get("item"); | |
| var query = searchparams.get("query"); | |
| main(); | |
| </script> | |
| </script> | |
| </body> | |
| </html> |