Adding a way to opt out, and opting myself out.

This commit is contained in:
August Lilleaas
2013-11-18 17:45:56 +01:00
parent 42fd57a908
commit 5f23ac2c0d
4 changed files with 27 additions and 1 deletions

View File

@@ -84,6 +84,18 @@ var run = function() {
maxItems = 5,
maxLanguages = 9;
if (githubresume_opt_out_users.indexOf(username) >= 0) {
$.ajax({
url: 'views/opt_out.html',
dataType: 'html',
success: function(data) {
var template = data;
$('#resume').html(data);
}
});
return;
}
var res = github_user(username, function(data) {
data = data.data;
var sinceDate = new Date(data.created_at);