diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 06:18:20 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 06:18:20 +0300 |
commit | 7eb510a56a0015ccd887b694bdb497309dc42f87 (patch) | |
tree | 94ad8d24f308c05ca782a8c6bca53e85a0929086 /src/js/environment-setup.js | |
parent | c03eac7b80432c79c01a744734d0a4d4e989f46f (diff) | |
download | arching-kaos-web-ui-7eb510a56a0015ccd887b694bdb497309dc42f87.tar.gz arching-kaos-web-ui-7eb510a56a0015ccd887b694bdb497309dc42f87.tar.bz2 arching-kaos-web-ui-7eb510a56a0015ccd887b694bdb497309dc42f87.zip |
Huge update, read description
- Bug fixes
- Splitted app.js to many files
- Gathered CSS to one place instead of layers
- Redesigned page layout
- Added settings so you can personalize them later
- Redesigned menu layout
- Added radio player for AKDR to connect there
Diffstat (limited to 'src/js/environment-setup.js')
-rw-r--r-- | src/js/environment-setup.js | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/js/environment-setup.js b/src/js/environment-setup.js new file mode 100644 index 0000000..0ff2323 --- /dev/null +++ b/src/js/environment-setup.js @@ -0,0 +1,71 @@ + +const DEBUG = false + +var mixtapeIds = []; +var holders = []; +var stellarNetworkConfiguredAddresses = 0; +var zchain = new Array; +var zchains = new Array; + +/* + * Body and pageLayout resizer to device's resolution. + * + * TODO: Figure out why it doesn't work in fullscreen App mode (android) + * + */ +var body = document.querySelector('body'); +var pageLayout = document.querySelector('.page-layout'); +var mainContainer = document.querySelector('.main'); +var doubleFloorMenu = document.querySelector('#double-floor'); +var isMobile = false; +var aknet = document.querySelector('.aknet-network') + + +/* + * Array of all the menu-panes IDs + */ +var menuids = [ + '#welcome-section', + '#about-section', + '#zchain-data-section', + '#news-section', + '#stats-section', + '#mixtapes-section', + '#chat-section', + '#mypage-section', + '#stellar-balances', + '#stellar-data-config', + '#arching-kaos-id', + '#files-section', + '#settings-section', + '#stellar-section' +]; + +/* + * We select our basic placeholders. + * + * Placeholders are mostly 'div' with specified id and we use them here + * to append data on specific places in the page. + * + */ +var progressPlaceholder = document.querySelector('#total-progress'); +var currentLogMessageElement = document.querySelector('#current-log-message'); +var logsAreaElement = document.querySelector("#logs-area-element"); +var radio = document.querySelector("#radio-player"); +var radioButton = document.querySelector("#radio-button-controller"); + +// Here we store the participants found +var participants = []; +/* + * Get addresses that trust the asset + * Limit is 200 addresses cause horizon API limitations. + * + * Returns div DOM elements for each found address, embedding + * the address both in innerHTML and in id of the div. + */ +var lastPage = ''; + +var stellar_connection_status = 0; + +// var localnode = "https://aka.arching-kaos.net:8610/v0/akid"; +var localnode = "http://api.aknet.z.kaotisk-hund.com/v0/akid"; |