This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/client/js/views/not_found_view.js

18 lines
410 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;