summaryrefslogtreecommitdiff
path: root/index.html
blob: be52ceaa70cf53eab34e73c04f5fa7ba840629d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head profile="http://www.w3.org/2005/10/profile">
  <meta charset="utf-8"/>
  <title>Taler Demonstration Framework</title>
  <link rel="stylesheet" type="text/css" href="static/web-common/style.css" />
  <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"] {
    pointer-events: none;
    color: grey;
    }

    .taler-installed {
      display: none;
    }
    .taler-not-installed {
      display: none;
    }

    .bluebox {
      background-color: #C2C6FF;
      border: solid;
      border-radius: 5px;
      padding: 0.5em;
    }
    .greenbox {
      background-color: #5EFF64;
      border: solid;
      border-radius: 5px;
      padding: 0.5em;
    }
    .graybox {
      background-color: #DDDDDD;
      border: solid;
      border-radius: 5px;
      padding: 0.5em;
    }
  </style>
</head>

<body>

  <header>
    <a href="/" id="logo">
      <img src="static/web-common/logo-2015-medium.png" width="100" height="100" alt="Logo">
    </a>
    <!--#include virtual="static/web-common/dropdown-navbar.html"-->
    <h1 class="nav">Taler Demo</h1>
  </header>

  <aside class="sidebar" id="left">
  </aside>

  <section id="main">
    <article>
      <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">
        You don't have a wallet installed yet.
      </p>
      <p class="greenbox taler-installed">
        Congratulations, you have installed the Taler wallet correctly.
        You can now proceed with the next steps.
      </p>
    </article>

    <article>
      <h2>Step 2: Withdraw coins</h2>
      <p>

        Now you can withdraw coins into your wallet by going to our <a href="/bank">bank</a>.

        In this demo you're paying with KUDOS, an imaginary currency.  When you
        create an account at our bank, you'll get 100 KUDOS for free.
      </p>
      <p class="graybox">
        We can't check if you were able to complete this step, since websites
        can't see the balance in your wallet.  Please click on the Taler icon
        in your browser to check your balance.
      </p>
    </article>

    <article>
      <h2>Step 3: Pay</sup></h2>
        We have two demo merchants where you can spend your coins:
        <ul>
          <li>
            The <a href="/shop">project donation Web site</a>, where
            you can show respect to a software project of your choice
            by giving them KUDOS.
          </li>
          <li>
            The <a href="/blog">essay store</a>, where you can pay KUDOS for
            individual chapters of Richard Stallman's book "Free Software, Free
            Society", which is also available for free at <a href="http://www.fsf.org/">the FSF</a>.
          </li>
        </ul>
    </article>
    <article>
      <h2>Step 4: Back office</sup></h2>
        Finally, you can take the perspective of the merchant, who just
        sold articles using taler.
        <ul>
          <li>
            The <a href="/block/track">back office Web site</a>
            allows you to track the transactions of the merchant.
          </li>
          <li>
            The <a href="/bank/public-accounts">public accounts page</a> at the bank
            allow you to observe transactions of certain bank accounts, including
            those of the shops, from the perspective of the bank.
          </li>
        </ul>
    </article>
    <article>
      <h2>Step 5: Reach out to us</sup></h2>
      Let us know what you think by <a href="mailto:demo-feedback@taler.net">contacting us</a>.
    </article>
  </section>
  <div class="copyright">
    <p>Copyright &copy; 2014&mdash;2016 INRIA</p>
    <a href="/javascript" data-jslicense="1" class="jslicenseinfo">JavaScript license information</a>
  </div>
</body>
</html>