urlparams: rewrite
这个提交包含在:
父节点
01245c4477
当前提交
dbf530a333
11
Js/Main.js
11
Js/Main.js
@ -77,9 +77,7 @@ function onAllLoaded(success) {
|
||||
document.getElementById('parent-container').style.cssText = "opacity: 1;";
|
||||
onWindowResize();
|
||||
window.addEventListener("resize", onWindowResize);
|
||||
if(urlParams['mstid'] && urlParams['id'] && utage.groupedMissions[urlParams['mstid']] && utage.groupedMissions[urlParams['mstid']].Missions[urlParams['id']]) {
|
||||
document.getElementById('play-from-query').style.cssText = "position: fixed; z-index: 15; text-align: center; top: 50%; left: 50%; display: block;";
|
||||
}
|
||||
checkQueryParameters();
|
||||
}, 0);
|
||||
}
|
||||
|
||||
@ -156,6 +154,13 @@ function buildLanguageList() {
|
||||
selectBox.value = selectedLang;
|
||||
}
|
||||
|
||||
function checkQueryParameters() {
|
||||
urlParams = commonFunctions.readQueryParameters();
|
||||
if(urlParams['mstid'] && urlParams['id'] && utage.groupedMissions[urlParams['mstid']] && utage.groupedMissions[urlParams['mstid']].Missions[urlParams['id']]) {
|
||||
document.getElementById('play-from-query').style.cssText = "position: fixed; z-index: 15; text-align: center; top: 50%; left: 50%; display: block;";
|
||||
}
|
||||
}
|
||||
|
||||
function playFromQuery(event) {
|
||||
missionChanged(urlParams['mstid'], urlParams['id']);
|
||||
document.getElementById('play-from-query').style.cssText = "display: none;";
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户