-
-
Notifications
You must be signed in to change notification settings - Fork 363
Expand file tree
/
Copy pathindex.html
More file actions
128 lines (123 loc) · 4.2 KB
/
index.html
File metadata and controls
128 lines (123 loc) · 4.2 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<html>
<head>
<meta charset="UTF-8" />
<title>E2E Test Dapp</title>
<link rel="icon" type="image/svg" href="metamask-fox.svg" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.14.1/css/mdb.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="index.css" type="text/css" />
</head>
<body>
<main class="container-fluid">
<header>
<div id="logo-container">
<h1 id="logo-text" class="text-center">
E2E Test Dapp
</h1>
<img id="mm-logo" src="metamask-fox.svg" />
</div>
<div id="dark-mode-toggle-container">
<button id="dark-mode-toggle" class="dark-mode-toggle" type="button" aria-label="Toggle dark mode">
<span class="dark-mode-icon">🌙</span>
<span class="light-mode-icon">☀️</span>
</button>
</div>
</header>
<section>
<h3 class="card-title">
Provider
</h3>
<div id="eip6963Warning" class="row justify-content-center">
<div class="warning-message justify-content-center col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12">
<img
src="warning.svg"
alt=""
class="warning-message-icon
"
/>
<div class="warning-message-text">No EIP-6963 Provider Detected</div>
</div>
</div>
<div class="row" id="eip6963" hidden>
<div class="col-xl-8 col-lg-6 col-md-12 col-sm-12 col-12">
<div class="card eip6963-providers">
<div class="card-body">
<h4 class="card-title">
EIP 6963
</h4>
<div class='row' id="providers">
</div>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12">
<div class="card">
<div class="card-body">
<h4 class="card-title">
Active Provider
</h4>
<p class="info-text alert alert-secondary">
UUID: <span id="activeProviderUUID"></span>
</p>
<p class="info-text alert alert-secondary">
Name: <span id="activeProviderName"></span>
</p>
<p class="info-text alert alert-secondary">
Icon: <span id="activeProviderIcon"></span>
</p>
</div>
</div>
<button
class="btn btn-primary btn-lg btn-block mb-3"
id="useWindowProviderButton"
>
Use window.ethereum
</div>
</section>
<section>
<h3 class="card-title">
Status
</h3>
<div id="warning" class="row justify-content-center error-div">
<div class="error-message justify-content-center col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12">
<img
src="alert-red.svg"
alt=""
class="error-message-icon
"
/>
<div class="error-message-text">You are on the Ethereum Mainnet.</div>
</div>
</div>
<div class="row">
<div class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12">
<p class="info-text alert alert-primary">
Network: <span id="network"></span>
</p>
</div>
<div class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12">
<p class="info-text alert alert-secondary">
ChainId: <span id="chainId"></span>
</p>
</div>
<div class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12">
<p class="info-text alert alert-success">
Accounts: <span id="accounts"></span>
</p>
</div>
</div>
</section>
</main>
<script src="main.js" defer></script>
</body>
</html>