-
Notifications
You must be signed in to change notification settings - Fork 6
/
faq.html
executable file
·114 lines (111 loc) · 3.48 KB
/
faq.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
<!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;
}
/*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>
<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/faq.js"></script></body>
</html>