19 lines
416 B
JavaScript
19 lines
416 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const views = require('../util/views.js');
|
||
|
|
||
|
class EmptyView {
|
||
|
constructor() {
|
||
|
this.template = views.htmlToDom('<div class="messages"></div>');
|
||
|
}
|
||
|
|
||
|
render(ctx) {
|
||
|
const target = document.getElementById('content-holder');
|
||
|
const source = this.template;
|
||
|
views.listenToMessages(target);
|
||
|
views.showView(target, source);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = EmptyView;
|