Defined user event(zh) while traveling.

This commit is contained in:
AshleyLiuuuuu 2021-11-04 17:53:57 +08:00
parent a1acb729bc
commit 187e43ab7b

View File

@ -20,11 +20,15 @@
$('.travelling h4').length !== 0) { $('.travelling h4').length !== 0) {
const travelingDict = { // todo jsonify const travelingDict = { // todo jsonify
'Recruit Citizens': '招募玩家', 'Recruit Citizens': '招募玩家',
'Events': '事件',
'Torn to London.': '正在飞往英国伦敦London。', 'Torn to London.': '正在飞往英国伦敦London。',
'London to Torn.': '正从英国伦敦London回城。', // todo 所有目的地 'London to Torn.': '正从英国伦敦London回城。', // todo 所有目的地
'\nRemaining Flight Time -\n': ' 剩余时间 - ', '\nRemaining Flight Time -\n': ' 剩余时间 - ',
}; };
$('#skip-to-content')[0].firstChild.nodeValue += '飞行中'; $('#skip-to-content')[0].firstChild.nodeValue += '飞行中';
//Events
$("#events")[0].firstChild.nodeValue = travelingDict[$("#events")[0].firstChild.nodeValue]
// eg. Remaining Flight Time - // eg. Remaining Flight Time -
$('span.remaining-time')[0].firstChild.nodeValue = travelingDict[$('span.remaining-time')[0].firstChild.nodeValue]; $('span.remaining-time')[0].firstChild.nodeValue = travelingDict[$('span.remaining-time')[0].firstChild.nodeValue];
$("#recruit-citizens")[0].firstChild.nodeValue = travelingDict[$("#recruit-citizens")[0].firstChild.nodeValue]; $("#recruit-citizens")[0].firstChild.nodeValue = travelingDict[$("#recruit-citizens")[0].firstChild.nodeValue];