From 5685e2b1714c8d85e505e9eccee549723773aaab Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Tue, 15 May 2018 21:20:00 -0500 Subject: Move files to webAO folder; GoldenLayout works! --- src/ui.js | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/ui.js (limited to 'src') diff --git a/src/ui.js b/src/ui.js deleted file mode 100644 index ecbdb45..0000000 --- a/src/ui.js +++ /dev/null @@ -1,38 +0,0 @@ -import GoldenLayout from "./golden/js/goldenlayout.js"; - -var config = { - settings: { - showPopoutIcon: false - }, - content: [ - { - type: "row", - content: [ - { - type: "component", - componentName: "template", - componentState: { id: "client_wrapper" } - }, - { - type: "column", - content: [ - { - type: "component", - componentName: "template", - componentState: { id: "ooc" } - }, - { - type: "component", - componentName: "template", - componentState: { id: "music" } - }] - }] - }] -}; - -var golden = new GoldenLayout(config); -golden.registerComponent("template", function(container, componentState) { - container.getElement().html(document.querySelector("#" + componentState.id).content); -}); -golden.init(); -console.log("initializing"); \ No newline at end of file -- cgit