d🇳
Size: a a a
d🇳
d🇳
d🇳
k
k
d🇳
class Pivas
{
constructor(id,name){
this.id = id;
this.name = name;
this.status = "await";
}
createGUI(where){
$(where).append("<button id="+this.id+">"+this.name+"</button>");
$('#'+this.id).click(function() {
this.status = "clicked";
console.log(this.status);
console.log(this.event);
var f = new Function(this.event)
})
}
}
var t = new Pivas('pew',"Жми");
t.event = "alert('sooqabliad')";
t.createGUI('body');
S
class Pivas
{
constructor(id,name){
this.id = id;
this.name = name;
this.status = "await";
}
createGUI(where){
$(where).append("<button id="+this.id+">"+this.name+"</button>");
$('#'+this.id).click(function() {
this.status = "clicked";
console.log(this.status);
console.log(this.event);
var f = new Function(this.event)
})
}
}
var t = new Pivas('pew',"Жми");
t.event = "alert('sooqabliad')";
t.createGUI('body');
К
К
k
class Pivas
{
constructor(id,name){
this.id = id;
this.name = name;
this.status = "await";
}
createGUI(where){
$(where).append("<button id="+this.id+">"+this.name+"</button>");
$('#'+this.id).click(function() {
this.status = "clicked";
console.log(this.status);
console.log(this.event);
var f = new Function(this.event)
})
}
}
var t = new Pivas('pew',"Жми");
t.event = "alert('sooqabliad')";
t.createGUI('body');
k
d🇳
d🇳
К
d🇳
d🇳
К
К
k
К