Перейти к содержанию

MediaWiki:Common.js: различия между версиями

нет описания правки
Нет описания правки
Нет описания правки
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
// Get the select element and the forms
// Get the select element and the forms
var currentPageHref = decodeURI(window.location.href);
var currentPageHref = decodeURI(window.location.href);
var test = 'Главная';
var test = 'Вики-энциклопедия_университета:Главная';
if (test.indexOf(currentPageHref ) > -1) {
if (currentPageHref .indexOf(test) > -1) {
console.log('yes');
}
console.log(test);
console.log(currentPageHref);
if (typeof(document.querySelectorAll('.createbox')) != 'undefined' && (document.querySelectorAll('.createbox')) != null) {
var forms = document.querySelectorAll('.createbox');
var forms = document.querySelectorAll('.createbox');
var select = document.createElement('select');
var select = document.createElement('select');