Anonymous

MediaWiki:Common.js: Difference between revisions

From Melvor Idle
Initial javascript testing.
(Changed header rows classnames to headerRow -0 and -1 for future proofing)
(Initial javascript testing.)
Line 29: Line 29:
     setStickyHeaderTop();
     setStickyHeaderTop();
     $(window).resize(setStickyHeaderTop);
     $(window).resize(setStickyHeaderTop);
  }
  //Testing out adding input boxes
  if ($('#js-test').length > 0) {
    var newInput = document.createElement('input');
    newInput.setAttribute('type', 'text');
    newInput.setAttribute('id', 'txtInput1');
    $('#js-test').append(newInput);
   }
   }
}
}
);
);