mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
4.6 KiB
HTML
118 lines
4.6 KiB
HTML
13 years ago
|
---
|
||
|
title: Download
|
||
|
layout: default
|
||
|
---
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
$(function() {
|
||
|
$.getJSON('https://api.github.com/repos/JakeWharton/ActionBarSherlock/tags?callback=?', function(response) {
|
||
|
var meta = response.meta
|
||
|
, data = response.data
|
||
|
;
|
||
|
|
||
|
data.sort(function(o1, o2) {
|
||
|
return (o1.name > o2.name) ? -1 : 1;
|
||
|
});
|
||
|
|
||
|
var last = data[0];
|
||
|
var lastSha = last.commit.sha;
|
||
|
var lastDate = $('#latest-date').html('<em>Date unavailable</em>');
|
||
|
$('.latest-version').html(last.name);
|
||
|
$('#latest-zip').attr('href', last.zipball_url);
|
||
|
$('#latest-tarball').attr('href', last.tarball_url);
|
||
|
|
||
|
var previous = $('#previous-releases').empty();
|
||
|
$.each(data, function(index) {
|
||
|
previous.append(
|
||
|
$('<dt>Version ' + this.name + '<span class="normal"> — <em id="' + this.commit.sha + '">Date unavailable</em></span></dt>'),
|
||
|
$('<dd><a class="img" href="' + this.zipball_url + '">Zip</a> · <a class="img" href="' + this.tarball_url + '">Tarball</a></dd>')
|
||
|
);
|
||
|
$.getJSON(this.commit.url + '?callback=?', function(inner) {
|
||
|
var d = new Date(inner.data.commit.author.date);
|
||
|
var month = d.getMonth() + 1;
|
||
|
if (month < 10) {
|
||
|
month = '0' + month;
|
||
|
}
|
||
|
var day = d.getDate();
|
||
|
if (day < 10) {
|
||
|
day = '0' + day;
|
||
|
}
|
||
|
var date = d.getFullYear() + '-' + month + '-' + day;
|
||
|
$('#' + inner.data.sha).html(date);
|
||
|
if (inner.data.sha === lastSha) {
|
||
|
lastDate.html(date);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
//Only most recent 10 tags
|
||
|
if (index == 9) {
|
||
|
return false;
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
$.getJSON('https://api.github.com/repos/JakeWharton/ActionBarSherlock/downloads?callback=?', function(response) {
|
||
|
var meta = response.meta
|
||
|
, data = response.data
|
||
|
;
|
||
|
|
||
|
var samples = $('#sample-apps').empty();
|
||
|
$.each(data, function() {
|
||
|
if (/apk$/.test(this.html_url)) {
|
||
|
samples.append(
|
||
12 years ago
|
$('<dt class="normal"/>').html(this.description.substring(0, 8) === "Sample: " ? this.description.substring(8) : this.description),
|
||
13 years ago
|
$('<dd class="sample-app"/>').append(
|
||
|
$('<a/>').attr('href', this.html_url).html('APK'),
|
||
|
' · ',
|
||
|
$('<a/>').attr('href', 'http://chart.apis.google.com/chart?chs=545x545&cht=qr&chl=' + this.html_url + '&.png').html('QR Code').colorbox()
|
||
|
)
|
||
|
);
|
||
12 years ago
|
}/* else if (/jar$/.test(this.html_url)) {
|
||
13 years ago
|
plugins.append(
|
||
|
$('<dt class="normal"/>').html(this.description.substring(0, 26) === "ActionBarSherlock Plugin: " ? this.description.substring(26) : this.description),
|
||
|
$('<dd class="plugin"/>').append(
|
||
|
$('<a/>').attr('href', this.html_url).html('JAR')
|
||
|
)
|
||
|
);
|
||
12 years ago
|
}*/
|
||
13 years ago
|
});
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="three-fourths">
|
||
|
<h1>Download</h1>
|
||
|
<p><strong>Version <span class="latest-version">(loading)</span></strong> — <span id="latest-date">(loading)</span> (<a id="changelog" href="https://github.com/JakeWharton/ActionBarSherlock/tree/master/CHANGELOG.md#readme">change log</a>)</p>
|
||
12 years ago
|
<p><a class="img dl" id="latest-zip" href="https://github.com/JakeWharton/ActionBarSherlock/downloads"><img src="static/down_grey.png" alt="Zip"/> Download .zip</a></p>
|
||
|
<p><a class="img dl" id="latest-tarball" href="https://github.com/JakeWharton/ActionBarSherlock/downloads"><img src="static/down_grey.png" alt="Tarball"/> Download .tgz</a></p>
|
||
|
<!-- Download icon by Ddate Kaspar / Franziska Sponsel -->
|
||
13 years ago
|
|
||
|
<h3>Plugins</h3>
|
||
|
<dl id="plugins">
|
||
12 years ago
|
<dt class="normal"><a href="https://github.com/JakeWharton/ActionBarSherlock-Plugin-Maps/downloads">Google Maps</a></dt>
|
||
|
<dd class="plugin">Base activity which extends from <code>MapActivity</code>.</dd>
|
||
13 years ago
|
</dl>
|
||
|
|
||
|
<h3>Sample Applications</h3>
|
||
|
<dl id="sample-apps">
|
||
|
<dt class="normal">(loading)</dt>
|
||
|
</dl>
|
||
|
|
||
12 years ago
|
<h3>Third-Party Tools</h3>
|
||
|
<dl id="third-party">
|
||
|
<dt class="normal"><a href="https://github.com/rtyley/roboguice-sherlock">RoboGuice-Sherlock</a> — Roberto Tyley</dt>
|
||
|
<dd class="plugin">Base activities and base fragments which allow for easy use of RoboGuice and ActionBarSherlock together.</dd>
|
||
|
<dt class="normal"><a href="http://jgilfelt.github.com/android-actionbarstylegenerator/">Action Bar Style Generator</a> — Jeff Gilfelt</dt>
|
||
|
<dd class="plugin">Allows you to easily create a simple, attractive and seamless custom action bar style for your Android application. It will generate all necessary nine patch assets plus associated XML drawables and styles which you can copy straight into your project.</dd>
|
||
|
</dl>
|
||
13 years ago
|
</div>
|
||
|
<div class="fourth last">
|
||
|
<h1>Release History</h1>
|
||
|
<dl id="previous-releases">
|
||
|
<dt class="normal">(loading)</dt>
|
||
|
</dl>
|
||
|
<p><a href="https://github.com/JakeWharton/ActionBarSherlock/tags">View all »</a></p>
|
||
|
</div>
|
||
|
</div>
|