Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
139 lines (129 loc) · 4.65 KB
/
Copy pathindex.html
File metadata and controls
139 lines (129 loc) · 4.65 KB
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
<!DOCTYPE html><html lang="en-US" dir="ltr"><head>
<meta charset="UTF-8"/>
<meta name="description" content="Cryptia allowing the system subscribers to initiate voice calls, exchange files and messages, while being protected by the hacker-proof encryption algorithms."/>
<meta name="keywords" content="Cryptia, tool for secure communication, pgp alternative, skype alternative, Diffie-Hellman, openpgp, gnupg, OpenSSL"/>
<meta name="author" content="Cryptia Project"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta property="og:locale" content="en-US"/>
<meta property="og:type" content="article"/>
<meta property="og:title" content="Privacy by default"/>
<meta property="og:description" content="Cryptia allowing the system subscribers to initiate voice calls, exchange files and messages, while being protected by the hacker-proof encryption algorithms."/>
<meta property="og:url" content="http://cryptia.com"/>
<meta property="og:site_name" content="Cryptia"/>
<meta name="dcterms.title" content="Download latest Cryptia release"/>
<meta name="dcterms.identifier" content="http://cryptia.com/en/index.html#securemessenger"/>
<title>Privacy by default</title>
<link rel="copyright" href="http://cryptia.com/en/eula.txt"/>
<link rel="icon" type="image/png" sizes="192x192" href="http://cryptia.com/img/logo.png">
<link rel="icon" type="image/x-icon" sizes="80x80" href="http://cryptia.com/img/icon.png"/>
<link rel="apple-touch-icon" sizes="80x80" href="http://cryptia.com/img/icon.png">
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript">
(function(e) {
function n(e, t) {
if (!t) {
var n = ""
} else {
var n = new Date;
n.setDate(n.getDate() + t);
n = "; expires=" + n.toUTCString()
}
document.cookie = "languageDetection=" + e + n + "; path=/"
}
function r() {
var e = document.cookie;
var t = e.indexOf(" languageDetection=");
if (t == -1) {
t = e.indexOf("languageDetection=")
}
if (t == -1) {
var n = null
} else {
var r = e.indexOf("=", t) + 1;
var i = e.indexOf(";", t);
if (i == -1) {
i = e.length
}
n = unescape(e.substring(r, i))
}
return n
}
var t = {
init: function(n) {
var n = e.extend({
domain: window.location.protocol + "//" + window.location.hostname + "/",
useFullPaths: false,
languages: [{
code: "en",
path: "",
defaultLanguage: true
}],
expires: null
}, n);
e(document).on("click", ".language", function(t) {
t.preventDefault();
e(document).languageDetection("setLanguage", n.domain, n.useFullPaths, n.languages, n.expires, e(this).attr("data-language"))
});
var i = r();
var s = !i ? navigator.language || navigator.userLanguage : i;
t.setLanguage(n.domain, n.useFullPaths, n.languages, n.expires, s)
},
setLanguage: function(t, r, i, s, o) {
var u, a;
for (var f = 0; f < i.length; f++) {
if (i[f]["code"] == o.substr(0, 2)) {
u = i[f]["path"];
a = i[f]["code"]
}
}
if (!u && u != "") {
for (var f = 0; f < i.length; f++) {
if (i[f]["defaultLanguage"] == true) {
u = i[f]["path"];
a = i[f]["code"]
}
}
}
if (e("html").attr("lang") == a) {
return
}
n(a, s);
var l = !r ? t + u : u;
window.location.replace(l)
}
};
e.fn.languageDetection = function() {
var n = arguments[0];
if (t[n]) {
n = t[n];
arguments = Array.prototype.slice.call(arguments, 1)
} else if (typeof n == "object" || !n) {
n = t.init
} else {
e.error("Method " + n + " does not exist.");
return this
}
return n.apply(this, arguments)
}
})(jQuery)
</script>
<script type="text/javascript">
$(document).ready(function() {
$(document).languageDetection({
languages : [
{
code : 'ru',
path : 'ru/index.html'
},
{
code : 'en',
path : 'en/index.html',
defaultLanguage : true
}
]
});
});
</script>
</body>
</html>