MediaWiki:LunarCalendar.js

setTimeout( => {   let containerName = "LunarCalendar"    try {        let container = Utils.get(containerName); // your container name here        if(container == undefined) return;        let greeting = Utils.create("div", {textContent: "Choose month and year", fontSize: "20px"});       let month = Utils.create( "input", {       		type: "number" }       	)        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(containerName).classList.add("js-error") // your container name here } }, 500)