Skip to content

Stankiewicz-M/Stankiewicz-M.github.io

Repository files navigation

<!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="Warunki korzystania z zasobów i prawa autorskie • Michał Stankiewicz" />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://stankiewiczm.eu/licence" />
    <meta property="og:image" content="https://www.stankiewiczm.eu/assets/og-social-media.png" />
    <meta name="fediverse:creator" content="@[email protected]" />
    <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>Warunki korzystania z zasobów i prawa autorskie • Michał Stankiewicz</title>
    <noscript>
        <meta http-equiv="refresh" content="0;url=/en/licence">
    </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>