「MediaWiki:Common.js」の版間の差分
ナビゲーションに移動
検索に移動
18行目: | 18行目: | ||
function createPracticePage() { | function createPracticePage() { | ||
− | open("/index.php?veaction=edit&title=練習用ページ_" + Date().getTime().toString(16) + Math.floor(strong*Math.random()).toString(16), "_blank"); | + | open("/index.php?veaction=edit&title=練習用ページ_" + new Date().getTime().toString(16) + Math.floor(strong*Math.random()).toString(16), "_blank"); |
} | } |
2021年1月31日 (日) 13:18時点における版
/* ここにあるすべての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" id="halidom_wiki2_newpage_input"></div>').dialog({modal:true,buttons:{"移動":function(){window.location.href="/index.php?veaction=edit&title=" + $("#halidom_wiki2_newpage_input").val();}}}); } $('#n-randompage').after( '<li></li><li id="newpage_link_button_added"><a href="#" title="新しいページを作ります" onclick="halidom_wiki2_newpage_dialog()">ページを追加</a></li>'); function createPracticePage() { open("/index.php?veaction=edit&title=練習用ページ_" + new Date().getTime().toString(16) + Math.floor(strong*Math.random()).toString(16), "_blank"); }