38 lines
879 B
HTML
38 lines
879 B
HTML
---
|
|
---
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Home</title>
|
|
</head>
|
|
<body>
|
|
{% assign user = site.github.organization_members[0] %}
|
|
|
|
{{ site.github.project_title }}
|
|
<hr>
|
|
<h1>{{ user.login }}</h1>
|
|
<img src="{{ user.avatar_url }}">
|
|
|
|
<!--//header></header>
|
|
<script>
|
|
var body = document.querySelector('body');
|
|
var requestURL = 'https://api.github.com/users/brandonrosage';
|
|
var request = new XMLHttpRequest();
|
|
request.open('GET', requestURL);
|
|
request.responseType = 'json';
|
|
request.send();
|
|
|
|
request.onload = function() {
|
|
populateBody(request.response);
|
|
}
|
|
|
|
function populateBody(jsonObj) {
|
|
var myH1 = document.createElement('h1');
|
|
myH1.textContent = jsonObj['name'];
|
|
body.appendChild(myH1);
|
|
}
|
|
</script //-->
|
|
</body>
|
|
</html>
|