仮表示機能実装

This commit is contained in:
harukin-OneMix4
2023-06-27 12:58:00 +09:00
parent 180bc95a80
commit 35907df3c4
3 changed files with 58 additions and 14 deletions

View File

@@ -619,3 +619,38 @@ export const customTrainDataDetector = (TrainNumber) => {
break;
}
};
export const getJRF = (num) => {
switch (num) {
case "71":
return "東京(タ)→高松(タ)\\n";
case "73":
case "75":
return "大阪(タ)→高松(タ)\\n";
case "3079":
return "高松(タ)→伊予三島\\n";
case "3071":
case "3077":
return "高松(タ)→新居浜\\n";
case "3073":
return "高松(タ)→松山貨物\\n";
case "70":
return "高松(タ)→東京(タ)\\n";
case "74":
case "76":
return "高松(タ)→大阪(タ)\\n";
case "3078":
return "伊予三島→高松(タ)\\n";
case "3070":
return "新居浜→高松(タ)\\n";
case "3076":
return "新居浜→高松(タ)\\n";
case "3072":
return "松山貨物→高松(タ)\\n";
case "9070":
return "臨時貨物\\n";
default:
JRF = true;
return null;
}
};
console.log(getJRF);