diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-21 14:11:53 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-21 14:12:07 +0100 |
commit | 412f4880d4705d1deaeee17984efb5f76909df58 (patch) | |
tree | d4c2547a1571f240cbb809b08a296d1140341e18 | |
parent | 1aecb5fbff230ed0f6b55c72f673f3834cdfefae (diff) | |
download | landing-412f4880d4705d1deaeee17984efb5f76909df58.tar.gz landing-412f4880d4705d1deaeee17984efb5f76909df58.tar.bz2 landing-412f4880d4705d1deaeee17984efb5f76909df58.zip |
do not use js for presence
-rw-r--r-- | index.html | 63 | ||||
m--------- | static/web-common | 0 |
2 files changed, 3 insertions, 60 deletions
@@ -4,58 +4,8 @@ <meta charset="utf-8"/> <title>Taler Demonstration Framework</title> <link rel="stylesheet" type="text/css" href="static/web-common/style.css" /> + <link rel="stylesheet" type="text/css" href="static/web-common/taler-fallback.css" id="taler-presence-stylesheet" /> <link rel="icon" type="image/png" href="static/web-common/favicon-taler.ico" /> - <script src="static/web-common/taler-wallet-lib.js"></script> - <script> - /* - @licstart The following is the entire license notice for the - JavaScript code in this page. - - Copyright (C) 2014, 2015, 2016 GNUnet e.V. - - The JavaScript code in this page is free software: you can - redistribute it and/or modify it under the terms of the GNU - General Public License (GNU GPL) as published by the Free Software - Foundation, either version 3 of the License, or (at your option) - any later version. The code is distributed WITHOUT ANY WARRANTY; - without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU GPL for more details. - - As additional permission under GNU GPL version 3 section 7, you - may distribute non-source (e.g., minimized or compacted) forms of - that code without the copy of the GNU GPL normally required by - section 4, provided you include this license notice and a URL - through which recipients can access the Corresponding Source. - - @licend The above is the entire license notice - for the JavaScript code in this page. - */ - - function handlePresent() { - console.log("handling onPresent event"); - var xs = document.querySelectorAll(".taler-not-installed"); - for (var i = 0; i < xs.length; i++) { - xs[i].style.display = "none"; - } - var xs = document.querySelectorAll(".taler-installed"); - for (var i = 0; i < xs.length; i++) { - xs[i].style.display = "inherit"; - } - } - function handleAbsent() { - console.log("handling onAbsent event"); - var xs = document.querySelectorAll(".taler-not-installed"); - for (var i = 0; i < xs.length; i++) { - xs[i].style.display = "inherit"; - } - var xs = document.querySelectorAll(".taler-installed"); - for (var i = 0; i < xs.length; i++) { - xs[i].style.display = "none"; - } - } - taler.onPresent(handlePresent); - taler.onAbsent(handleAbsent); - </script> <style type="text/css"> a[disabled="true"] { @@ -63,13 +13,6 @@ color: grey; } - .taler-installed { - display: none; - } - .taler-not-installed { - display: none; - } - .bluebox { background-color: #C2C6FF; border: solid; @@ -109,10 +52,10 @@ <h2>Step 1: Install the Taler wallet</h2> Install the wallet from the <a href="https://taler.net/wallet-installation.html">installation page</a>. It only takes one click. - <p class="bluebox taler-not-installed"> + <p class="bluebox taler-installed-hide"> You don't have a wallet installed yet. </p> - <p class="greenbox taler-installed"> + <p class="greenbox taler-installed-show"> Congratulations, you have installed the Taler wallet correctly. You can now proceed with the next steps. </p> diff --git a/static/web-common b/static/web-common -Subproject 8be473306bb2341c631253d7b18f96f309d5d8c +Subproject afe6788f89eb0c5e6148e07d63f5928475cdef1 |