View source for MediaWiki:Common.js
MediaWiki interface page
Views
Actions
Namespaces
Variants
Tools
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
/* Any JavaScript here will be loaded for all users on every page load. */
mw.loader.load( 'https://cdn.jsdelivr.net/npm/uikit@3.5.8/dist/js/uikit.min.js' );
mw.loader.load( 'https://cdn.jsdelivr.net/npm/uikit@3.5.8/dist/js/uikit-icons.min.js' );
function copyTextToCb() {
/* Get the text field */
var copyText = document.getElementById("copy-to-clipboard-text");
/* Select the text field */
copyText.select();
copyText.setSelectionRange(0, 99999); /*For mobile devices*/
/* Copy the text inside the text field */
document.execCommand("copy");
/* Alert the copied text */
alert("Copied the text: " + copyText.value);
}
000
1:0
Return to MediaWiki:Common.js.