reverse the attempts to allow cross site scripts and just use relative paths for now

This commit is contained in:
Michael Q Larson
2015-02-17 15:35:16 -08:00
parent 5d9e82f9cb
commit 4ef8e7eda4
5 changed files with 23 additions and 21 deletions

View File

@@ -2,12 +2,11 @@
script.
(function() {
$.ajax({
url: 'http://freecodecamp.com/api/github',
url: '/api/github',
type: 'GET'
}).done(
function(data) {
var github = document.createElement('div');
console.log(data);
$(github).html('<div class="row"><div class="col-xs-6 text-right">Open Issues:</div><div class="col-xs-6 text-left">' + data.issues + ' <a href="https://github.com/freecodecamp/freecodecamp/issues">(create one)</a></div></div><div class="row"><div class="col-xs-6 text-right">Open Pull Requests:</div><div class="col-xs-6 text-left">' + data.pulls + ' <a href="https://github.com/freecodecamp/freecodecamp/pulls">(create one)</a></div></div>').prependTo($('#github'))
}
);