summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-01-30 00:14:29 +0100
committerrstular <rok@stular.eu>2020-01-30 00:14:29 +0100
commite32fb47304ab8b4aa21f11ec42f454077276dfcc (patch)
treefcea563568b2f654c629580b7e8f879465109df1
parentTemporary inclusion/exclusion option, fixed zoom (diff)
downloadbeziapp-e32fb47304ab8b4aa21f11ec42f454077276dfcc.tar
beziapp-e32fb47304ab8b4aa21f11ec42f454077276dfcc.tar.gz
beziapp-e32fb47304ab8b4aa21f11ec42f454077276dfcc.tar.bz2
beziapp-e32fb47304ab8b4aa21f11ec42f454077276dfcc.tar.lz
beziapp-e32fb47304ab8b4aa21f11ec42f454077276dfcc.tar.xz
beziapp-e32fb47304ab8b4aa21f11ec42f454077276dfcc.tar.zst
beziapp-e32fb47304ab8b4aa21f11ec42f454077276dfcc.zip
-rw-r--r--js/changelog.js24
-rw-r--r--pages/changelog.html64
2 files changed, 88 insertions, 0 deletions
diff --git a/js/changelog.js b/js/changelog.js
new file mode 100644
index 0000000..9fb9a84
--- /dev/null
+++ b/js/changelog.js
@@ -0,0 +1,24 @@
+async function checkLogin() {
+ localforage.getItem("logged_in").then(function (value) {
+ // This code runs once the value has been loaded
+ // from the offline store.
+ if (value !== true) {
+ window.location.replace("/index.html");
+ }
+ }).catch(function (err) {
+ // This code runs if there were any errors
+ console.log(err);
+ });
+}
+
+document.addEventListener("DOMContentLoaded", () => {
+ checkLogin();
+
+ // Setup back button
+ $("#nav-back-button").click(function () {
+ window.location.replace("/pages/about.html");
+ });
+
+ var elems = document.querySelectorAll(".collapsible");
+ var instances = M.Collapsible.init(elems, {});
+}); \ No newline at end of file
diff --git a/pages/changelog.html b/pages/changelog.html
new file mode 100644
index 0000000..ad0b737
--- /dev/null
+++ b/pages/changelog.html
@@ -0,0 +1,64 @@
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>Changelog</title>
+
+ <!-- Materialize -->
+ <link type="text/css" href="/css/materialize.min.css" rel="stylesheet">
+ <link href="/css/materialicons.css" rel="stylesheet">
+ <link href="/css/fontawesome.min.css" rel="stylesheet">
+ <script type="text/javascript" src="/js/lib/materialize.min.js"></script>
+
+ <script src="/js/lib/jquery.min.js"></script>
+ <script type="text/javascript" src="/js/lib/localforage.min.js"></script>
+
+ <link type="text/css" href="/css/styles.css" rel="stylesheet">
+ <script type="text/javascript" src="/js/changelog.js"></script>
+
+ <link rel="manifest" href="/manifest.json">
+ <script src="/js/app.js"></script>
+ <link rel="shortcut icon" type="image/png" href="/favicon.png" />
+
+ <!-- iOS support -->
+ <link rel="apple-touch-icon" href="/img/icons/icon_96.png">
+ <link rel="apple-touch-icon" href="/img/icons/icon_512.png">
+ <meta name="apple-mobile-web-app-status-bar" content="#004d32">
+</head>
+
+<body>
+ <nav class="z-depth-0" id="navigation-main">
+ <div class="nav-wrapper container">
+ <b>Beži</b><span>App</span>
+ <span class="right white-text" id="nav-back-button">
+ <i class="material-icons">arrow_back</i>
+ </span>
+ </div>
+ <div id="loading-bar" class="progress hidden">
+ <div class="indeterminate"></div>
+ </div>
+ </nav>
+
+ <div class="container">
+ <div class="row">
+ <h3>Changelog</h3>
+ <ul class="collapsible">
+ <li>
+ <div class="collapsible-header">Version 1.0.4-beta</div>
+ <div class="collapsible-body">
+ <ul class="collection">
+ <li class="collection-item">Introduced the changelog</li>
+ <li class="collection-item">Option for including/excluding temporary grades in average
+ calculation (credit: Tinkara)</li>
+ </ul>
+ </div>
+ </li>
+ </ul>
+ </div>
+ </div>
+
+</body>
+
+</html> \ No newline at end of file