ronin/scripts/commander.js
2016-11-12 08:52:18 -08:00

21 lines
395 B
JavaScript

function Commander(element,element_input)
{
this.element = element;
this.element_input = element_input;
this.show = function()
{
this.element.setAttribute('class','visible');
this.element_input.focus();
}
this.hide = function()
{
this.element.setAttribute('class','hidden');
}
this.validate = function()
{
console.log(this.element_input.value);
}
}