From d5a521c2fdaae1f9f411906926b01eef4346bc34 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 19 Jun 2021 12:57:44 +0200 Subject: [PATCH] Splash Text implementation --- Client/WebServer/index.html | 61 ++++++++++++++++--- .../Foundations/UI/Utilities/StatusBar.js | 2 +- 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/Client/WebServer/index.html b/Client/WebServer/index.html index b5114be9a..5967446ff 100644 --- a/Client/WebServer/index.html +++ b/Client/WebServer/index.html @@ -32,7 +32,8 @@ } catch (e) { console.error('CJ protection', e) } try { - loadSuperalgos(); + drawSplashText() + loadSuperalgos() } catch (err) { console.log("[ERROR] UI can not be started. Please check that WebServer is running.", err); } @@ -48,21 +49,65 @@ console.log('Error Resizing. ' + err.stack) } } + + function drawSplashText() { + const splashTextArray = [ + { + "splashTextLine1Html": 'Superalgos is open source, forever free for everyone, and is constantly improving thanks to the involvement of contributors:' + , + "splashTextLine2Html": 'Luis Fernando Molina, Julian Molina, Andreja Cobeljic, Ira Miller, matbenitez, bearcanrun, nikolabjelo, 9808us, pmmax, suttridge, Basalt09, Mhnramin, 0xperez, infin1t3, benitezme, whtv, cozed-gh, Eduardo678-dotcom, Smidy13, teehanming, 64bittuning, joenij, apronotti, Noeljarillo, ssplatt, rico4dev, DougJCook, mane, Cordo-van-Saviour, CarnivalBen, Sil3ntLight, pisukesoramame, Edodi, harrellbm, CaptainJeff, Jeff Braun, Francisco J. Santillán, Norman, Viktoria B., Guillermo V., Daniel J., Javier A., Gustavo J., Romina GS, Pedro P., Thais M., Andrey M., Loui M., Natalia, M., Bashar A., Carlos V., Diego M., Sebastian E., Bogdan P., Marko V., Igor S., Niksa K., Rodrigo M., Nicanor M., Mateo H., Lan T., Leon A., Uroš R., Filip M., Vladimir J. and Pavle B.' + , + "splashTextLine3Html": 'Please, give a star to the Superalgos repo at GitHub.com... It helps other devs find the project!' + }, + { + "splashTextLine1Html": 'Superalgos is a Community of Algo-Traders, sharing knoleadge, experience and tools between each other.' + , + "splashTextLine2Html": 'The Superalgos Community is capable of collective bargaining with Crypto Exchanges to get better trading fees for all members.' + , + "splashTextLine3Html": 'Become part of the Superalgos Community by making a small contribution to the open source project!' + }, + { + "splashTextLine1Html": 'Superalgos is built on Core Values that we are never going to change.' + , + "splashTextLine2Html": 'Superalgos software does not include Ads of any kind, and it will never do it. Superalgos software does not collect user information of any kind, and it will never do it. Superalgos software is Free of Charge for all community members, and it will allways be. We value Education that is why we build into the software educational tools and content.' + , + "splashTextLine3Html": 'We build this together and it belongs to us. Become part of the Superalgos Community by making a small contribution to the open source project!' + }, + { + "splashTextLine1Html": 'Superalgos is Permissionless. Don\'t like the UI? Don\'t like the icons used? Don\'t like the Charting System? Don\'t like the Visual Designer? Don\'t like the Visual Debugger? Don\'t like the Docs? Don\'t like the Trading Bot? Don\'t like the Indicators? Don\'t like the Plotters? Don\'t like any other part of the system?' + , + "splashTextLine2Html": 'No problem, code or integrate libraries with your own version of any component and we promise we will merge your work and provide it as an alternative to users. We believe in Permissionless Innovation and that users, not team members, are the final judges and the ones who decide what they prefer to use. You are free to create an alternative for any part of the system that you believe that should work or should have been done in a different way. We will help you integrate your vision into the next release and enable a way for users to choose between different implementations of the same functionality. You will also be granted the title of maintainer of the functionality you provide and have decision power on how it evolves in the future.' + , + "splashTextLine3Html": 'We are strong belieavers in Permissionless Innovation. You don\'t need to ask for permission to become one of us. Make a small contribution to the open source project and you will become a member of the Superalgos Community' + } + ] + + let arrayIndex = Math.trunc(Math.random() * splashTextArray.length) + let splashTextElement + splashTextElement = document.getElementById('splash-text-line-1') + splashTextElement.innerHTML = splashTextArray[arrayIndex].splashTextLine1Html + splashTextElement = document.getElementById('splash-text-line-2') + splashTextElement.innerHTML = splashTextArray[arrayIndex].splashTextLine2Html + splashTextElement = document.getElementById('splash-text-line-3') + splashTextElement.innerHTML = splashTextArray[arrayIndex].splashTextLine3Html + } -
-

Superalgos is open source, forever free for everyone, and is constantly improving thanks to the involvement of contributors:

-

Luis Fernando Molina, Julian Molina, Andreja Cobeljic, Ira Miller, matbenitez, bearcanrun, nikolabjelo, 9808us, pmmax, suttridge, Basalt09, Mhnramin, 0xperez, infin1t3, benitezme, whtv, cozed-gh, Eduardo678-dotcom, Smidy13, teehanming, 64bittuning, joenij, apronotti, Noeljarillo, ssplatt, rico4dev, DougJCook, mane, Cordo-van-Saviour, CarnivalBen, Sil3ntLight, pisukesoramame, Edodi, harrellbm, CaptainJeff, Jeff Braun, Francisco J. Santillán, Norman, Viktoria B., Guillermo V., Daniel J., Javier A., Gustavo J., Romina GS, Pedro P., Thais M., Andrey M., Loui M., Natalia M., Bashar A., Carlos V., Diego M., Sebastian E., Bogdan P., Marko V., Igor S., Niksa K., Rodrigo M., Nicanor M., Mateo H., Lan T., Leon A., Uroš R., Filip M., Vladimir J. and Pavle B.

-

Please, give a star to the Superalgos repo at GitHub.com... It helps other devs find the project!

-

The UI is loading...

+
+

+

+

+

The UI is loading...

-
+
+
+
@@ -196,4 +241,4 @@ - + \ No newline at end of file diff --git a/Projects/Foundations/UI/Utilities/StatusBar.js b/Projects/Foundations/UI/Utilities/StatusBar.js index aa8d7c9e6..df1f4ff60 100644 --- a/Projects/Foundations/UI/Utilities/StatusBar.js +++ b/Projects/Foundations/UI/Utilities/StatusBar.js @@ -6,7 +6,7 @@ function newFoundationsUtilitiesStatusBar() { return thisObject function changeStatus(newStatus) { - let statusParagraph = document.getElementById('credits-page-status-paragraph') + let statusParagraph = document.getElementById('splash-text-status-paragraph') statusParagraph.lastChild.data = newStatus try {