MediaWiki:Voice Dictation/page support.js

if (document.createElement("input").webkitSpeech === undefined) {} else{ var railid = document.getElementById("EditPageRail"); var voicebar = document.createElement("input"); voicebar.id="voicebar"; voicebar.style.height="2em"; voicebar.style.background-color = "inherit"; railid.insertBefore(voicebar,railid.childNodes[1]); var finishedbar = document.getElementById("voicebar"); finishedbar.setAttribute("x-webkit-speech","x-webkit-speech"); }