「MediaWiki:Common.js」の版間の差分
ナビゲーションに移動
検索に移動
7行目: | 7行目: | ||
$.getScript("//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"); | $.getScript("//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"); | ||
− | $(body).prepend('<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">'); | + | $('body').prepend('<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">'); |
function halidom_wiki2_newpage_dialog() { | function halidom_wiki2_newpage_dialog() { |
2021年1月30日 (土) 17:10時点における版
/* ここにあるすべてのJavaScriptは、すべてのページ読み込みですべての利用者に対して読み込まれます */ $.getScript("//platform.twitter.com/widgets.js"); $.getScript("//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"); $('body').prepend('<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">'); function halidom_wiki2_newpage_dialog() { $('<div >ページの名前<input type="text"></div>').dialog({modal:true,buttons:{"移動":function(){window.location.href="/wiki/" + "hoge" + "#edit";}}}); } $('#n-randompage').after( '<li></li><li id="newpage_link_button_added"><a href="#" title="新しいページを作ります" onclick="halidom_wiki2_newpage_dialog()">ページを追加</a></li>');