駅メニューの全駅解放
This commit is contained in:
parent
6233c94a80
commit
5678ad5b35
@ -746,6 +746,23 @@ const setStationMenuDialog = new MutationObserver( (mutations) => {
|
|||||||
window.ReactNativeWebView.postMessage(JSON.stringify({type:"PopUpMenu",event:s[0],id:s[1],name:s[2],pdf:s[3],map:s[4],url:s[5],chk:s[6]}));
|
window.ReactNativeWebView.postMessage(JSON.stringify({type:"PopUpMenu",event:s[0],id:s[1],name:s[2],pdf:s[3],map:s[4],url:s[5],chk:s[6]}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const data2 =[];
|
||||||
|
document.querySelectorAll('#disp > div > div > div > div > font > div').forEach(d=>data2.push(d))
|
||||||
|
|
||||||
|
for(let d of data2 ){
|
||||||
|
if(!d.offclick){
|
||||||
|
d.offclick = d.onclick.toString();
|
||||||
|
}
|
||||||
|
const stationID = d.childNodes[0].innerText;
|
||||||
|
const PDFAddress = d.offclick.split("'")[1];
|
||||||
|
const Name = d.childNodes[2].innerText;
|
||||||
|
//alert(PDFAddress);
|
||||||
|
d.onclick = () =>{
|
||||||
|
//const s = d.offclick.replace('(event)','').replaceAll("'", "").split('(')[1].split(')')[0].split(',');
|
||||||
|
// これの中身抽出 PopUpMenu(event,'2','端岡','http://www.jr-shikoku.co.jp/01_trainbus/jikoku/pdf/hashioka.pdf','https://www.google.co.jp/maps/place/34.305027,133.967643','','1')
|
||||||
|
window.ReactNativeWebView.postMessage(JSON.stringify({type:"PopUpMenu",id:stationID,name:Name,pdf:PDFAddress}));
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 監視を開始
|
// 監視を開始
|
||||||
|
Loading…
Reference in New Issue
Block a user