Changes

Jump to navigation Jump to search

MediaWiki:Common.js

58 bytes removed, 15:53, 2 March 2016
no edit summary
var list_items = document.getElementsByTagName("li");
for (var i = 0; i < list_items.length; ++i) { var list_item = list_items[i];
console.log(list_item);
var show = list_item.getAttribute("show"); if (show != []._) { var elementToShow = document.getElementById(show); console.log("elementToShow: " + elementToShow ); if (elementToShow != []._) { list_item.onclick = function() { elementToShow.display = 'block'; } elementToShow.display = 'none';
}
elementToShow.display = 'none';
}
}
  console.log("Common.js (" + list_items.length + ")");}
developer
1,626
edits

Navigation menu