-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebInquiryIht.html
346 lines (343 loc) · 13.4 KB
/
webInquiryIht.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
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title class="iht" data-main="inquirytitle">IHT - Check IHT Account Lockup Information</title>
<meta name="description" content="i-house.com is a global real estate blockchain cloud platform.Through IHT’s smart contract, large real estate can be split and distributed to multiple financial institutions. In this way, users can get the opportunity to invest in real estate with small amounts of money and enjoy high security and low risk investment.">
<!-- i-house.com项目自筹备起就定位为全球不动产区块链交易云平台。IHT是i-house.com项下开发的专门用于拆分不动产的智能合约技术和分布式记账技术。通过IHT智能合约可将大额不动产拆分并分配给金融机构,以此,给予用户以小额资金投资并获益于不动产的机会。并保障了投资的安全性和低风险性。 -->
<meta name="keywords" content="IHT,IHTCOIN,IHT官网,sharing property">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="x5-orientation" content="portrait">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="Pragma" content="no-cache">
<title>IHT - i-house token</title>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-transform " />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="shortcut icon" type="image/png" href="dist/images/iht.ico" />
<script src="dept/flexible_css.js"></script>
<script src="dept/flexible.js"></script>
<link href="dist/css/web_main.min.css?v=20180223" rel="stylesheet"/>
<link rel="alternate" href="https://ihtcoin.com/webInquiryIht.html" hreflang="en" />
<link rel="alternate" href="https://ihtcoin.com/webInquiryIht.html?lang=ch" hreflang="zh" />
<style>
body,html{
height: 100%;
overflow-y: auto;
}
.zmbox{
width: 80px;
height: 40px;
}
.zmbox ul{
overflow: hidden;
height:40px;
text-align: center;
line-height: 40px;
border: 1px solid #ccc;
border-radius: 5px;
}
.zmbox ul:hover{
background:#fff;
height:120px;
cursor:pointer;
}
</style>
<script>
function getQueryString(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = window.location.search.substr(1).match(reg);
if(r != null) return r[2];
return null;
}
lang = getQueryString('lang') ? getQueryString('lang') : 'eng';
if ((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
window.imgChar=1;
}
else{
window.location.href='inquiryIHT.html?lang='+lang
window.imgChar=1;
}
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5MCJVTR');</script>
<!-- End Google Tag Manager -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5MCJVTR"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="navbar js-navbar">
<div class="container">
<div class="navbarheader">
<a href="index.html" class="logo" id="indexLogo">IHT</a>
<button class="navbartoggle" type="button" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbarcollapse">
<ul class="navlist">
<li><a id="indexPageWeb" class="on"><span data-main="navhome" class="iht"></span></a></li>
<li><a id="projectaWeb"><span data-main="navproject" class="iht"></span></a></li>
<li><a id="roadmapaWeb"><span data-main="navroadmap" class="iht"></span></a></li>
<li><a id="teamaWeb"><span data-main="navteam" class="iht"></span></a></li>
<li><a id="newsaWeb"><span data-main="navnews" class="iht"></span></a></li>
<li><a id="faqaWeb"><span data-main="navfaq" class="iht"></span></a></li>
<li>
<a href="https://medium.com/ihtoffical" target="_blank"><span data-main="narblog" class="iht"></span></a>
</li>
<li>
<!-- <div class="language" id="index-flag">
<a href="javascript:void(0);"><em class="iht" data-main="languageImg"></em><i data-main="language" class="iht"></i></a>
</div> -->
<div class="language">
<div class="zmbox">
<ul class="zmList">
<li data-name="1"></li>
<li></li>
<li></li>
</ul>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="inquiryBox">
<h1 class="iht groupLock" data-main="groupLock"></h1>
<div class="inBox">
<div class="inquiryMain">
<input type="text" data-main="ETHAddress" class="ihtinput inputrec">
<button data-main="query" class="iht btnrec" id="emailBtn"></button>
<img class="inClose" src="dist/images/inClose.jpg" />
</div>
<div class="inquiryC">
<img class="loading" src="dist/images/checkImg/loading.gif" />
</div>
</div>
<!--开始渲染页面-->
<div class="ihtShow ihtCon">
<!--主体未锁定量-->
<div class="inquiryB unLockNumPrin">
<span class="iht" data-main="unLockNumPrin"></span>
<span class="ihtUnNumPrin"></span>
</div>
<!--主体锁定数量-->
<div class="inquiryB inquiryBop">
<span class="iht" data-main="lockNumPrin"></span>
<span class="ihtNumPrin"></span>
</div>
<div class="inquiryTime">
<span class="iht" data-main="lockTimePrin"></span>
<span class="timeLockPrin"></span>
</div>
<!--奖励锁定数量-->
<div class="inquiryB inquiryBop">
<span class="iht" data-main="lockNumBons"></span>
<span class="ihtNumBons"></span>
</div>
<div class="inquiryTime inBtp">
<span class="iht" data-main="lockTimeBons"></span>
<span class="timeLockBons"></span>
</div>
<!------------------------------------------------------->
</div>
<div class="ihtNone iht ihtCon ihtCC" data-main="ihtNone">
</div>
<div class="addErr iht ihtCon ihtCC" data-main="addErr">
</div>
<!--添加按钮锚点-->
<a target="_blank" id="lockOut" class="ihtCon lockOut iht" data-main="lockOut"></a>
</div>
<script src="dept/jquery.min.js"></script>
<script src="cfg/config.js"></script>
<script src="dist/js/data.js?v=201802221"></script>
<script data-main="dist/lib/main.js?v=20171212111" src="dist/lib/require.js?time=20171212111"></script>
<script type="text/javascript">
$('#lockOut').click(function(){
window.location.href = 'webCheckAccountIht.html?lang='+lang+'&lock=lock'
})
pathEnv = _config.url;
count = 0;
if(getQueryString('lang') == 'ch') {
$('meta[name=description]').attr('content', '输入您的ETH钱包地址来查看您账户的锁定IHT信息。')
$('head').append('<link rel="canonical" href="https://ihtcoin.com/inquiryIHT.html?lang=ch" />')
} else {
$('meta[name=description]').attr('content', 'Enter your ETH wallet address to check the status information of locked up IHT on your account.')
$('head').append('<link rel="canonical" href="https://ihtcoin.com/inquiryIHT.html" />')
};
function proces(address){
$('.inquiryC').show()
$('.ihtCC').hide();
$('.ihtCon').hide()
$.ajax({
type:"post",
url:pathEnv+"/api/iht/toolkit",
async:true,
headers : {
"Content-Type": "application/json"
},
data : JSON.stringify({
'userAddress' : address
}),
success(data){
$('.inquiryC').hide()
count = 0;
if(data.status = 'success'){
if(data[0]){
var ihtData = data[0].data;
$('.ihtShow').show();
$('.ihtNumPrin').text(conver(ihtData.principleLockAmount)+' IHT');
$('.ihtNumBons').text(conver(ihtData.bonusLockAmount)+' IHT');
//主体锁定时间
if(lang == 'ch'){
noText = '暂无'
}else{
noText = 'Not available'
}
if(ihtData.startAt == 0){
$('.timeLockPrin').text(noText + ' '+ '(UTC +8)')
//主体锁定时间
$('.timeLockBons').text(noText + ' '+ '(UTC +8)')
}else{
$('.timeLockPrin').text(timestampToTime(ihtData.startAt)+' '+'-'+ ' '+timestampToTime(ihtData.principleLockPeriod) + ' '+ '(UTC +8)');
//主体锁定时间
$('.timeLockBons').text(timestampToTime(ihtData.startAt)+' '+'-'+ ' '+timestampToTime(ihtData.bonusLockPeriod) + ' '+ '(UTC +8)')
};
$('.lockOut').css('display','block')
}else{
$('.inquiryC').hide()
$('.ihtShow').hide();
$('.lockOut').hide()
alert(data.message)
}
}else{
$('.ihtShow').hide()
$('.lockOut').hide()
alert(data.message)
}
},
error(XMLHttpRequest){
$('.inquiryC').hide()
$('.ihtShow').hide()
$('.lockOut').hide()
count = 0;
alert('请求报错,请重试')
},
complete(){
$('.inquiryC').hide()
}
});
};
function unlock(address){
$.ajax({
type:"get",
url:pathEnv+"/api/mlg/tokenBalance",
async:true,
headers : {
"Content-Type": "application/json"
},
data : {
'address' : address
},
success(data){
$('.ihtUnNumPrin').text(conver(data[0].data.balance)+' IHT');
},
error(XMLHttpRequest){
alert('请求报错,请重新查询')
}
});
};
$('#emailBtn').click(function(e){
clk(e)
});
$('.inputrec').attr("autocomplete", "off");
$('.inputrec').keydown(function(event) {
var e = window.event || event;
if(e.keyCode == 13){
clk(e)
}
});
//封装点击事件函数
function clk(ea){
var inputVal = $.trim($('.ihtinput').val());
var inputValLength = inputVal.length;
var inputValStart = inputVal.slice(0,2);
if(inputVal == ''){
if(lang == 'ch'){
alert('钱包地址不能为空');
}else{
alert('Please enter ETH wallet address');
}
$('.ihtCon').hide();
}else if(inputValLength !== 42 || inputValStart !== '0x'){
$('.ihtCon').hide()
$('.addErr').show();
}else{
if(count == 0){
count = 1
proces(inputVal);
unlock(inputVal)
setTimeout(function(){
count = 0
},5000)
}
}
};
$('.inClose').click(function(){
$('.ihtinput').val('');
$('.ihtinput').focus();
$('.inClose').hide();
$('.ihtCon').hide()
});
//封装兼容浏览器target函数
function tg(e) {
var theEvent = window.e || e;
var theObj = theEvent
return theObj
};
//数字换算公式
function conver(num){
return num/(Math.pow(10,18))
};
//封装时间戳换算公司
function timestampToTime(timestamp) {
var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
Y = date.getFullYear() + '.';
M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '.';
D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
return Y+M+D+h+m+s;
};
//监听input框输入框事件
$('.ihtinput').bind('input propertychange', function() {
var val = $(this).val();
if($.trim(val) == '') {
$('.ihtCon').hide()
$('.inClose').hide()
}else{
$('.inClose').show()
}
});
</script>
</body>
</html>