Bureaucrats, Interface administrators, oversight, redactor, Suppressors, Administrators, translator, Widget editors
142
edits
m |
m |
||
Line 11: | Line 11: | ||
var page = window.location.pathname.slice(6); | var page = window.location.pathname.slice(6); | ||
var l = page.slice(-2); | var l = page.slice(-2); | ||
if(lang !== null && l !== lang) | if(lang !== null && l !== lang && l != 'en' && l != 'en' || l != 'en') | ||
{ | { | ||
if(l == 'en' || l == 'ru' || l == 'vi'){ | //if(l == 'en' || l == 'ru' || l == 'vi'){ | ||
// page = page.slice(0, -3); | |||
} | //} | ||
var translate_exist = true; | var translate_exist = true; | ||
$.getJSON('https://gachiwiki.info/api.php?action=query&titles='+page +'/' + lang +'&format=json', function(response) { | $.getJSON('https://gachiwiki.info/api.php?action=query&titles='+page +'/' + lang +'&format=json', function(response) { |
edits