partyのbackgoundColorを追加
This commit is contained in:
@@ -1023,6 +1023,20 @@ export const injectJavascriptData: InjectJavascriptData = (
|
||||
const setNewTrainItem = (element,hasProblem,type)=>{
|
||||
var 列番データ = element.getAttribute('offclick').split('"')[1];
|
||||
const JRFTemp = getJRF(列番データ);
|
||||
switch(true){
|
||||
case 列番データ.indexOf("H") != -1:
|
||||
case 列番データ.indexOf("R") != -1:
|
||||
case 列番データ.indexOf("E") != -1:
|
||||
case 列番データ.indexOf("A") != -1:
|
||||
case 列番データ.indexOf("B") != -1:
|
||||
case 列番データ.indexOf("T") != -1:
|
||||
case !!JRFTemp:
|
||||
element.style.backgroundColor = '#c7c7c7cc';
|
||||
break;
|
||||
default:
|
||||
element.style.backgroundColor = '#ffffffcc';
|
||||
break;
|
||||
}
|
||||
if(trainDataList.find(e => e.id === 列番データ) !== undefined){
|
||||
const data = trainDataList.find(e => e.id === 列番データ);
|
||||
switch (data.type) {
|
||||
@@ -1056,6 +1070,7 @@ const setNewTrainItem = (element,hasProblem,type)=>{
|
||||
break;
|
||||
case "Party":
|
||||
element.style.borderColor = "#ff7300ff";
|
||||
element.style.backgroundColor = '#ffd0a9ff';
|
||||
break;
|
||||
case "Freight":
|
||||
element.style.borderColor = "#00869ecc";
|
||||
@@ -1084,19 +1099,6 @@ const setNewTrainItem = (element,hasProblem,type)=>{
|
||||
element.style.borderWidth = '2px';
|
||||
element.style.borderStyle = 'solid';
|
||||
element.style.borderRadius = '10%';
|
||||
switch(true){
|
||||
case 列番データ.indexOf("H") != -1:
|
||||
case 列番データ.indexOf("R") != -1:
|
||||
case 列番データ.indexOf("E") != -1:
|
||||
case 列番データ.indexOf("A") != -1:
|
||||
case 列番データ.indexOf("B") != -1:
|
||||
case !!JRFTemp:
|
||||
element.style.backgroundColor = 'rgba(199, 199, 199, 0.8)';
|
||||
break;
|
||||
default:
|
||||
element.style.backgroundColor = 'rgba(255, 255, 255, 0.8)';
|
||||
break;
|
||||
}
|
||||
if(hasProblem){
|
||||
element.style.boxShadow = '0 0 10px rgba(255, 0, 0, 0.9)';
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user