webclient/js/GUI/Card.js

16 lines
265 B
JavaScript

import Hanafuda;
import * as Dom from UnitJS.Dom;
return {
make: Card
};
function Card(name) {
var value = Hanafuda.Card[name];
return {
value: value,
dom: Dom.make('li', {
class: ["card", "value" + value.monthOffset, "month" + value.flower]
})
};
}