From 587eb612e3c56639efbbeb7e5dfabecd003efa63 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Wed, 16 Dec 2020 22:06:07 +0100 Subject: [PATCH] Search results html + css v1 --- Client/WebServer/css/docs.css | 53 ++++++------------- .../UI/Spaces/Docs-Space/DocsSpace.js | 47 ++++++++++------ 2 files changed, 46 insertions(+), 54 deletions(-) diff --git a/Client/WebServer/css/docs.css b/Client/WebServer/css/docs.css index f88f7c8ba..5aaa94269 100644 --- a/Client/WebServer/css/docs.css +++ b/Client/WebServer/css/docs.css @@ -516,14 +516,9 @@ width: 100%; display: table; padding-left: 240px; margin-top: 20px; - border-bottom: 1px solid #dedede; } - - - - .docs-search-results-header-tabs-container > input { display: none; } @@ -548,45 +543,29 @@ width: 100%; border-bottom: 3px solid #e44d40; } -#docs-search-result-tab-all:checked ~ .docs-search-result-content #docs-search-result-content-all, -#docs-search-result-tab-nodes:checked ~ .docs-search-result-content #docs-search-result-content-nodes, -#docs-search-result-tab-concepts:checked ~ .docs-search-result-content #docs-search-result-content-concepts, -#docs-search-result-tab-topics:checked ~ .docs-search-result-content #docs-search-result-content-topics, -#docs-search-result-tab-projects:checked ~ .docs-search-result-content #docs-search-result-content-projects, -#docs-search-result-tab-code:checked ~ .docs-search-result-content #docs-search-result-content-code, -#docs-search-result-tab-configs:checked ~ .docs-search-result-content #docs-search-result-content-configs { - display: block; -} - - - - - - -.docs-search-results-header-tab { - display: table-cell; - vertical-align: bottom; - padding: 0 15px 5px 15px; - color: #333; - font-size: 90%; -} - -.docs-search-results-header-tab-selected { - color: #e44d40; - padding-bottom: 2px; - border-bottom: 3px solid #e44d40; -} - /* Search Results Page Content */ - - -/* Search Results Page Record */ +.docs-search-result-content { +border-top: 1px solid #dedede; +margin-left: -240px; +} .docs-search-result-content > div { display: none; } +#tab1:checked ~ .docs-search-result-content #content1, +#tab2:checked ~ .docs-search-result-content #content2, +#tab3:checked ~ .docs-search-result-content #content3, +#tab4:checked ~ .docs-search-result-content #content4, +#tab5:checked ~ .docs-search-result-content #content5, +#tab6:checked ~ .docs-search-result-content #content6, +#tab7:checked ~ .docs-search-result-content #content7 { + display: block; +} + +/* Search Results Page Record */ + .docs-search-result-content-record-container { margin: 20px 0; } diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 7bff44453..b7e87284e 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -527,7 +527,7 @@ function newSuperalgosDocSpace() { function renderSearchResultsPage() { let HTML = '' - // Header + // Logo & Search Box HTML = HTML + '
' HTML = HTML + '
' @@ -536,72 +536,85 @@ function newSuperalgosDocSpace() { HTML = HTML + '' HTML = HTML + '
' HTML = HTML + '' + + // Tabs + HTML = HTML + '
' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '' - HTML = HTML + '
' + HTML = HTML + '' + HTML = HTML + '' + HTML = HTML + '' + HTML = HTML + '' + HTML = HTML + '' + HTML = HTML + '' + HTML = HTML + '' // Results + HTML = HTML + '
' + // All Tab - HTML = HTML + '
' - HTML = HTML + '
' + HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '

Superalgos > Node

' HTML = HTML + '

Data Storage

' HTML = HTML + '

The data storage node holds the definitions as to what data is stored in the corresponding network node.

' HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '

Superalgos > Node

' HTML = HTML + '

Data Mines Data

' HTML = HTML + '

Session independent data refers to data generated by sensors and indicators, not related to trading sessions.

' HTML = HTML + '
' - HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '

Superalgos > Node

' HTML = HTML + '

Trading Mines Data

' HTML = HTML + '

Session-based data refers to data that is generated as a consequence of running a trading session, that is, data the trading bot instance generates while running backtesting, paper trading, forward testing, or live trading sessions.

' HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '

Ethereum > Topic

' HTML = HTML + '

Blockchain Data Mining

' HTML = HTML + '

Mining data from the Ethereum blockchain requires running an Ethereum node. Superalgos interfaces with the Ethereum blockchaing via...

' HTML = HTML + '
' - HTML = HTML + '
' + HTML = HTML + '
' // Nodes Tab - HTML = HTML + '
' - HTML = HTML + '
' + HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '

Superalgos > Node

' HTML = HTML + '

Data Storage

' HTML = HTML + '

The data storage node holds the definitions as to what data is stored in the corresponding network node.

' HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '

Superalgos > Node

' HTML = HTML + '

Data Mines Data

' HTML = HTML + '

Session independent data refers to data generated by sensors and indicators, not related to trading sessions.

' HTML = HTML + '
' - HTML = HTML + '
' + HTML = HTML + '
' HTML = HTML + '

Superalgos > Node

' HTML = HTML + '

Trading Mines Data

' HTML = HTML + '

Session-based data refers to data that is generated as a consequence of running a trading session, that is, data the trading bot instance generates while running backtesting, paper trading, forward testing, or live trading sessions.

' HTML = HTML + '
' + + HTML = HTML + '
' + + // End Content + HTML = HTML + '
' HTML = HTML + '
' - + // End Section HTML = HTML + '
' + let docsSpaceDiv = document.getElementById('docs-space-div') docsSpaceDiv.innerHTML = HTML + addFooter() detectEnterOnSearchBox()