mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 23:37:19 +00:00
parent
edcaaf9583
commit
9dbf77e0df
12
index.html
12
index.html
@ -28,6 +28,18 @@ 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