wallet-core/playground/animation.html

35 lines
924 B
HTML
Raw Normal View History

2016-09-23 23:29:54 +02:00
<!doctype html>
<html>
<head>
<title>Spinner playground</title>
2016-11-16 10:23:42 +01:00
<script src="/src/vendor/system-csp-production.src.js"></script>
2016-09-23 23:29:54 +02:00
</head>
<html>
<div style="display: none;">
2016-11-16 10:23:42 +01:00
<img src="/img/icon.png" id="taler-logo" style="display:hidden;">
2016-09-23 23:29:54 +02:00
</div>
<br />
<div id="container"></div>
<script>
"use strict";
System.config({
defaultJSExtensions: true,
});
2016-11-16 10:23:42 +01:00
System.import("/src/chromeBadge")
2016-09-23 23:29:54 +02:00
.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>