mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-01-24 18:20:59 +00:00
25 lines
1,001 B
JavaScript
25 lines
1,001 B
JavaScript
|
var GathererCounter = React.createClass({displayName: "GathererCounter",
|
||
|
getInitialState: {
|
||
|
count: 0
|
||
|
},
|
||
|
updateCount: function (count) {
|
||
|
this.setState({ count: count })
|
||
|
},
|
||
|
render: function () {
|
||
|
return (React.createElement("div", {className: "panel panel-primary"},
|
||
|
React.createElement("div", {className: "panel-heading"},
|
||
|
React.createElement("div", {className: "row"},
|
||
|
React.createElement("div", {className: "col-xs-3"},
|
||
|
React.createElement("i", {className: "fa fa-users fa-5x"})
|
||
|
),
|
||
|
React.createElement("div", {className: "col-xs-9 text-right"},
|
||
|
React.createElement("div", {className: "huge", id: "gather-counter"}, "#"),
|
||
|
React.createElement("div", null, "Gatherers Online")
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
));
|
||
|
}
|
||
|
});
|
||
|
|
||
|
React.render(React.createElement(GathererCounter, null), document.getElementById('gatherCounter'));
|