block by tophtucker 71b2711d245c98d56cc1f6899b260221

Mystery box

Full Screen

Inspired by @veltman.

index.html

<!DOCTYPE html>
<meta charset="utf-8">

<style>
body {
  padding: 2em;
  text-align: center;
}
</style>

<body>
  <img src="box.jpg">
</body>

<script>

var user = 'tophtucker';
fetch('https://api.github.com/users/' + user + '/gists').then(function(response) {
  return response.ok ? response.text() : Promise.reject(response.status);  
}).then(function(text) {
  var gists = JSON.parse(text);
  window.location = '//bl.ocks.org/' + user + '/' + gists[Math.floor(Math.random() * gists.length)].id;
});

</script>

box.jpg