Skip to content

Instantly share code, notes, and snippets.

@SergProduction
Last active August 12, 2016 17:47
Show Gist options
  • Save SergProduction/007e77e5a72e65df6d84ea63d9feb510 to your computer and use it in GitHub Desktop.
Save SergProduction/007e77e5a72e65df6d84ea63d9feb510 to your computer and use it in GitHub Desktop.
function operatorsPanel(){
function submit(value = 'включить'){
var name = document.createElement('input');
name.type = 'submit';
name.value = value;
return name;
}
var div = document.createElement('div');
var pointer = submit(pointer);
var light = submit(light);
var drive = submit(drive);
pointer.onclick = function(){
}
light.onclick = function(){
}
drive.onclick = function(){
}
div.appendChild(pointer);
div.appendChild(light);
div.appendChild(drive);
document.body.appendChild(div);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment