Skip to content

Commit

Permalink
Just have it be a manual labor thing
Browse files Browse the repository at this point in the history
  • Loading branch information
IdealistCat authored Aug 8, 2024
1 parent 8dbda5d commit e466ff7
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
DRAGGING BLOG
</p>
<pre id="message">Latest Commit:</pre>
<pre>Blog Version: <span id="result"></span></pre>
<pre>Blog Version: 0.1.2</pre>

<p>
the blog for all things Dragging related!
Expand Down Expand Up @@ -57,10 +57,7 @@
WIP BLOG SITE
</p>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://rawgit.com/hippich/bower-semver/master/semver.min.js"></script>
<script>
var dev = 0

fetch('https://api.github.com/repos/DragginGroup/Blog/commits?per_page=1').then(res => res.json()).then(res => {
var commit = res[0].commit
Expand Down Expand Up @@ -92,23 +89,6 @@
document.getElementById('message').style.fontSize = x-small
}
})

function getLatestGitVersion() {
const gitHubPath = 'DragginGroup/Blog';
const url = 'https://api.github.com/repos/' + gitHubPath + '/tags';
$.get(url).done(data => {
const versions = data.sort((v1, v2) => semver.compare(v2.name, v1.name));

var cont = versions[0].name
if (dev == 1) {
cont = "Indev"
}

document.getElementById('result').innerHTML = cont;
});
}

getLatestGitVersion();
</script>
</body>
</html>

0 comments on commit e466ff7

Please sign in to comment.