MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
do you not like let
(are you happy now epyep?)
(do you not like let)
 
(One intermediate revision by the same user not shown)
Line 52: Line 52:
     if (!!$('.cyclist').filter(function() { return $(this).is(":hover"); }).length) return;
     if (!!$('.cyclist').filter(function() { return $(this).is(":hover"); }).length) return;
     $('.cyclist > :not(:hidden)').hide().each(function() {
     $('.cyclist > :not(:hidden)').hide().each(function() {
       var elem = $(this)
       var elem = $(this);
       elem.next().show();
       elem.next().show();
       if (elem.is(':last-child')) elem.siblings().first().show();
       if (elem.is(':last-child')) elem.siblings().first().show();
Line 60: Line 60:


function parseFormatCodes (text) {
function parseFormatCodes (text) {
   let spans = 0;
   var spans = 0;
   let res = '';
   var res = '';
   for (var i = 0; i < text.length; i++) {
   for (var i = 0; i < text.length; i++) {
     if (text[i] == '\\') {
     if (text[i] == '\\') {
184

edits

Navigation menu