-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathindex.html
48 lines (47 loc) · 1.67 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
46
47
48
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<link rel = "stylesheet" href = "style.css">
</head>
<body>
<div class="container">
<h1 class="title">
<a target="_blank" href="https://web3auth.io/docs/sdk/pnp/web/modal">Web3Auth</a> & JS Ethereum
Example
</h1>
<!-- Logged In -->
<div class="grid btn-logged-in">
<button id="get-user-info" class="btn">Get User Info</button>
<button id="get-accounts" class="btn">Get Accounts</button>
<button id="get-balance" class="btn">Get Balance</button>
<button id="sign-message" class="btn">Sign Message</button>
<button id="logout" class="btn">Logout</button>
</div>
<div class="console" id="console">
<p id="code" class="code"></p>
</div>
<!-- Logged Logout -->
<div class="grid btn-logged-out">
<button id="login" class="btn">Login</button>
</div>
<footer class="footer">
<a
href="https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-modal-sdk/quick-starts/vanillajs-modal-quick-start"
target="_blank"
rel="noopener noreferrer"
>
Source code
</a>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/buffer@6"></script>
<!--IMP START - Quick Start-->
<script src="https://cdn.jsdelivr.net/npm/@web3auth/single-factor-auth"></script>
<script src="https://cdn.jsdelivr.net/npm/@web3auth/ethereum-provider"></script>
<!--IMP END - Quick Start-->
<script src="https://cdn.jsdelivr.net/npm/web3@4.1.1/dist/web3.min.js"></script>
<script type = "module" src = "./script.js"></script>
</body>
</html>