MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Manual revert |
No edit summary |
||
Line 1: | Line 1: | ||
var language = navigator.language || navigator.browserLanguage; | var language = navigator.language || navigator.browserLanguage; | ||
Line 10: | Line 5: | ||
if (language.indexOf('ru') > -1) { | if (language.indexOf('ru') > -1) { | ||
location.replace =('https://www.exagear.wiki/index.php?title=Main_Page(ru)'); | |||
} else { | } else { | ||
location.replace = ('https://www.exagear.wiki/index.php?title=Main_Page(en)'); | |||
} | } | ||
} | } |
Revision as of 14:11, 15 October 2022
var language = navigator.language || navigator.browserLanguage; // alert(language); if (language.indexOf('ru') > -1) { location.replace =('https://www.exagear.wiki/index.php?title=Main_Page(ru)'); } else { location.replace = ('https://www.exagear.wiki/index.php?title=Main_Page(en)'); } }