-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
102 lines (91 loc) · 2.97 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
<head>
<title>Token Snap!</title>
<link rel="icon" type="image/svg" href="./images/icon.svg" />
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div class="nav">
<input type="checkbox" id="nav-check" />
<div class="nav-header">
<div class="nav-title">
<img
src="https://res.cloudinary.com/ddunuksxx/image/upload/v1668628887/snap_jzwul3.png"
width="60px"
height="60px"
/>
</div>
</div>
<div class="nav-links">
<button class="connect">Connect</button>
</div>
</div>
<div class="main">
<h1>Token Snap</h1>
<h2>Get the price and check the compliance of a token with just a click 😉</h2>
<summary>Instructions</summary>
<ul>
<li>First, click <strong>"Connect"</strong> button, to connect your metamask flask!</li>
<li>Please note that:</li>
<ul>
<li>
You must have the metamask flask extension installed on your browser
</li>
<li>
Enter two different token address, and press the <strong>"Submit"</strong> button to check for the
price for the token pair
</li>
<li>
Click on the <strong>"Identify"</strong> button to check if a token is either an ERC20, ERC721, or
ERC1155 token.
</li>
</ul>
</ul>
<br />
<div class="grid-container">
<div class="input-area">
<form id="form">
<label for="lookup-tkn1">Token Adresss 1</label>
<input
type="text"
id="lookup-tkn1"
name="lookup-tkn1"
placeholder="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
value="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
/>
<label for="lookup-tkn2">Token Address 2</label>
<input
type="text"
id="lookup-tkn2"
name="lookup-tkn2"
placeholder="0xF9A2D7E60a3297E513317AD1d7Ce101CC4C6C8F6"
value="0xF9A2D7E60a3297E513317AD1d7Ce101CC4C6C8F6"
/>
<span id="lookup-price"></span>
</form>
<div class="button-area">
<button class="lookupPrice">Submit</button>
</div>
</div>
<div class="input-area">
<form id="form">
<label for="check-tkn">Token Adresss</label>
<input
type="text"
id="check-tkn"
name="check-tkn"
placeholder="0xdAC17F958D2ee523a2206206994597C13D831ec7"
value="0xdAC17F958D2ee523a2206206994597C13D831ec7"
/>
</form>
<span id="token-identity"></span>
<div class="button-area">
<button class="identifyToken">Identify</button>
</div>
</div>
</div>
</div>
</body>
<script src="index.js"></script>
</html>