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