mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 15:27:17 +00:00
do not redirect
This commit is contained in:
parent
4ce2c106e4
commit
edcaaf9583
12
index.html
12
index.html
@ -28,18 +28,6 @@ title: arcanis' homepage
|
||||
|
||||
{% include cse.html %}
|
||||
</header>
|
||||
<!-- redirection to russian page -->
|
||||
<script type="text/javascript">
|
||||
function redirectpage(dest) {
|
||||
if (window.location.replace) window.location.replace(dest)
|
||||
else window.location = dest
|
||||
}
|
||||
if (document.referrer != "{{ site.url }}/ru/") {
|
||||
var languageinfo = navigator.language ? navigator.language : navigator.userLanguage
|
||||
if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/")
|
||||
}
|
||||
</script>
|
||||
<!-- redirection to russian page -->
|
||||
<section>
|
||||
|
||||
<h3><a href="#welcome" class="anchor" id="welcome"><span class="octicon octicon-link"></span></a>Welcome</h3>
|
||||
|
Loading…
Reference in New Issue
Block a user