2017-09-16 12:01:34 +02:00
|
|
|
<!DOCTYPE html>
|
2017-12-27 23:45:01 +01:00
|
|
|
<html lang="pl">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
2017-12-27 23:55:49 +01:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico?v=1">
|
2018-05-04 11:51:59 +02:00
|
|
|
<title>Aplikacja mobilna Androidowy klient dziennika VULCAN UONET+</title>
|
2018-05-04 11:26:16 +02:00
|
|
|
<link rel="stylesheet" href="app.css">
|
2017-12-29 19:14:32 +01:00
|
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-99646499-3"></script>
|
|
|
|
<script>
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
function gtag(){dataLayer.push(arguments);}
|
|
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'UA-99646499-3');
|
|
|
|
</script>
|
2017-12-27 23:45:01 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<section class="wrapper">
|
|
|
|
<header id="header" class="header">
|
|
|
|
<h1 class="header__title">Wulkanowy</h1>
|
|
|
|
</header>
|
|
|
|
<main id="main" class="main">
|
|
|
|
<a
|
2018-05-02 19:47:36 +02:00
|
|
|
id="beta-button"
|
|
|
|
title="Pobierz wersję beta"
|
|
|
|
href="https://github.com/wulkanowy/wulkanowy/releases"
|
|
|
|
class="button button--beta"
|
|
|
|
>Pobierz wersję beta<br>
|
|
|
|
<span id="beta-version">0.0.0</span>
|
|
|
|
</a>
|
|
|
|
<a
|
2018-05-02 19:48:23 +02:00
|
|
|
id="alfa-button"
|
2018-05-02 19:47:36 +02:00
|
|
|
title="Pobierz wersję nightly"
|
2018-03-26 23:38:32 +02:00
|
|
|
href="https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk"
|
2018-05-02 19:47:36 +02:00
|
|
|
class="button button--nightly"
|
|
|
|
>Pobierz wersję nightly<br>
|
|
|
|
<span id="alfa-version">000</span>
|
|
|
|
</a>
|
|
|
|
|
2017-12-27 23:45:01 +01:00
|
|
|
</main>
|
|
|
|
<footer id="footer" class="footer">
|
|
|
|
<a
|
|
|
|
title="Zobacz repozytorium na Githubie"
|
|
|
|
href="https://github.com/wulkanowy/wulkanowy"
|
|
|
|
class="github">
|
|
|
|
<img src="./github.svg" alt="Zobacz repozytorium na Githubie">
|
|
|
|
</a>
|
|
|
|
</footer>
|
|
|
|
</section>
|
2018-05-02 19:47:36 +02:00
|
|
|
<script>
|
2018-05-04 11:24:36 +02:00
|
|
|
var disableClick = function(e) {e.preventDefault()};
|
2018-05-02 19:47:36 +02:00
|
|
|
|
2018-05-04 11:24:36 +02:00
|
|
|
var betaButton = document.querySelector("#beta-button");
|
2018-05-02 19:47:36 +02:00
|
|
|
betaButton.addEventListener("click", disableClick);
|
2018-05-04 11:51:59 +02:00
|
|
|
var betaVersion = document.querySelector("#beta-version");
|
|
|
|
betaVersion.innerHTML = "Ładowanie…";
|
2018-05-04 11:24:36 +02:00
|
|
|
|
|
|
|
var betaRes = new XMLHttpRequest();
|
|
|
|
betaRes.open('GET', 'https://api.github.com/repos/wulkanowy/wulkanowy/releases/latest', true);
|
2018-05-04 11:42:01 +02:00
|
|
|
betaRes.onloadend = function () {
|
2018-05-04 11:24:36 +02:00
|
|
|
if(betaRes.status === 200) {
|
|
|
|
var json = JSON.parse(betaRes.responseText);
|
2018-05-02 19:47:36 +02:00
|
|
|
betaButton.href = json.assets[0].browser_download_url;
|
2018-05-04 11:51:59 +02:00
|
|
|
betaVersion.innerHTML = json.name;
|
2018-05-04 11:24:36 +02:00
|
|
|
} else {
|
|
|
|
console.log("Błąd podczas ładowania strony\n");
|
|
|
|
}
|
|
|
|
betaButton.removeEventListener("click", disableClick);
|
|
|
|
};
|
|
|
|
betaRes.send(null);
|
2018-05-02 19:47:36 +02:00
|
|
|
|
2018-05-04 11:24:36 +02:00
|
|
|
var alfaButton = document.querySelector("#alfa-button");
|
2018-05-02 19:47:36 +02:00
|
|
|
alfaButton.addEventListener("click", disableClick);
|
2018-05-04 11:51:59 +02:00
|
|
|
var alfaVersion = document.querySelector("#alfa-version");
|
|
|
|
alfaVersion.innerHTML = "Ładowanie…";
|
2018-05-04 11:24:36 +02:00
|
|
|
|
|
|
|
var alfaRes = new XMLHttpRequest();
|
|
|
|
alfaRes.open('GET', 'https://bitrise-redirector.herokuapp.com/v0.1/apps/daeff1893f3c8128/builds/master/artifacts/app-debug-bitrise-signed.apk/info', true);
|
2018-05-04 11:42:01 +02:00
|
|
|
alfaRes.onloadend = function () {
|
2018-05-04 11:24:36 +02:00
|
|
|
if(alfaRes.status === 200) {
|
|
|
|
var json = JSON.parse(alfaRes.responseText);
|
2018-05-04 11:35:00 +02:00
|
|
|
alfaButton.href = json.url;
|
2018-05-04 11:51:59 +02:00
|
|
|
alfaVersion.innerHTML = json.latestVersionCode;
|
2018-05-04 11:24:36 +02:00
|
|
|
} else {
|
2018-05-04 11:51:59 +02:00
|
|
|
alfaVersion.innerHTML = 'wersja nieznana';
|
2018-05-04 11:24:36 +02:00
|
|
|
console.log("Błąd podczas ładowania strony\n");
|
|
|
|
}
|
|
|
|
alfaButton.removeEventListener("click", disableClick);
|
|
|
|
};
|
|
|
|
alfaRes.send(null);
|
2018-05-02 19:47:36 +02:00
|
|
|
</script>
|
2017-12-27 23:45:01 +01:00
|
|
|
</body>
|
|
|
|
</html>
|