「MediaWiki:Common.js」の版間の差分

提供: StartLeno
ナビゲーションに移動 検索に移動
編集の要約なし
編集の要約なし
1行目: 1行目:
window.setTimeout(function () {
mw.loader.using('jquery').then(function () {
   var box = document.getElementById('random-talent-box');
   jQuery(function ($) {
  if (box) {
    var box = document.getElementById("random-talent-box");
     box.innerHTML = 'Common.jsは動いています';
    if (!box) {
   }
      return;
}, 1000);
    }
     box.innerHTML = "Common.jsは動いています";
   });
});

2026年3月17日 (火) 14:11時点における版

mw.loader.using('jquery').then(function () {
  jQuery(function ($) {
    var box = document.getElementById("random-talent-box");
    if (!box) {
      return;
    }
    box.innerHTML = "Common.jsは動いています";
  });
});