Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Akihisa Yamada committed Feb 26, 2021
1 parent 80868f8 commit 291717a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function newXMLHttp() {
return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest();
}
function syncURL(url) {
xhttp = newHTTP();
xhttp = newXMLHttp();
xhttp.open("GET", url, false);
try {xhttp.responseType = "msxml-document"} catch(err) {} // Helping IE11
xhttp.send("");
Expand Down
35 changes: 21 additions & 14 deletions tpdb.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script src="definitions.js"></script>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script src="definitions.js"></script>
</head>
<body>
<div id="main"></div>
<script>

var path = get_args["path"];
var ver = "ver" in get_args ? get_args["ver"] : "master";
var base = "https://raw.githubusercontent.com/TermCOMP/TPDB/" + ver + "/";
loadURL( base + path,
function (xhttp) {
applyXSL(xhttp.responseText, base + "xml/xtcHTML.xsl", document.getElementById("main").innerHTML);
}
);
</script>
<body>
<div id="main"></div>
<script>
var elm = document.getElementById("main");
if( "path" in get_args ) {
var path = get_args["path"];
var ver = "ver" in get_args ? get_args["ver"] : "master";
var base = "https://raw.githubusercontent.com/TermCOMP/TPDB/" + ver + "/";
loadURL(base + path,
function(xhttp) {
applyXSL(xhttp.responseText, base + "xml/xtcHTML.xsl", elm);
}
);
} else {
elm.innerHTML = "No path is specified.";
}
</script>
</body>

</html>

0 comments on commit 291717a

Please sign in to comment.