MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 17: Line 17:




/*document.getElementById('mw-Mycanvas').innerHTML = '<canvas width="100" height="100" style="border:1px solid red;"></canvas>';*/
mw.loader.using( ['mediawiki.util', 'jquery.client'], function() {
$(document).ready(function() {
  $("#mw-Mycanvas2").click(function() {
    if ($(this).attr("src").includes("TopSide")) {
      $(this).attr("src", "https://simplywoodgrading.com/mediawiki/images/a/ab/20mmSoundKnot_ReededSide.jpg?20230319101142");
    } else {
      $(this).attr("src", "https://simplywoodgrading.com/mediawiki/images/e/ea/20mmSoundKnot_TopSide.jpg?20230319084600");
    }
  });
});
});

Navigation menu