aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/sections/newsSection.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/ui/sections/newsSection.js')
-rw-r--r--src/js/ui/sections/newsSection.js21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/js/ui/sections/newsSection.js b/src/js/ui/sections/newsSection.js
index 3b89cef..b983b48 100644
--- a/src/js/ui/sections/newsSection.js
+++ b/src/js/ui/sections/newsSection.js
@@ -1,18 +1,21 @@
import { makeElement } from "../../arching-kaos-generator.js";
-var newsSection = {
- element: 'div',
- id: 'news-section',
- innerHTML: [
- { element: "div", className: "where-am-i", innerHTML: `
+export function newsSection()
+{
+ var newsSection = {
+ element: 'div',
+ id: 'news-section',
+ innerHTML: [
+ { element: "div", className: "where-am-i", innerHTML: `
<img src="./img/logo.png" onclick="menusel({id:'#/welcome-section'})"/>
<span>&gt;</span>
<h2>Modules</h2>
<span>&gt;</span>
<h2>News</h2>
` },
- { element: "em", id:"news-sec-not-found", innerText: "No data found (yet?)!"}
- ]
-};
+ { element: "em", id:"news-sec-not-found", innerText: "No data found (yet?)!"}
+ ]
+ };
-makeElement(newsSection, document.querySelector('.main'));
+ makeElement(newsSection, document.querySelector('.main'));
+}