-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
executable file
·183 lines (178 loc) · 5.35 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico">
<title>MyZelcash Wallet</title>
<style>
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
.aligner {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
/*Preloader*/
.preloader{
position: fixed;
display: block;
top: 0;
left: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center;
background-size: auto;
background-image: url(./loader.gif);
background-color:#2d2d2d;
z-index:99;
}
.preloader img{
display: block;
margin-bottom: 5px;
}
.preloader span{
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.preloader span.second{
display: none;
color: #000;
font-size: 3em;
}
/*Translations*/
.footer2{
background: #182237;
float:right;
position:relative;
}
.aligner2{
margin-left:auto;
margin-right:5px;
text-align: right;
}
.aligner2 a {
color: #ffffff;
font-weight: bold;
}
.aligner2 a:hover {
color: #bbbbbb;
text-decoration: none;
}
.aligner2 a:focus {
color: #bbbbbb;
text-decoration: none;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="shortcut icon" href="favicon.ico"></head>
<body>
<script>
function createCookie(name, value, secs) {
if (secs) {
var date = new Date();
date.setTime(date.getTime() + (secs * 1000));
var expires = "; expires=" + date.toGMTString();
}
else var expires = "";
document.cookie = name + "=" + value + expires + "; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
}
return null;
}
</script>
<script>
$(window).load(function () {
if (readCookie('myzelcash') == null) {
$('#preloader').delay(3000).fadeOut('slow');}
createCookie('myzelcash',1,300);
});
</script>
<script>
if (readCookie('myzelcash') != null) {
document.write("<style>.preloader {display:none;}</style>");
}
</script>
<div class="preloader" id="preloader"></div>
<div id="navbar"></div><br />
<div class="aligner">
<div id="wallet"></div>
<div id="guide"></div>
<div id="faq"></div>
</div><br />
<div id="footer"></div>
<div class="footer2">
<div class="aligner2">
<a class="english" id="english" href="javascript:;" onclick="testch(this.id)">
[EN]
</a>
<a class="czech" id="czech" href="javascript:;" onclick="testch(this.id)">
[CZ]
</a>
<a class="russian" id="russian" href="javascript:;" onclick="testch(this.id)">
[RU]
</a>
<a class="ukrainian" id="ukrainian" href="javascript:;" onclick="testch(this.id)">
[UA]
</a>
<a class="chinese" id="chinese" href="javascript:;" onclick="testch(this.id)">
[ZH]
</a>
<a class="german" id="german" href="javascript:;" onclick="testch(this.id)">
[DE]
</a>
<a class="portugese" id="portugese" href="javascript:;" onclick="testch(this.id)">
[PT]
</a>
</div>
</div>
<script>
$(document).ready(function () {
if (localStorage.getItem('language') != null) {
language = localStorage.getItem('language');
$.ajax({
url: 'translations/' + language + '.xml',
success: function (xml) {
$(xml).find('translation').each(function () {
var id = $(this).attr('id');
var text = $(this).text();
$("." + id).html(text);
});
}
});
}
});
function testch(id) {
localStorage.setItem('language', id);
language = id
$.ajax({
url: 'translations/' + language + '.xml',
success: function (xml) {
$(xml).find('translation').each(function () {
var id = $(this).attr('id');
var text = $(this).text();
$("." + id).html(text);
});
}
});
};
</script>
<script type="text/javascript" src="js/index.js"></script></body>
</html>