-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.html
More file actions
37 lines (37 loc) · 1.73 KB
/
about.html
File metadata and controls
37 lines (37 loc) · 1.73 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
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="O mnie • inż. Michał Stankiewicz" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://stankiewiczm.eu/about" />
<link type="text/css" rel="stylesheet" href="style.css">
<link rel="icon" href="/assets/favicon.png">
<link rel="apple-touch-icon" href="/assets/touch-icons/apple-touch-icon-iphone-60x60.png">
<link rel="apple-touch-icon" sizes="60x60" href="/assets/touch-icons/apple-touch-icon-ipad-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/assets/touch-icons/apple-touch-icon-iphone-retina-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/assets/touch-icons/apple-touch-icon-ipad-retina-152x152.png">
<title>O mnie • inż. Michał Stankiewicz</title>
<noscript>
<meta http-equiv="refresh" content="0;url=/en/about">
</noscript>
</head>
<body>
<script>
var currentURL = window.location.href;
var language = window.navigator.language;
if (language.startsWith('pl')) {
var firstSlashIndex = currentURL.indexOf("/", 8);
var restOfUrl = currentURL.substr(firstSlashIndex);
var newURL = currentURL.substr(0, firstSlashIndex) + "/pl" + restOfUrl;
window.location.replace(newURL);
} else {
var firstSlashIndex = currentURL.indexOf("/", 8);
var restOfUrl = currentURL.substr(firstSlashIndex);
var newURL = currentURL.substr(0, firstSlashIndex) + "/en" + restOfUrl;
window.location.replace(newURL);
}
</script>
</body>
</html>