diff --git a/gluworld/index.html b/gluworld/index.html index 3e71e95..c73bdb8 100644 --- a/gluworld/index.html +++ b/gluworld/index.html @@ -2,9 +2,77 @@ - Welcome to Gluon! + + Gluworld -

Welcome to Gluon!

+

+ Gluon
+ built with +

+ +
+

+ Chromium
+ +

+ +

+ Node
+ +

+
+ + \ No newline at end of file diff --git a/gluworld/index.js b/gluworld/index.js index fbb8eab..9d9ffe2 100644 --- a/gluworld/index.js +++ b/gluworld/index.js @@ -6,4 +6,17 @@ import { join, dirname } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); -Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href); \ No newline at end of file +Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href, () => { + const setVersions = () => { + if (typeof chromium_version === 'undefined') return setTimeout(setVersions, 100); + + chromium_version.textContent = CHROMIUM_VERSION; + node_version.textContent = NODE_VERSION; + gluon_version.textContent = GLUON_VERSION; + glugun_version.textContent = 'GLUGUN_VERSION' === 'G\LUGUN_VERSION' ? 'nothing' : 'Glugun GLUGUN_VERSION'; + }; + + setVersions(); +}, { + windowSize: [ 800, 450 ] +}); \ No newline at end of file diff --git a/gluworld/package.json b/gluworld/package.json new file mode 100644 index 0000000..bb34440 --- /dev/null +++ b/gluworld/package.json @@ -0,0 +1 @@ +{ "type": "module" } \ No newline at end of file