From 06d86f8c3012d63f452a9ca11e6d4309efceb6de Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Wed, 29 Apr 2020 22:56:37 -0500 Subject: [PATCH] Improved code by making more oo add functionality and ingo in order frm. --- .gitignore | 1 + client/css/optiTrainer.css | 41 ++++++ client/index.html | 3 +- client/js/masterFilter.js | 280 +++++++++++++++++++------------------ client/js/optiTrainer.js | 53 +------ client/js/orderFrame.js | 95 +++++++++++++ server/start-win.bat | 1 + 7 files changed, 287 insertions(+), 187 deletions(-) create mode 100644 client/js/orderFrame.js create mode 100644 server/start-win.bat diff --git a/.gitignore b/.gitignore index dc1aa56..b6cf75d 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,4 @@ dist # Stores VSCode versions used for testing VSCode extensions .vscode-test server/quoteDBs/consolidated.sqlite3 +server/quoteDBs/processedDBs diff --git a/client/css/optiTrainer.css b/client/css/optiTrainer.css index a68ae55..0b266be 100644 --- a/client/css/optiTrainer.css +++ b/client/css/optiTrainer.css @@ -92,6 +92,40 @@ body { z-index:1; } +#lbCostAmount { + position: absolute; + top:0; + left:100; + font-weight: bolder; + text-align: right; + color:crimson; + width: 180px; +} + +#frmOrder ul li { + border-top:1px solid blue; +} + +#frmOrder div.orderItemLine2 { + text-align: right; +} + +#frmOrder ul li .totalCost { + font-weight: bolder; + color: blue; +} + +#frmOrder span.quantity { + font-weight: bolder; + color: blue; +} +#frmOrder span.openType { + font-weight: bolder; + color: blue; +} +#frmOrder span.singlePrice { + color: blue; +} #datePicker { background-color:#ccff00; position:fixed; @@ -123,6 +157,13 @@ body { color:#0000FF; cursor: no-drop; } +.plusMinus { + background-color: blue; + color:#ccff00; + cursor: pointer; + padding-bottom: 2px; + margin-left: 1px; +} .priceClick { cursor: copy; diff --git a/client/index.html b/client/index.html index 500102b..77fab41 100644 --- a/client/index.html +++ b/client/index.html @@ -11,8 +11,9 @@ - + + OptionTrainer diff --git a/client/js/masterFilter.js b/client/js/masterFilter.js index f9c4781..8782100 100644 --- a/client/js/masterFilter.js +++ b/client/js/masterFilter.js @@ -1,12 +1,10 @@ -var filterContext={}; - let createMasterFilterFrame=()=>{ - let theFrameDiv=document.createElement("div"); - theFrameDiv.setAttribute("id","frmMasterFilter"); - theFrameDiv.className="container-fluid " - window.document.getElementById('app').append(theFrameDiv); + let me=window.myMasterFilter = document.createElement("div"); + me.setAttribute("id","frmMasterFilter"); + me.className="container-fluid " + window.document.getElementById('app').append(me); - theFrameDiv.innerHTML=` + me.innerHTML=`