mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Github commit fix
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
//script for frontpage
|
||||
|
||||
var channel_list;
|
||||
var git_info;
|
||||
var frontpage = true;
|
||||
var socket;
|
||||
var rotation_timeout;
|
||||
|
||||
@@ -144,19 +144,18 @@ $().ready(function(){
|
||||
setup_no_connection_listener();
|
||||
|
||||
try{
|
||||
git_info = $.ajax({
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "https://api.github.com/users/zoff-music/received_events",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" +
|
||||
git_info[0].created_at.substring(0,10) +
|
||||
": " + git_info[0].actor.display_login +
|
||||
"<br><a href='https://github.com/"+git_info[0].repo.name+"/commit/" + git_info[0].payload.commits[0].sha + "' target='_blank'>" +
|
||||
git_info[0].payload.commits[0].sha.substring(0,10) + "</a>: " +
|
||||
git_info[0].payload.commits[0].message+"<br");
|
||||
success: function(git_info){
|
||||
$("#latest-commit").html("Latest Commit: <br>" +
|
||||
git_info[0].created_at.substring(0,10) +
|
||||
": " + git_info[0].actor.display_login +
|
||||
"<br><a href='https://github.com/"+git_info[0].repo.name+"/commit/" + git_info[0].payload.commits[0].sha + "' target='_blank'>" +
|
||||
git_info[0].payload.commits[0].sha.substring(0,10) + "</a>: " +
|
||||
git_info[0].payload.commits[0].message+"<br");
|
||||
}
|
||||
});
|
||||
} catch(error){
|
||||
Helper.log("Error with fetching GitHub commit info");
|
||||
}
|
||||
@@ -461,7 +460,7 @@ initializeCastApi = function() {
|
||||
if(event.castState == "NOT_CONNECTED"){
|
||||
$(".castButton-unactive").css("display", "block");
|
||||
cast_ready_connect = true;
|
||||
|
||||
|
||||
if(!localStorage.getItem("_chSeen")) {
|
||||
$(".castButton-unactive").css("display", "block");
|
||||
$('.tap-target').tapTarget('open');
|
||||
|
||||
@@ -31,19 +31,18 @@ $(document).ready(function (){
|
||||
}
|
||||
|
||||
try{
|
||||
git_info = $.ajax({
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "https://api.github.com/users/zoff-music/received_events",
|
||||
async: false
|
||||
}).responseText;
|
||||
|
||||
git_info = $.parseJSON(git_info);
|
||||
$("#latest-commit").html("Latest Commit: <br>" +
|
||||
git_info[0].created_at.substring(0,10) +
|
||||
": " + git_info[0].actor.display_login +
|
||||
"<br><a href='https://github.com/"+git_info[0].repo.name+"/commit/" + git_info[0].payload.commits[0].sha + "' target='_blank'>" +
|
||||
git_info[0].payload.commits[0].sha.substring(0,10) + "</a>: " +
|
||||
git_info[0].payload.commits[0].message+"<br");
|
||||
success: function(git_info){
|
||||
$("#latest-commit").html("Latest Commit: <br>" +
|
||||
git_info[0].created_at.substring(0,10) +
|
||||
": " + git_info[0].actor.display_login +
|
||||
"<br><a href='https://github.com/"+git_info[0].repo.name+"/commit/" + git_info[0].payload.commits[0].sha + "' target='_blank'>" +
|
||||
git_info[0].payload.commits[0].sha.substring(0,10) + "</a>: " +
|
||||
git_info[0].payload.commits[0].message+"<br");
|
||||
}
|
||||
});
|
||||
} catch(e) {}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user