diff --git a/public/settings.js b/public/settings.js index bb244700363ef071182c864e73b36ccbea210a10..18539a91b5d540150cc3ceb0610f9138ff311575 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,21 +33,18 @@ const DEFAULT = { avatar: `${BASE_URL}/assets/images/avatar.png` }; +/* +███████╗███████╗████████╗████████╗██╗███╗ ██╗ ██████╗ ███████╗ +██╔â•â•â•â•â•██╔â•â•â•â•â•╚â•â•██╔â•â•â•╚â•â•██╔â•â•â•██║████╗ ██║██╔â•â•â•â•╠██╔â•â•â•â•â• +███████╗█████╗ ██║ ██║ ██║██╔██╗ ██║██║ ███╗███████╗ +╚â•â•â•â•██║██╔â•â•╠██║ ██║ ██║██║╚██╗██║██║ ██║╚â•â•â•â•██║ +███████║███████╗ ██║ ██║ ██║██║ ╚████║╚██████╔â•███████║ +╚â•â•â•â•â•â•â•╚â•â•â•â•â•â•╠╚â•╠╚â•╠╚â•â•╚â•╠╚â•â•â•╠╚â•â•â•â•â•╠╚â•â•â•â•â•â•â• +*/ + let settings = { switches: [ - { - name: "projectLogo", - state: OFF - }, - { - name: "projectName", - state: OFF - }, - { - name: "menu", - state: OFF - }, { name: "participants", state: ON @@ -49,25 +55,6 @@ let settings = { } ], - projectLogo: `${BASE_URL}/assets/logos/M4_LAB_tr.png`, - - 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",