mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added latest commit to the site because why not
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var list_html;
|
||||
var git_info;
|
||||
|
||||
function getCookie(cname) {
|
||||
var name = cname + "=";
|
||||
@@ -114,5 +115,14 @@ $(document).ready(function (){
|
||||
}
|
||||
}
|
||||
|
||||
git_info = $.ajax({ type: "GET",
|
||||
url: "https://api.github.com/repos/nixolas1/zoff/commits",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" + git_info[0].commit.author.date.substring(0,10) + ": " + git_info[0].commit.author.name + "<br>" + git_info[0].sha.substring(0,10) + ": " + git_info[0].commit.message+"<br>");
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
@@ -128,6 +128,15 @@ $(document).ready(function()
|
||||
}
|
||||
if(navigator.userAgent.toLowerCase().indexOf("firefox") > -1) //quickdickfix for firefoxs weird percent handling
|
||||
$(".main").height(window.innerHeight-64);
|
||||
|
||||
git_info = $.ajax({ type: "GET",
|
||||
url: "https://api.github.com/repos/nixolas1/zoff/commits",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" + git_info[0].commit.author.date.substring(0,10) + ": " + git_info[0].commit.author.name + "<br>" + git_info[0].sha.substring(0,10) + ": " + git_info[0].commit.message+"<br>");
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user