aboutsummaryrefslogtreecommitdiff
path: root/wallet.html.j2
diff options
context:
space:
mode:
Diffstat (limited to 'wallet.html.j2')
-rw-r--r--wallet.html.j2194
1 files changed, 0 insertions, 194 deletions
diff --git a/wallet.html.j2 b/wallet.html.j2
deleted file mode 100644
index 667e570d..00000000
--- a/wallet.html.j2
+++ /dev/null
@@ -1,194 +0,0 @@
1{% extends "common/base.j2" %}
2
3{% block head_content %}
4<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc" />
5<script src="web-common/taler-wallet-lib.js" type="text/javascript"></script>
6
7<script type="application/javascript">
8/*
9 @licstart The following is the entire license notice for the
10 JavaScript code in this page.
11
12 Copyright (C) 2015 GNUnet e.V.
13
14 The JavaScript code in this page is free software: you can
15 redistribute it and/or modify it under the terms of the GNU
16 Lesser General Public License (GNU LGPL) as published by the Free Software
17 Foundation, either version 2.1 of the License, or (at your option)
18 any later version. The code is distributed WITHOUT ANY WARRANTY;
19 without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the GNU LGPL for more details.
21
22 As additional permission under GNU LGPL version 2.1 section 7, you
23 may distribute non-source (e.g., minimized or compacted) forms of
24 that code without the copy of the GNU LGPL normally required by
25 section 4, provided you include this license notice and a URL
26 through which recipients can access the Corresponding Source.
27
28 @licend The above is the entire license notice
29 for the JavaScript code in this page.
30*/
31
32var chrome_min_version = '51';
33
34function onSuccess() {
35 console.log("installation successful");
36 document.getElementById("install-result").appendChild(document.createTextNode("Installation was successful."));
37}
38
39function onFailure(detail) {
40 console.error("installation failed:", detail);
41 document.getElementById("install-result").appendChild(document.createTextNode("Installation failed: " + detail));
42}
43
44function installWallet() {
45 if (window.chrome) {
46 chrome.webstore.install("https://chrome.google.com/webstore/detail/millncjiddlpgdmkklmhfadpacifaonc", onSuccess, onFailure);
47 } else {
48 onFailure("Google Chrome or Chromium is required for installation.");
49 }
50}
51
52try {
53 taler.onPresent(function () {
54 document.getElementById("box-present").style.display = "inherit";
55 document.getElementById("box-not-present").style.display = "none";
56 });
57 taler.onAbsent(function () {
58 document.getElementById("box-present").style.display = "none";
59 document.getElementById("box-not-present").style.display = "inherit";
60 });
61} catch (err) {}
62
63function onLoad() {
64 if (typeof window.chrome != "object") {
65 document.getElementById("error-chrome").style.display = "inherit";
66 } else {
67 var m = navigator.userAgent.match(/Chrome\/([0-9.]+)/);
68 if (null == m || m[1] < chrome_min_version) {
69 document.getElementById('chrome-min-version').appendChild(document.createTextNode(chrome_min_version));
70 document.getElementById('error-chrome-version').style.display = "inherit";
71 }
72 }
73}
74
75document.addEventListener('DOMContentLoaded', onLoad);
76</script>
77
78<style type="text/css">
79 .greenbox {
80 background-color: #5EFF64;
81 border: solid;
82 border-radius: 5px;
83 padding: 0.5em;
84 }
85 .bluebox {
86 background-color: #C2C6FF;
87 border: solid;
88 border-radius: 5px;
89 padding: 0.5em;
90 }
91 .error {
92 font-style: italic;
93 display: none;
94 }
95 #install-result {
96 font-weight: bold;
97 }
98
99 main ul li {
100 margin-bottom: 1em;
101 }
102</style>
103{% endblock head_content %}
104
105{% block body_content %}
106 <!-- Jumbotron -->
107 <div class="jumbotron">
108 <div class="text-center">
109 <h1 lang="en">Taler Wallet</h1>
110 </div>
111 </div>
112
113 <div class="container">
114
115 <div class="row">
116 <div class="col-lg-12">
117 <p class="greenbox" id="box-present" style="display:none">
118 Congratulations, you have installed the Taler wallet.
119 Check out the <a href="https://demo.taler.net/">demo</a>.
120 </p>
121 <p class="bluebox" id="box-not-present" style="display:none">
122 You don't have a wallet installed yet.
123 </p>
124 </div> <!-- /col-lg-12 -->
125 </div> <!-- /row -->
126
127 <div class="row">
128 <div class="col-lg-12">
129 Install the wallet for your browser below, then check out the
130 <a href="https://demo.taler.net">demonstration</a>.
131 </div>
132 </div> <!-- /row -->
133
134 <div class="row">
135 <div class="col-lg-6">
136 <h2><a href="https://chrome.google.com/webstore/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc">Google Chrome / Chromium 51+</a></h2>
137
138 <p id="error-chrome" class="error">
139 <a href="https://www.google.com/chrome">Google Chrome</a> or <a href="https://www.chromium.org/">Chromium</a>
140 is required, but it appears you don't have it installed.
141 </p>
142 <p id="error-chrome-version" class="error">
143 <a href="https://www.google.com/chrome">Google Chrome</a> or <a href="https://www.chromium.org/">Chromium</a>
144 version <span id="chrome-min-version"></span> or newer is required, but it appears you have an older version.</p>
145 <div id="inline-install-chrome">
146 <button onclick="installWallet()" id="install-button">
147 Install wallet
148 </button>
149 <noscript>
150 <em style="color:darkred;">JavaScript is disabled, installation won't work.</em>
151 </noscript>
152 <div id="install-result"></div>
153 </div>
154 </div> <!-- /col-lg-6 -->
155
156 <div class="col-lg-6">
157 <h2><a href="https://addons.mozilla.org/en-US/firefox/addon/taler-wallet/">Mozilla Firefox 57+</a></h2>
158<!--
159 <h3>Firefox Beta</h3>
160 <ol>
161 <li><a href="/releases/taler-wallet/taler-wallet-stable.xpi">Download the wallet</a> (right click, Save Link As...)</li>
162 <li>On the <code>about:debugging</code> page, "Load temporary extension"</li>
163 </ol>
164
165 <h3>Firefox Developer Edition</h3>
166 <p>Either from the <code>about:debugging</code> page like above, or:</p>
167 <ol>
168 <li>On the <code>about:config</code> page set <code>xpinstall.signatures.required</code> to <code>false</code></li>
169 <li><a href="/releases/taler-wallet/taler-wallet-stable.xpi">Install the wallet</a></li>
170 </ol>
171-->
172 </div> <!-- /col-lg-6 -->
173
174 <div class="col-lg-6">
175 <h2>Opera 36+</h2>
176
177 <ol>
178 <li><a href="https://addons.opera.com/en/extensions/details/download-chrome-extension-9/">Install Download Chrome Extension</a></li>
179 <li><a href="https://chrome.google.com/webstore/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc">Install GNU Taler</a> from the Chrome Web Store</li>
180 </ol>
181 </div> <!-- /col-lg-6 -->
182
183 </div> <!-- /row -->
184
185 <div class="row">
186
187 <div class="col-lg-6">
188 <h2>Other browsers</h2>
189 <p>Wallets for other browsers will be provided in the near future.</p>
190 </div> <!-- /col-lg-6 -->
191
192 </div> <!-- /row -->
193 </div> <!-- /container -->
194{% endblock body_content %}