-
Notifications
You must be signed in to change notification settings - Fork 0
/
satoshi_calc_CNY.htm
267 lines (253 loc) · 7.54 KB
/
satoshi_calc_CNY.htm
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<html><head>
<!-- Begin Firebase code for Google Analytics -->
<script src="https://www.gstatic.com/firebasejs/5.8.5/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBA1xZ_cNVQxCTEwVDhJJOtlCHRBhNcDeA",
authDomain: "grin-converter.firebaseapp.com",
databaseURL: "https://grin-converter.firebaseio.com",
projectId: "grin-converter",
storageBucket: "grin-converter.appspot.com",
messagingSenderId: "505998847832"
};
firebase.initializeApp(config);
</script>
<!-- End Firebase code for Google Analytics -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<meta content="text/html" http-equiv="content-type">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<title>Grin Converter GRIN-CNY</title>
<style type="text/css">
DIV.ETHannouncement {text-align: center }
</style>
<link rel="icon"
type="image/ico"
href="http://br549.mywebcommunity.org/favicon.ico">
<STYLE>
html {
font-size: medium;
}
body {
background-color: #ffffff;
color: #330;
font-family: verdana, georgia, times, serif;
margin: ;
max-width: 80em;
padding: 0 1em;
width: auto;
font-size: 1rem;
line-height: 1.4;
}
a {
color: #1e6b8c;
font-size: 1em;
text-decoration: none;
transition-delay: 0.1s;
transition-duration: 0.3s;
transition-property: color, background-color;
transition-timing-function: linear;
}
a:visited {
color: #6f32ad;
font-size: 1em;
}
a:hover {
background: #b6cff9;
font-size: 1em;
text-decoration: underline;
}
a:active {
background-color: #427fed;
color: #fffff6;
color: white;
font-size: 1em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #black;
font-weight: bold;
line-height: 1.2;
margin-bottom: 1em;
margin-top: 2em;
}
h1 {
font-size: 2.2em;
text-align: center;
}
h2 {
font-size: 1.8em;
border-bottom: solid 0.1rem #703820;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.3em;
text-decoration: underline;
}
h5 {
font-size: 1.2em;
font-style: italic;
}
h6 {
font-size: 1.1em;
margin-bottom: 0.5rem;
}
pre,
code,
xmp {
font-family: courier;
font-size: 1rem;
line-height: 1.4;
white-space: pre-wrap;
}
input[type=number]{
width: 135px;
}
</STYLE>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head><body>
<big>
<br>
<center>
<div class="w3-container">
<a href="index.html" class="w3-button w3-round-large w3-yellow"> シ Grin Converter </a>
</div>
</center>
<small>Enter a number.<br></small>
<table border="0" cellpadding="0" cellspacing="0" width="">
<form name="BTCunitconverter">
<tbody>
<tr>
<td>
<input type="number" onkeyup="BTCconvert()" value="" name="BTC" size="12"> シ Grin<small></small></td>
</tr>
<tr>
<td>
<input type="number" onkeyup="mBTCconvert()" value="" name="mBTC" width="12"> mGrin - <small>milliGrin</small></td>
</tr>
<tr>
<td>
<input type="number" onkeyup="uBTCconvert()" value="" name="uBTC" size="12"> μGrin - <small>microGrin</small></td>
</tr>
<tr>
<td>
<input type="number" onkeyup="satoshiconvert()" value="" name="satoshi" size="12"> Igno - <small>nanoGrin</small></td>
</tr>
<tr>
<td><input type="number" onkeyup="LiveConvert()" value="$" name="LiveConvert" size="12"> ≈ CNY <small>at pageload</small></td>
</tr>
</tbody></form></table>
<p align="left">
<small><small>
GRIN → CNY conversion | <a href="FiatToGRIN/CNYtoGRIN.htm">CNY → GRIN conversion</a><br>
Approximate value of one Grin at time of pageload (in CNY):</small></small>
<center>
<big>
<div id="BTCPrice"/>Loading current price...</div>
<div id="CurrentPrice"/></div>
</big>
<span style="color:firebrick">China Yuan (CNY)</span>
<p>
</center>
<p>
<small><small>Switch:
<a href="index.html">USD</a> |
<a href="satoshi_calc_GBP.htm">GBP</a> |
<a href="satoshi_calc_EUR.htm">EUR</a> |
CNY |
<a href="satoshi_calc_CAD.htm">CAD</a> |
<a href="satoshi_calc_AUD.htm">AUD</a> |
<a href="satoshi_calc_INR.htm">INR</a> |
<a href="satoshi_calc_JPY.htm">JPY</a> |
<a href="satoshi_calc_KRW.htm">KRW</a>
<br>
</small></small>
<script language="JavaScript">
$.getJSON("https://min-api.cryptocompare.com/data/price?fsym=GRIN&tsyms=CNY", function(data){
$("#BTCPrice").text(data["CNY"].toFixed(2));
}).fail(function( dat, textStatus, error ) {
var err = textStatus + ", " + error;
alert(err);
});
var CurrentPrice = document.getElementById('BTCPrice');
CurrentPrice.innerHTML = BTCPrice.innerHTML;
/*
cm/inch/feet converter - credit must stay intact for use
By Ada Shimar [email protected]
For this script and more,
Visit http://javascriptkit.com
*/
function BTCconvert(){
with (document.BTCunitconverter){
mBTC.value = (BTC.value*1000);
uBTC.value = (BTC.value*1000000);
satoshi.value = (BTC.value*100000000);
LiveConvert.value = (BTC.value*CurrentPrice.innerHTML);
}
}
function mBTCconvert(){
with (document.BTCunitconverter){
BTC.value = (mBTC.value/1000);
uBTC.value = (mBTC.value*1000);
satoshi.value = (mBTC.value*100000);
LiveConvert.value = (mBTC.value*CurrentPrice.innerHTML/1000);
}
}
function uBTCconvert(){
with (document.BTCunitconverter){
BTC.value = (uBTC.value/1000000);
mBTC.value = (uBTC.value/1000);
satoshi.value = (uBTC.value*100);
LiveConvert.value = (uBTC.value*CurrentPrice.innerHTML/1000000);
}
}
function satoshiconvert(){
with (document.BTCunitconverter){
BTC.value = (satoshi.value/100000000);
mBTC.value = (satoshi.value/100000);
uBTC.value = (satoshi.value/100);
LiveConvert.value = (satoshi.value*CurrentPrice.innerHTML/100000000);
}
}
function LiveConvert(){
with (document.BTCunitconverter){
LiveConvert.value = (CurrentPrice.innerHTML);
}
}
</script>
<p>
<a href="javascript:document.location.reload();"
ONMOUSEOVER="window.status='Refresh'; return true"
ONMOUSEOUT="window.status='ah... that was good'">
<center><img src="refresh.png"
width="60" height="" border="0" /></a></center>
</p>
<small><small>
<a href="about.htm">About</a> | <a href="http://br549.mywebcommunity.org/grin/dev_notes.html">Developer Notes</a> | <a href="privacy.htm">Privacy Policy</a> | Exchange rates powered by <a href="https://www.cryptocompare.com/api" target="_blank">CryptoCompare</a><br>
</small></small>
<p>
<center><img src="grinlogo.svg" border="0" width=30></center>
<!-- Start of Default Statcounter code for Grin Converter
http://www.br549.mywebcommunity.org/grin -->
<script type="text/javascript">
var sc_project=11959922;
var sc_invisible=1;
var sc_security="bf7ace1f";
</script>
<script type="text/javascript"
src="https://www.statcounter.com/counter/counter.js"
async></script>
<noscript><div class="statcounter"><a title="Web Analytics"
href="https://statcounter.com/" target="_blank"><img
class="statcounter"
src="https://c.statcounter.com/11959922/0/bf7ace1f/1/"
alt="Web Analytics"></a></div></noscript>
<!-- End of StatCounter Code for Default Guide -->
</body>
</html>