22 lines
398 B
JavaScript
22 lines
398 B
JavaScript
import Hanafuda;
|
|
import * as Dom from UnitJS.Dom;
|
|
|
|
function Card(name) {
|
|
this.value = Hanafuda.Card[name];
|
|
this.name = name;
|
|
this.dom = Dom.make('li', {
|
|
class: [
|
|
"card",
|
|
"value" + Hanafuda.getValue(this.value),
|
|
"month" + this.value.flower
|
|
],
|
|
onClick: this.onClick()
|
|
});
|
|
}
|
|
|
|
Card.prototype.onClick = function() {return function() {};};
|
|
|
|
return {
|
|
Card: Card
|
|
};
|