From 55b7cb5f708ea4ea75be5f496b3a7aff8b6adb38 Mon Sep 17 00:00:00 2001 From: vkservicesllc <35149642+vkservicesllc@users.noreply.github.com> Date: Wed, 8 May 2019 09:51:42 -0400 Subject: [PATCH] update 1905080950 --- app/functions-owners.js | 64 ++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 39 deletions(-) diff --git a/app/functions-owners.js b/app/functions-owners.js index ff212ac..13ae8b5 100644 --- a/app/functions-owners.js +++ b/app/functions-owners.js @@ -1,81 +1,67 @@ -const periods = ['Feb 2019', 'Mar 2019', 'Apr 2019', 'May 2019'], +const periods = [/* 'Feb 2019', 'March 2019', */'April 2019', 'May 2019'], effDt = new Date('2019-04-30'); const urls = { 'CAROLINA LOGISTICS, Inc': { id: '70830516181943', - period1: '-', - period2: '-', - period3: 'https://docs.google.com/spreadsheets/d/1P5a6PUXrKf4wwAt1b6CHRLASynvgI4V51kNajvKGMSo/edit#gid=1165085359', - period4: 'https://docs.google.com/spreadsheets/d/1eOC7f-ALEn-eCHeQOzljTIWCyo14wYs8Yi2jck54g8c/edit#gid=1165085359', + period1: 'https://docs.google.com/spreadsheets/d/1P5a6PUXrKf4wwAt1b6CHRLASynvgI4V51kNajvKGMSo/edit#gid=1165085359', + period2: 'https://docs.google.com/spreadsheets/d/1eOC7f-ALEn-eCHeQOzljTIWCyo14wYs8Yi2jck54g8c/edit#gid=1165085359', }, 'DELTA EXPRESS, Inc': { id: '70830515177576', - period1: 'https://docs.google.com/spreadsheets/d/1UN5CDshgEaziW9VFLIs1jErC7kvj1TcVZNfNo1rB-MA/edit#gid=1165085359', - period2: 'https://docs.google.com/spreadsheets/d/1Sp2wmtABSsPFCmy3SHohcYK_YIE2gOrVmI4tq9-pDps/edit#gid=1165085359', - period3: 'https://docs.google.com/spreadsheets/d/1rJ0Jh62ypF-YuAJFjXPcaD-yZg90CsN2yHtCXSl9SPU/edit#gid=1165085359', - period4: 'https://docs.google.com/spreadsheets/d/11iGHHoD4O0iIuj7A81QSC11QeLdT9bpvzo9HYlwcULk/edit#gid=1165085359', + period1: 'https://docs.google.com/spreadsheets/d/1rJ0Jh62ypF-YuAJFjXPcaD-yZg90CsN2yHtCXSl9SPU/edit#gid=1165085359', + period2: 'https://docs.google.com/spreadsheets/d/11iGHHoD4O0iIuj7A81QSC11QeLdT9bpvzo9HYlwcULk/edit#gid=1165085359', }, 'DELTA EXPRESS SERVICES, Inc': { id: '', period1: '-', period2: '-', - period3: '-', - period4: '-', }, 'DELTA LOGISTICS, Inc': { id: '70830517302592', - period1: '-', - period2: '-', - period3: 'https://docs.google.com/spreadsheets/d/1IREZlVnUSgiYBnl9vyxYbjwgD0nztFkG-5czZd55wEc/edit#gid=1165085359', - period4: 'https://docs.google.com/spreadsheets/d/1ofOIvCJIHIGO6plEsJZRrS4j2i1RX_odKNM82wqk15E/edit#gid=1165085359', + period1: 'https://docs.google.com/spreadsheets/d/1IREZlVnUSgiYBnl9vyxYbjwgD0nztFkG-5czZd55wEc/edit#gid=1165085359', + period2: 'https://docs.google.com/spreadsheets/d/1ofOIvCJIHIGO6plEsJZRrS4j2i1RX_odKNM82wqk15E/edit#gid=1165085359', }, 'ONTRACK TRANSPORTATION, Inc': { id: '70830517305886', - period1: '-', - period2: '-', - period3: 'https://docs.google.com/spreadsheets/d/1hplR0OBU_2ebxg4qjs5e8YOJLrpd2q3FUIilOWBu6Vw/edit#gid=1165085359', - period4: 'https://docs.google.com/spreadsheets/d/1eAKLPA9e9wNgrOBob4ZQ-BO98a4sWsNkDDYPV2aneVA/edit#gid=1165085359', + period1: 'https://docs.google.com/spreadsheets/d/1hplR0OBU_2ebxg4qjs5e8YOJLrpd2q3FUIilOWBu6Vw/edit#gid=1165085359', + period2: 'https://docs.google.com/spreadsheets/d/1eAKLPA9e9wNgrOBob4ZQ-BO98a4sWsNkDDYPV2aneVA/edit#gid=1165085359', }, 'PRECISE TRANSPORTATION, Inc': { id: '70830517302433', - period1: '-', - period2: 'https://docs.google.com/spreadsheets/d/1gtP3jhq7CEWyaNQgVJqRxIafeNCOqHzdvNoFn_SblE4/edit#gid=1165085359', - period3: 'https://docs.google.com/spreadsheets/d/19SXcVUxLiY_bbs-T4-x-Wv0pA5vBqVm-v0nzSUHUdlU/edit#gid=1165085359', - period4: 'https://docs.google.com/spreadsheets/d/1bN-anabHpj8wU6h6FvErexG6BCiW-Mg_Cw5euaMuOag/edit#gid=1165085359', + period1: 'https://docs.google.com/spreadsheets/d/19SXcVUxLiY_bbs-T4-x-Wv0pA5vBqVm-v0nzSUHUdlU/edit#gid=1165085359', + period2: 'https://docs.google.com/spreadsheets/d/1bN-anabHpj8wU6h6FvErexG6BCiW-Mg_Cw5euaMuOag/edit#gid=1165085359', }, 'RAINIER TRANSPORTATION, Inc': { id: '', // '70830517307425', period1: '-', period2: '-', - period3: '-', - period4: '-', }, }; -const pad = 'style="padding: 12px 18px;"'; -let table = 'Company NamePeriod 1Period 2Period 3Period 4', +const pad = 'style="padding: 12px 54px;"'; +let table = 'Company NamePeriod 1Period 2', keys = Object.keys(urls); for (let i = 0; i < keys.length; i++) { - let link1 = urls[keys[i]].period1, link2 = urls[keys[i]].period2, link3 = urls[keys[i]].period3, link4 = urls[keys[i]].period4, + let link1 = urls[keys[i]].period1, link2 = urls[keys[i]].period2, // link3 = urls[keys[i]].period3, link4 = urls[keys[i]].period4, anchor1 = (link1 != '-') ? '' : '', anchor2 = (link2 != '-') ? '' : '', - anchor3 = (link3 != '-') ? '' : '', - anchor4 = (link4 != '-') ? '' : '', + // anchor3 = (link3 != '-') ? '' : '', + // anchor4 = (link4 != '-') ? '' : '', anchName1 = (link1 == '-') ? '' : (link1 != '#') ? periods[0] + '' : '' + periods[0], anchName2 = (link2 == '-') ? '' : - (link2 != '#') ? periods[1] + '' : - '' + periods[1], - anchName3 = (link3 == '-') ? '' : - (link3 != '#') ? periods[2] + '' : - '' + periods[2], - anchName4 = (link4 == '-') ? '' : - (link4 != '#' && effDt <= new Date()) ? periods[3] + '' : - '' + periods[3]; + (link2 != '#' && effDt <= new Date()) ? periods[1] + '' : + '' + periods[1]; + // anchName3 = (link3 == '-') ? '' : + // (link3 != '#') ? periods[2] + '' : + // '' + periods[2]; + // anchName4 = (link4 == '-') ? '' : + // (link4 != '#' && effDt <= new Date()) ? periods[3] + '' : + // '' + periods[3]; let efsKey = urls[keys[i]].id, efsKeyEl; let redCl = (!efsKey) ? ' class="redundant"' : ''; @@ -85,7 +71,7 @@ for (let i = 0; i < keys.length; i++) { table += '' + keys[i] + efsKeyEl + ''; table += '' + anchor1 + anchName1 + '' + anchor2 + anchName2 + - '' + anchor3 + anchName3 + '' + anchor4 + anchName4 + ''; + /* '' + anchor3 + anchName3 + '' + anchor4 + anchName4 + */ ''; }