69fe8ec31a
- Move controls to the "controls/" directory - Make controls interface look similar to each other - Prefix "private" methods and attributes with underscore
21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
'use strict';
|
|
|
|
const views = require('../util/views.js');
|
|
|
|
class EmptyView {
|
|
constructor() {
|
|
this._template = () => {
|
|
return views.htmlToDom(
|
|
'<div class="wrapper"><div class="messages"></div></div>');
|
|
};
|
|
}
|
|
|
|
render(ctx) {
|
|
const target = document.getElementById('content-holder');
|
|
const source = this._template();
|
|
views.listenToMessages(source);
|
|
views.showView(target, source);
|
|
}
|
|
}
|
|
|
|
module.exports = EmptyView;
|