Adjust version names to reality

This commit is contained in:
Mikołaj Pich 2018-06-14 16:53:36 +02:00
parent 7932d564b2
commit 8fb508b221
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
3 changed files with 14 additions and 14 deletions

View file

@ -100,13 +100,13 @@ body {
background: rgb(90, 45, 45);
}
.button--nightly {
.button--dev {
background: #333;
}
.button--nightly:hover,
.button--nightly:focus,
.button--nightly:active {
.button--dev:hover,
.button--dev:focus,
.button--dev:active {
background: #222;
}

4
app.js
View file

@ -19,7 +19,7 @@ var addButtonInfo = function(url, button, version, cb) {
res.send(null);
};
addButtonInfo("https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest", "#alfa-button", "#alfa-version",
addButtonInfo("https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest", "#beta-button", "#beta-version",
function(button, version, res) {
var json = JSON.parse(res.responseText);
button.href = json.assets[0].browser_download_url;
@ -27,7 +27,7 @@ addButtonInfo("https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest"
}
);
addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "#nightly-button", "#nightly-version",
addButtonInfo("https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info", "#dev-button", "#dev-version",
function(button, version, res) {
var json = JSON.parse(res.responseText);
button.href = json.expiring_download_url;

View file

@ -32,16 +32,16 @@
</a>
<section class="section">
<h3 class="section__header">Więcej opcji</h3>
<a class="button button--alfa" id="alfa-button" title="Pobierz wersję alfa" href="https://github.com/wulkanowy/wulkanowy/releases">
Pobierz wersję alfa<br>
<span id="alfa-version">v0.0.0</span>
<a class="button button--beta" id="beta-button" title="Pobierz wersję beta" href="https://github.com/wulkanowy/wulkanowy/releases">
Pobierz wersję beta<br>
<span id="beta-version">v0.0.0</span>
</a>
<a class="button button--nightly"
id="nightly-button"
title="Pobierz wersję nightly"
<a class="button button--dev"
id="dev-button"
title="Pobierz wersję DEV"
href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk">
Pobierz wersję nightly<br>
<span id="nightly-version">v000</span>
Pobierz wersję DEV<br>
<span id="dev-version">Build 0000</span>
</a>
</section>
</main>