-
Notifications
You must be signed in to change notification settings - Fork 0
/
metamask.html
226 lines (206 loc) · 11.4 KB
/
metamask.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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
<title>Gemera - Metamask</title>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="emera final logo 2.png">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,300italic,400italic,500italic,700,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Noto+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!-- Global CSS -->
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
<!-- Plugins CSS -->
<link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- Theme CSS -->
<link id="theme-style" rel="stylesheet" href="assets/css/styles.css">
</head>
<body class="meta-main-app">
<!-- ******HEADER****** -->
<header id="header" class="header">
<div id="backwarning" class="container">
<h1 class="logo">
<a href="index.html"><img src="assets/images/gemera.png" alt=""><span class="text"></span></a>
</h1><!--//logo-->
<nav class="main-nav navbar-right" role="navigation">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button><!--//nav-toggle-->
</div><!--//navbar-header-->
<div id="navbar-collapse" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="nav-item"><a href="index.html">Home</a></li>
<li class="nav-item"><a href="https://market.gemera.io/">Marketplace</a></li>
<li class="nav-item"><a href="blog.html">blog</a></li>
<li class="nav-item"><a href="faq.html">FAQ</a></li>
<!-- <li class="nav-item"><a href="pricing.html">Pricing</a></li> -->
<li class="nav-item dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="0" data-close-others="false" href="#">More <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu">
<li><a href="about.html" target="_blank">Meet the team</a></li>
<li><a href="documents.html" target="_blank">Documents</a></li>
<li><a href="contact.html" target="_blank">Contact</a></li>
</ul>
</li><!--//dropdown-->
<!--<li class="nav-item"><a href="#" class="login-trigger" data-toggle="modal" data-target="#login-modal">Log in</a></li>-->
<!--<li class="nav-item nav-item-cta last"><a class="btn-signup" href="#" data-toggle="modal" data-target="#signup-modal">Sign Up</a></li>-->
</ul><!--//nav-->
</div><!--//navabr-collapse-->
</nav><!--//main-nav-->
</div><!--//container-->
</header><!--//header-->
<section id="metasmask-section" class="metamask-section">
<div class="meta-main" id="meta-main">
<div class="row">
<div class="info">
<h2 class="meta-head is-white"><strong>GEMERA Metamask buy interface </strong></h2>
<div class="meta-text" id="meta-text">
<div class="job-details is-white">
<p>These interface is for use with Metamask, to install metamask add plugin from the chrome web store. </p>
</div></div>
<div class="form-group col-xs-8">
<form class="form-inline">
<div class="form-group is-white">
<label for="inputdefault">Buy Gemeras</label>
</div>
<div class="form-group mx-sm-3">
<div class="tip-button"></div>
<input type="text" class="form-control" id="amount" placeholder="amount">
</div>
<button onclick="send()" type="submit" class="btn btn-primary">Buy</button>
</form>
<!-- <hr>
<div class="form-group col-xs-6">
<div class="form-group col-xs-12">
<label for="inputdefault">Transfer tokens to</label>
<div class="form-group mx-sm-3">
<input type="text" class="form-control" id="inputEmail3" placeholder="Enter the adress to transfer tokens"></div>
</div>
<div class="form-group">
<label for="inputdefault">Amount tokens</label>
<div class="form-group mx-sm-3">
<input type="text" class="form-control" id="inputPassword3" placeholder="Enter the amount of tokens to transfer">
<button type="submit" class="btn btn-transfer">Tranfer</button></div>
</div>
</div>
</form>
</div>
<form class="buy-tokens">
<div class="form-group col-xs-6">
<input class="form-control" id="input-token" type="text" placeholder="Buy Tokens">
<label for="inputdefault">Transfer tokens to</label>
<input class="form-control" id="input-adress" type="text" placeholder="Enter the adress to transfer tokens">
<label for="inputdefault">Amount tokens</label>
<input class="form-control" id="input-amount" type="text" placeholder="Enter the amount of tokens to transfer">
</div>
<div class="button-group col-xs-4">
<button type="button" class="btn btn-success default">Buy</button>
</div>
<div class="button-group col-xs-4">
<button type="button" class="btn btn-success default">Transfer</button>
</div>
</form>-->
</div>
</div>
</div>
</div><!--//job-single-->
</section>
<!-- ******FOOTER****** -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="footer-col col-xs-6 col-md-3">
<div class="footer-col-inner">
<h3 class="col-title">About</h3>
<ul class="footer-menu list-unstyled">
<li><a href="about.html">Company</a></li>
<li><a href="blog.html">Blog</a></li>
<!-- <li><a href="#">Jobs</a> <label class="label label-new">We're hiring</label></li> -->
<li><a href="contact.html">Contact</a></li>
</ul>
</div><!--//footer-col-inner-->
</div><!--//footer-col-->
<div class="footer-col col-xs-6 col-md-3">
<div class="footer-col-inner">
<h3 class="col-title">Product</h3>
<ul class="footer-menu list-unstyled">
<li><a href="https://market.gemera.io/">Marketplace</a></li>
<li><a href="risk-warning.html">Risk Warning</a></li>
<!--<li><a href="#">Support Center</a></li>
<li><a href="#">Pricing</a></li> -->
</ul>
</div>
</div><!--//footer-col-->
<div class="footer-col col-xs-6 col-md-3">
<div class="footer-col-inner">
<h3 class="col-title">Useful Links</h3>
<ul class="footer-menu list-unstyled">
<!-- <li><a href="#">Become our partner</a></li> -->
<li><a href="documents.html">Documents</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</div>
</div><!--//footer-col-->
<div class="footer-col col-xs-6 col-md-3">
<div class="footer-col-inner">
<h3 class="col-title">Legal</h3>
<ul class="footer-menu list-unstyled">
<li><a href="privacy.html">Privacy</a></li>
<li><a href="term-of-services.html">Terms of Services</a></li>
</ul>
</div>
</div><!--//footer-col-->
</div><!--//row-->
<div class="divider"></div>
<div class="footer-bottom text-center">
<ul class="social-media list-inline">
<li><a href="https://twitter.com/GemeraProject" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="https://www.facebook.com/GemeraProject" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<!--<li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>-->
<li><a href="#"><i class="fa fa-github" aria-hidden="true"></i></a></li>
<li><a href="#"><i class="fa fa-vimeo" aria-hidden="true"></i></a></li>
</ul>
</div>
</div><!--//container-->
</footer><!--//footer-->
<!-- Javascript -->
<script type="text/javascript" src="assets/plugins/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/plugins/bootstrap-hover-dropdown.min.js"></script>
<script type="text/javascript" src="assets/plugins/back-to-top.js"></script>
<script type="text/javascript" src="assets/plugins/jquery-scrollTo/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
<!-- Style Switcher (REMOVE ON YOUR PRODUCTION SITE) -->
<script src="assets/js/demo/style-switcher.js"></script>
<script>
// MetaMask injects the web3 library for us.
window.onload = function() {
if (typeof web3 === 'undefined') {
document.getElementById('meta-mask-required').innerHTML = 'You need <a href="https://metamask.io/">MetaMask</a> browser plugin to run this example'
}
}
function send() {
web3.eth.sendTransaction({
from: web3.eth.coinbase,
to: '0xCc68d608D4fBAd7F3A0FaA38e2C81D0B0d4b3c43',
value: web3.toWei(document.getElementById("amount").value, 'ether')
}, function(error, result) {
if (!error) {
document.getElementById('response').innerHTML = 'Success: <a href="https://testnet.etherscan.io/tx/' + result + '"> View Transaction </a>'
} else {
document.getElementById('response').innerHTML = '<pre>' + error + '</pre>'
}
})
}
</script>
</body>
</html>