Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lens library for footnotes support #56

Open
wants to merge 1 commit into
base: stable-3_3_0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions lib/lens/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html xmlns:mml="http://www.w3.org/1998/Math/MathML">
<head>
<title>eLife Lens</title>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic,600italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" media="all" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" />
<link href='https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css'>

<link rel="stylesheet" type="text/css" media="all" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" />

<!-- A combined lens.css will be generated in the bundling process -->
<!-- While in development, separate links for each CSS file are added, so we don't need a source map -->
Expand All @@ -20,16 +20,16 @@
styles: {".MathJax_Display": {padding: "0em 0em 0em 3em" },".MathJax_SVG_Display": {padding: "0em 0em 0em 3em" }}
});
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

<script src='lens.js'></script>

<script src="elife_api.js"></script>
<script>

// Little helper used to parse query strings from urls
// --------
//

var qs = function () {
var query_string = {};
var query = window.location.search.substring(1);
Expand All @@ -48,31 +48,32 @@
query_string[pair[0]].push(pair[1]);
}
}
elifeApiCall();
return query_string;
} ();

// This document gets loaded by default
// --------
var documentURL = "https://s3.amazonaws.com/elife-cdn/elife-articles/00778/elife00778.xml";

var documentURL = "https://s3.amazonaws.com/elife-publishing-cdn/00778/elife-00778-v1.xml";

$(function() {

// Create a new Lens app instance
// --------
//
// Injects itself into body

var app = new window.Lens({
document_url: qs.url ? decodeURIComponent(qs.url) : documentURL
});

app.start();

window.app = app;

});

</script>

</head>
Expand Down
Loading