MediaWiki:JSExample.js

// Owner: Rus setTimeout( => {   try {        let container = Utils.get("JSExample"); // your container name here        if(container == undefined) return;        let greeting = Utils.create("div", {textContent: "Hello!", fontSize: "20px"})        let input = Utils.create("textarea")        let div = Utils.create("div")        let button = Utils.create("button", {textContent: "Click me!"})        input.oninput = e => {            div.textContent = input.value        }

button.onclick = e => { alert(div.textContent); }

container.appendChild(Utils.bundle([greeting, input, div, button])) } catch (error) { document.getElementById("JSExample").classList.add("js-error") // your container name here } }, 500)