Adjust version names to reality
This commit is contained in:
parent
7932d564b2
commit
8fb508b221
3 changed files with 14 additions and 14 deletions
8
app.css
8
app.css
|
@ -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
4
app.js
|
@ -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;
|
||||
|
|
16
index.html
16
index.html
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue