wallet-core/packages/taler-wallet-webextension/dev-html/index.html

49 lines
1.1 KiB
HTML
Raw Normal View History

2022-03-25 20:57:27 +01:00
<html>
<head>
<meta charset="utf-8" />
<link rel="manifest" href="./manifest.json" />
</head>
<body>
<script>
function openPopup() {
window.frames["popup"].location = "/popup.html";
}
function openWallet() {
window.frames["wallet"].location = "/wallet.html";
}
function closeWallet() {
window.frames["wallet"].location = "about:blank";
}
</script>
<input type="text" />
<button value="asd" onclick="openPopup()">open popup</button>
<button value="asd" onclick="closeWallet();openWallet()">
reload wallet page
</button>
<hr />
<iframe
id="popup-window"
name="popup"
src="about:blank"
name="popup"
width="500"
height="325"
>
</iframe>
<hr />
<iframe
id="wallet-window"
name="wallet"
src="about:blank"
name="wallet"
width="800"
height="100%"
>
</iframe>
<hr />
<iframe src="/tests.html" name="wallet" width="800" height="100%"> </iframe>
<hr />
<script src="/dist/background.dev.js"></script>
</body>
</html>