Update index.html
Browse files- index.html +8 -2
index.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<html lang="vi">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
-
<title>Solana IDM Demo</title>
|
| 6 |
<style>
|
| 7 |
body { font-family: sans-serif; padding: 20px; max-width: 500px; margin: auto; }
|
| 8 |
input, textarea, button { width: 100%; margin-top: 10px; padding: 10px; font-size: 16px; }
|
|
@@ -21,6 +21,13 @@
|
|
| 21 |
|
| 22 |
<div id="result" style="margin-top: 15px;"></div>
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
<script src="https://cdn.jsdelivr.net/npm/@solana/web3.js@1.77.2/lib/index.iife.min.js"></script>
|
| 25 |
<script>
|
| 26 |
let provider = null;
|
|
@@ -91,4 +98,3 @@
|
|
| 91 |
</script>
|
| 92 |
</body>
|
| 93 |
</html>
|
| 94 |
-
|
|
|
|
| 2 |
<html lang="vi">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
+
<title>Solana IDM Demo (Fixed Buffer)</title>
|
| 6 |
<style>
|
| 7 |
body { font-family: sans-serif; padding: 20px; max-width: 500px; margin: auto; }
|
| 8 |
input, textarea, button { width: 100%; margin-top: 10px; padding: 10px; font-size: 16px; }
|
|
|
|
| 21 |
|
| 22 |
<div id="result" style="margin-top: 15px;"></div>
|
| 23 |
|
| 24 |
+
<!-- Buffer shim để fix lỗi Buffer is not defined -->
|
| 25 |
+
<script src="https://cdn.jsdelivr.net/npm/buffer@6.0.3/index.min.js"></script>
|
| 26 |
+
<script>
|
| 27 |
+
window.Buffer = buffer.Buffer;
|
| 28 |
+
</script>
|
| 29 |
+
|
| 30 |
+
<!-- Thư viện Solana Web3 -->
|
| 31 |
<script src="https://cdn.jsdelivr.net/npm/@solana/web3.js@1.77.2/lib/index.iife.min.js"></script>
|
| 32 |
<script>
|
| 33 |
let provider = null;
|
|
|
|
| 98 |
</script>
|
| 99 |
</body>
|
| 100 |
</html>
|
|
|