Skip to content

Commit 80292bb

Browse files
committed
Added more keys
1 parent 8a98a1c commit 80292bb

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Diff for: images/favicon.png

5.58 KB
Loading

Diff for: index.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<!DOCTYPE html>
22
<html>
3-
43
<meta charset="utf-8">
5-
<title>Github Visualizer</title>
6-
74
<head>
5+
<title>Github Visualizer</title>
6+
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
87
<script src="http://d3js.org/d3.v3.min.js"></script>
98
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
109
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tipsy/1.0.2/jquery.tipsy.js"></script>

Diff for: js/github.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var access_token = 'f1aff3072a385154ffe18aed3b893aa46ce8577c';
1+
var access_token = ['f1aff3072a385154ffe18aed3b893aa46ce8577c','2e71ec1017dda2220ccba0f6922ecefd9ea44ac7','bfaeb43c92d3e2f534745a6df977f68b64dc7c55'];
22

33
var width = window.innerWidth;
44
var height = window.innerHeight;
@@ -13,15 +13,15 @@ function getRepo() {
1313
$.ajax({
1414
url: "https://api.github.com/repos/" + owner + "/" + repo + "/commits",
1515
data: {
16-
access_token: access_token
16+
access_token: access_token[Math.floor(Math.random()*access_token.length)]
1717
},
1818
success: function (data) {
1919
$('header').show();
2020
$('form.start').removeClass('start');
2121
$('header p').remove();
2222
$('img#logo').attr('src', 'images/hex-loader.gif')
2323
var sha = data[0].sha,
24-
url = "https://api.github.com/repos/" + owner + "/" + repo + "/git/trees/" + sha + "?recursive=1&access_token=" + access_token;
24+
url = "https://api.github.com/repos/" + owner + "/" + repo + "/git/trees/" + sha + "?recursive=1&access_token=" + access_token[Math.floor(Math.random()*access_token.length)];
2525
init(url);
2626
}
2727
});

0 commit comments

Comments
 (0)