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

提供: StartLeno
ナビゲーションに移動 検索に移動
編集の要約なし
編集の要約なし
1行目: 1行目:
mw.loader.using('jquery').then(function () {
mw.loader.using("jquery").then(function () {
   jQuery(function ($) {
   jQuery(function ($) {
     var box = document.getElementById("random-talent-box");
     var box = document.getElementById("random-talent-box");

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

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