Commit 4045fb72 authored by Lukas Matt's avatar Lukas Matt

Shrink download button text

parent 9ff72fad
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
var apiUrl = "https://api.github.com/repos/{{ site.github.slug }}/releases/latest"; var apiUrl = "https://api.github.com/repos/{{ site.github.slug }}/releases/latest";
$.getJSON(apiUrl).done(function (release) { $.getJSON(apiUrl).done(function (release) {
$.each(release.assets, function(index, asset) { $.each(release.assets, function(index, asset) {
var name = asset.name.split(".");
var a = $("<a>").attr("class", "buttons") var a = $("<a>").attr("class", "buttons")
.attr("href", asset.browser_download_url) .attr("href", asset.browser_download_url).append(name[1]);
.append(release.tag_name + " " + asset.name); var li = $("<li>") //.attr("style", "height:30px")
var li = $("<li>").attr("style", "height:30px")
.attr("class", "download").append(a); .attr("class", "download").append(a);
// append download link to the menu // append download link to the menu
$("#downloadBtns").append(li); $("#downloadBtns").append(li);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment