Skip to content

Commit

Permalink
Function
Browse files Browse the repository at this point in the history
  • Loading branch information
IdealistCat authored Aug 8, 2024
1 parent 0f7e30d commit 1e57cbd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Content/Source/latest-commit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var GITPAGE = "Blog-Develop"
var GITPAGE = "Blog"

.fetch('https://api.github.com/repos/DragginGroup/' + GITPAGE + '/commits?per_page=1').then(res => res.json()).then(res => {
function fetchLatestCommit() {
.fetch('https://api.github.com/repos/DragginGroup/' + GITPAGE + '/commits?per_page=1').then(res => res.json()).then(res => {
var commit = res[0].commit

var ex1 = "Replaced old image code"
Expand Down Expand Up @@ -28,3 +29,6 @@ var GITPAGE = "Blog-Develop"
document.getElementById('message').style.fontSize = x - small
}
})
}

fetchLatestCommit()

0 comments on commit 1e57cbd

Please sign in to comment.