From dcc6f35266de1f56d7e9536311f0ff56b57c0fdc Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 30 Nov 2024 00:33:20 +0200 Subject: More refactoring and fixing a bug on spa-router --- src/js/ui/sections/statsSection.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src/js/ui/sections/statsSection.js') diff --git a/src/js/ui/sections/statsSection.js b/src/js/ui/sections/statsSection.js index 1f2ede2..d54962a 100644 --- a/src/js/ui/sections/statsSection.js +++ b/src/js/ui/sections/statsSection.js @@ -1,17 +1,19 @@ import { makeElement } from "../../arching-kaos-generator.js"; -var statsSection = { - element: 'div', - id: "stats-section", - innerHTML: [ - { element: "div", className: "where-am-i", innerHTML: ` +export function statsSection() +{ + var statsSection = { + element: 'div', + id: "stats-section", + innerHTML: [ + { element: "div", className: "where-am-i", innerHTML: ` >

Explore

>

Stats

`}, - { element: "div", className: "available-networks", innerHTML: ` + { element: "div", className: "available-networks", innerHTML: `

Networks

Stellar @@ -23,7 +25,8 @@ var statsSection = { Arching Kaos SBlocks
`} - ] -}; + ] + }; -makeElement(statsSection, document.querySelector('.main')); + makeElement(statsSection, document.querySelector('.main')); +} -- cgit v1.2.3