alterNERDtive.github.io/index.html

39 lines
879 B
HTML
Raw Normal View History

2019-01-25 16:03:10 +01:00
---
---
2019-01-25 01:39:31 +01:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Home</title>
</head>
<body>
2019-01-25 16:03:10 +01:00
{% assign user = site.github.organization_members[0] %}
{{ site.github.project_title }}
<hr>
<h1>{{ user.login }}</h1>
<img src="{{ user.avatar_url }}">
2019-01-25 01:39:31 +01:00
2019-01-25 16:03:10 +01:00
<!--//header></header>
2019-01-25 01:39:31 +01:00
<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);
}
2019-01-25 16:03:10 +01:00
</script //-->
2019-01-25 01:39:31 +01:00
</body>
</html>