1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 05:11:44 +03:00
semantic/prototype/UI/index.html

27 lines
738 B
HTML
Raw Normal View History

<!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)) {
2015-10-09 21:36:18 +03:00
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>