szurubooru/client/js/views/not_found_view.js

18 lines
408 B
JavaScript
Raw Normal View History

'use strict';
const views = require('../util/views.js');
const template = views.getTemplate('not-found');
class NotFoundView {
constructor(path) {
this._hostNode = document.getElementById('content-holder');
const sourceNode = template({path: path});
views.replaceContent(this._hostNode, sourceNode);
2016-07-13 17:18:28 +02:00
views.syncScrollPosition();
}
}
module.exports = NotFoundView;