aboutsummaryrefslogtreecommitdiff
path: root/client/js/views/not_found_view.js
blob: 487613b5daea776fea819a331abf72967906d8c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'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);
        views.syncScrollPosition();
    }
}

module.exports = NotFoundView;

© 2015 - 2026 Jakob L. Kreuze