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

17 lines
410 B
JavaScript

"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;