Sunday, July 10, 2016

motionreadout

function atnbgaddmotionreadout() {
var lc = document.getElementById("atnbgleftcontrols")
var readout = document.createElement("div")
lc.appendChild(readout)
idreadout(readout);stylereadout(readout)
initializereadout()

function idreadout(readout) {
var id = document.createAttribute("id")
readout.setAttributeNode(id)
id.value = "atnbgmotion"}

function stylereadout(readout) {
var style = document.createAttribute("style")
readout.setAttributeNode(style)
var v = "position:absolute;left:0%;bottom:100%"
v = v + ";width:90%;height:90%"
v = v + ";color:violet;background-color:white"
style.value = v}

function initializereadout(readout) {
var value = document.createTextNode("1")
readout.appendChild(value)}

}