aboutsummaryrefslogtreecommitdiff
path: root/playground/animation.html
blob: eec913c6548e50786b978c57fb19e7ce656a3107 (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
<!doctype html>
<html>
  <head>
    <title>Spinner playground</title>
    <script src="../lib/vendor/system-csp-production.src.js"></script>
  </head>
  <html>
    <div style="display: none;">
      <img src="../img/icon.png" id="taler-logo" style="display:hidden;">
    </div>
    <br />
    <div id="container"></div>
    <script>
      "use strict";

      System.config({
                      defaultJSExtensions: true,
                    });

      System.import("../lib/wallet/chromeBadge")
            .then((badge) => {
              let b = new badge.ChromeBadge(window);
              window.badge = b;
              document.getElementById("container").appendChild(b.canvas);
            })
            .catch((e) => {
              console.error(e.stack);
            });
    </script>
    <br />
    <button onclick="badge.startBusy()">start</button>
    <button onclick="badge.stopBusy()">stop</button>
  </html>
</html>