aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/sections/notFoundSection.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/ui/sections/notFoundSection.js')
-rw-r--r--src/js/ui/sections/notFoundSection.js43
1 files changed, 23 insertions, 20 deletions
diff --git a/src/js/ui/sections/notFoundSection.js b/src/js/ui/sections/notFoundSection.js
index 0731101..a400d6a 100644
--- a/src/js/ui/sections/notFoundSection.js
+++ b/src/js/ui/sections/notFoundSection.js
@@ -1,23 +1,26 @@
import { makeElement } from "../../arching-kaos-generator.js";
-var notFoundSection = {
- element: 'div',
- id: 'not-found-section',
- hidden: true,
- innerHTML: [
- {
- element: 'h2',
- innerText: 'Not found'
- },
- {
- element: 'p',
- innerText: 'Soft 404'
- },
- {
- element: 'p',
- innerText: 'Please select an entry from the menu'
- }
- ]
-};
+export function notFoundSection()
+{
+ var notFoundSection = {
+ element: 'div',
+ id: 'not-found-section',
+ hidden: true,
+ innerHTML: [
+ {
+ element: 'h2',
+ innerText: 'Not found'
+ },
+ {
+ element: 'p',
+ innerText: 'Soft 404'
+ },
+ {
+ element: 'p',
+ innerText: 'Please select an entry from the menu'
+ }
+ ]
+ };
-makeElement(notFoundSection, document.querySelector('.main'));
+ makeElement(notFoundSection, document.querySelector('.main'));
+}