diff --git a/public/settings.js b/public/settings.js index 9415383caa24164f9741639e028a2357880fae1d..26540fe19265ba4e0222ca1510059e48974895d0 100644 --- a/public/settings.js +++ b/public/settings.js @@ -1,3 +1,12 @@ +/* +███████╗██╗███╗ ██╗ ██████╗ ███████╗██████╗ ██╗ ██╗███████╗ ██████╗ +██╔â•â•â•â•â•██║████╗ ██║██╔â•â•â•â•╠██╔â•â•â•â•â•██╔â•â•██╗ ██║ ██║██╔â•â•â•â•â•██╔â•â•â•â•â• +█████╗ ██║██╔██╗ ██║██║ ███╗█████╗ ██████╔╠██║ █╗ ██║█████╗ ██║ ███╗ +██╔â•â•╠██║██║╚██╗██║██║ ██║██╔â•â•╠██╔â•â•██╗ ██║███╗██║██╔â•â•╠██║ ██║ +██║ ██║██║ ╚████║╚██████╔â•███████╗██║ ██║ ╚███╔███╔â•███████╗╚██████╔╠+╚â•╠╚â•â•╚â•╠╚â•â•â•╠╚â•â•â•â•â•╠╚â•â•â•â•â•â•â•╚â•╠╚â•╠╚â•â•â•╚â•â•╠╚â•â•â•â•â•â•╠╚â•â•â•â•â•â• +*/ + const BASE_URL = `${window.location.origin}/${window.location.pathname.split('/').filter((e, i)=>{return i>0 & i<4}).join('/')}`; const ON = true; const OFF = false; @@ -24,6 +33,15 @@ const DEFAULT = { avatar: `${BASE_URL}/assets/images/avatar.png` }; +/* +███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗ +██╔â•â•â•â•â•██╔â•â•â•â•â•╚â•â•██╔â•â•â•╚â•â•██╔â•â•â•██║████╗ ██║██╔â•â•â•â•╠██╔â•â•â•â•â• +███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗ +╚â•â•â•â•██║██╔â•â•╠██║ ██║ ██║██║╚██╗██║██║ ██║╚â•â•â•â•██║ +███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔â•███████║ +╚â•â•â•â•â•â•â•╚â•â•â•â•â•â•╠╚â•╠╚â•╠╚â•â•╚â•╠╚â•â•â•╠╚â•â•â•â•â•╠╚â•â•â•â•â•â•â• +*/ + let settings = { switches: [ @@ -35,10 +53,6 @@ let settings = { name: "projectName", state: ON }, - { - name: "menu", - state: OFF - }, { name: "participants", state: ON @@ -53,21 +67,6 @@ let settings = { projectName: "M4_LAB Page Demo", - menu: [ - { - menuText: "home", - link: `${BASE_URL}/home/` - }, - { - menuText: "results", - link: `${BASE_URL}/results/` - }, - { - menuText: "demo", - link: "http://example.com" - } - ], - participants: [ { name: "John Doe",