-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpubsjs.html
43 lines (43 loc) · 1.3 KB
/
pubsjs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html>
<head>
<script src="bibtexparser.js" type="text/javascript"></script>
<link rel="stylesheet" href="bibtex.css" />
<link rel="stylesheet" href="usi.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
</head>
<body>
<div id="hdr"></div>
<script async src="hdr.js" strng="Publications"></script>
<div id="usi_page">
<div id="bt">
<textarea id="bibtex_input" style="display: none"> </textarea>
</div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", () => {
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == XMLHttpRequest.DONE) {
if (xmlhttp.status == 200) {
document.getElementById("bibtex_input").innerHTML =
xmlhttp.responseText;
bibtex();
} else if (xmlhttp.status == 400) {
alert("There was an error 400");
} else {
alert("something else other than 200 was returned");
}
}
};
xmlhttp.open("GET", "https://kristofvl.github.io/usi/bt.bib", true);
xmlhttp.send();
});
</script>
</div>
<div id="usi_ftr"></div>
</body>
</html>