中央時三段活用可能に変更、ダイヤ情報の部分更新
This commit is contained in:
@@ -454,6 +454,8 @@ export const injectJavascriptData = (
|
||||
//千年ものがたり
|
||||
case "8011D":
|
||||
case "8012D":
|
||||
case "8021D":
|
||||
case "8022D":
|
||||
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/s185mm1.png');
|
||||
break;
|
||||
|
||||
@@ -462,20 +464,49 @@ export const injectJavascriptData = (
|
||||
case "8054D":
|
||||
case "8062D":
|
||||
case "8063D":
|
||||
case "8082D":
|
||||
case "8083D":
|
||||
case "8073D":
|
||||
case "8074D":
|
||||
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/s185ym1.png');
|
||||
break;
|
||||
//ラマルドボア
|
||||
case "9253M":
|
||||
case "9256M":
|
||||
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/w213w.png');
|
||||
break;
|
||||
|
||||
// 貨物
|
||||
case "74":
|
||||
case "75":
|
||||
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/ef65_fs.png');
|
||||
break;
|
||||
case "70":
|
||||
case "71":
|
||||
case "73":
|
||||
case "76":
|
||||
case "3070":
|
||||
case "3071":
|
||||
case "3072":
|
||||
case "3073":
|
||||
case "3076":
|
||||
case "3077":
|
||||
case "3078":
|
||||
case "3079":
|
||||
case "8070":
|
||||
case "8071":
|
||||
case "8072":
|
||||
case "8077":
|
||||
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/ef210a.png');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
`
|
||||
: ``;
|
||||
|
||||
const JRF_icon =
|
||||
iconSetting == "true"
|
||||
? `JRF || setStationIcon(element.querySelector("img"),'https://storage.haruk.in/ef210a.png');`
|
||||
: ``;
|
||||
const normal_train_name = `
|
||||
if(new RegExp(/^4[1-9]\\d\\d[DM]$/).test(列番データ) || new RegExp(/^5[1-7]\\d\\d[DM]$/).test(列番データ)){
|
||||
if(new RegExp(/^4[1-9]\\d\\d[DM]$/).test(列番データ) || new RegExp(/^5[1-7]\\d\\d[DM]$/).test(列番データ) || 列番データ ==="3621D"){
|
||||
行き先情報.innerText = "ワンマン\\n"+行き先情報.innerText;
|
||||
flag=true;
|
||||
}
|
||||
@@ -495,8 +526,7 @@ export const injectJavascriptData = (
|
||||
行き先情報.innerText = 行き先情報.innerText+"臨時列車\\n";
|
||||
}
|
||||
`;
|
||||
const JRF_name =
|
||||
`
|
||||
const JRF_name = `
|
||||
let JRF = false;
|
||||
const getJRF = num =>{
|
||||
switch(num){
|
||||
@@ -535,7 +565,7 @@ const getJRF = num =>{
|
||||
const data = getJRF(列番データ);
|
||||
行き先情報.innerText = data != null ? data+行き先情報.innerText : 行き先情報.innerText;
|
||||
|
||||
` + JRF_icon;
|
||||
`;
|
||||
|
||||
const TKT_name = `
|
||||
//安芸行と併結列車を個別に表示、それ以外をdefaultで下りなら既定の行き先を、上りなら奈半利行を設定
|
||||
@@ -548,9 +578,10 @@ const data = getJRF(列番データ);
|
||||
return "ごめん・なはり線直通\\n快速 安芸行";
|
||||
case "5874D":
|
||||
case "5882D":
|
||||
case "5878D":
|
||||
return "ごめん・なはり線直通\\n各停 安芸行";
|
||||
case "742D":
|
||||
case "746D":
|
||||
case "246D":
|
||||
case "750D":
|
||||
return "土佐山田/奈半利行\\n(後免にて解結)\\nごめん・なはり線快速";
|
||||
default:
|
||||
if(new RegExp(/^58[1-3][1,3,5,7,9][DM]$/).test(列番データ)){
|
||||
|
Reference in New Issue
Block a user