1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/prototype/UI/index.html
2015-10-09 13:36:38 -05:00

27 lines
739 B
HTML

<!doctype html>
<html>
<head>
<title>semantic-diff</title>
<script type="text/javascript">
function loadJSON(path, callback) {
var request = new XMLHttpRequest();
request.overrideMimeType("application/json");
request.open('GET', '' + path, true);
request.onreadystatechange = function () {
if (request.readyState == 4 && (request.status == "200" || request.status == 0)) {
callback(JSON.parse(request.responseText));
}
};
request.send(null);
}
</script>
</head>
<body>
<script type="text/javascript">
loadJSON('Fixtures/swift.json', function (json) {
console.log(json);
});
</script>
</body>
</html>