MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* Script to copy text wrapped within texmplate */ var copy = document.getElementsByClassName("copy"); for (var i = 0; i < copy.length; i++) { copy[i].addEventListener("click", function {   	navigator.clipboard.writeText(this.getInnerHTML);    	alert("Text copied!");    }, false); }