-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (41 loc) · 1.72 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YoloNode</title>
<base href="/"> <!-- Needed for GitHub Pages deploy with domain name -->
<link rel="stylesheet" href="./static/style.css">
<link rel="icon" type="image/png" href="./static/YoloNode-Logo-cropped-circle-plain.png">
</head>
<body>
<div id="app"></div>
<!-- Wallet Error Modal -->
<div id="wallet-error-modal" class="modal" style="display: none;">
<div class="modal-content">
<p>Wallet not found! Please install
<a href="https://www.keplr.app/" target="_blank" style="color: #03a9f4; text-decoration: underline;">Keplr</a> or
<a href="https://fina.cash/" target="_blank" style="color: #03a9f4; text-decoration: underline;">Fina</a> wallet.
</p>
<button id="close-modal" class="close-modal">Close</button>
</div>
</div>
<!-- Load shade.bundle.js as a standard script -->
<script src="./static/lib/shade.bundle.js"></script>
<script src="./static/wallet.js"></script>
<script src="./static/lib/stride.bundle.js"></script>
<script src="./static/lib/secret.bundle.js"></script>
<!-- JavaScript for modal behavior -->
<script>
document.getElementById("close-modal").addEventListener("click", function() {
document.getElementById("wallet-error-modal").style.display = "none";
});
</script>
<!-- Initialize the Rust WASM module -->
<script type="module">
import init from './dist/pkg/yolonode.js';
init();
</script>
</body>
</html>