◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:EnemyInfo/js”的版本间的差异
(测试) |
|||
(未显示3个用户的11个中间版本) | |||
第27行: | 第27行: | ||
xmlhttp_Spot.onreadystatechange = function() { | xmlhttp_Spot.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Spot = JSON.parse(this.responseText | + | Spot = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Spot.open("GET", " | + | xmlhttp_Spot.open("GET", "/images/0/06/StcSpot.txt", true); |
xmlhttp_Spot.send(); | xmlhttp_Spot.send(); | ||
第36行: | 第36行: | ||
xmlhttp_in_team.onreadystatechange = function() { | xmlhttp_in_team.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Enemy_in_team = JSON.parse(this.responseText | + | Enemy_in_team = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_in_team.open("GET", " | + | xmlhttp_in_team.open("GET", "/images/4/48/StcEnemy_in_team.txt", true); |
xmlhttp_in_team.send(); | xmlhttp_in_team.send(); | ||
第45行: | 第45行: | ||
xmlhttp_standard_attribute.onreadystatechange = function() { | xmlhttp_standard_attribute.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Enemy_standard_attribute = JSON.parse(this.responseText | + | Enemy_standard_attribute = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_standard_attribute.open("GET", " | + | xmlhttp_standard_attribute.open("GET", "/images/1/13/StcEnemy_standard_attribute.txt", true); |
xmlhttp_standard_attribute.send(); | xmlhttp_standard_attribute.send(); | ||
第54行: | 第54行: | ||
xmlhttp_team.onreadystatechange = function() { | xmlhttp_team.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Enemy_team = JSON.parse(this.responseText | + | Enemy_team = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_team.open("GET", " | + | xmlhttp_team.open("GET", "/images/c/c8/StcEnemy_team.txt", true); |
xmlhttp_team.send(); | xmlhttp_team.send(); | ||
第63行: | 第63行: | ||
xmlhttp_Theater_area.onreadystatechange = function() { | xmlhttp_Theater_area.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Theater_area = JSON.parse(this.responseText | + | Theater_area = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Theater_area.open("GET", " | + | xmlhttp_Theater_area.open("GET", "/images/8/81/StcTheater_area.txt", true); |
xmlhttp_Theater_area.send(); | xmlhttp_Theater_area.send(); | ||
第72行: | 第72行: | ||
xmlhttp_Building.onreadystatechange = function() { | xmlhttp_Building.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Building = JSON.parse(this.responseText | + | Building = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Building.open("GET", " | + | xmlhttp_Building.open("GET", "/images/6/69/StcBuilding.txt", true); |
xmlhttp_Building.send(); | xmlhttp_Building.send(); | ||
第81行: | 第81行: | ||
xmlhttp_Mission.onreadystatechange = function() { | xmlhttp_Mission.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Mission = JSON.parse(this.responseText | + | Mission = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Mission.open("GET", " | + | xmlhttp_Mission.open("GET", "/images/4/40/StcMission.txt", true); |
xmlhttp_Mission.send(); | xmlhttp_Mission.send(); | ||
第90行: | 第90行: | ||
xmlhttp_charater_type.onreadystatechange = function() { | xmlhttp_charater_type.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Enemy_charater_type = JSON.parse(this.responseText | + | Enemy_charater_type = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_charater_type.open("GET", " | + | xmlhttp_charater_type.open("GET", "/images/6/66/StcEnemy_character_type.txt", true); |
xmlhttp_charater_type.send(); | xmlhttp_charater_type.send(); | ||
第99行: | 第99行: | ||
xmlhttp_Ally_team.onreadystatechange = function() { | xmlhttp_Ally_team.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Ally_team = JSON.parse(this.responseText | + | Ally_team = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Ally_team.open("GET", " | + | xmlhttp_Ally_team.open("GET", "/images/e/e4/StcAlly_team.txt", true); |
xmlhttp_Ally_team.send(); | xmlhttp_Ally_team.send(); | ||
第108行: | 第108行: | ||
xmlhttp_Team_ai.onreadystatechange = function() { | xmlhttp_Team_ai.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Team_ai = JSON.parse(this.responseText | + | Team_ai = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Team_ai.open("GET", " | + | xmlhttp_Team_ai.open("GET", "/images/b/b7/StcTeam_ai.txt", true); |
xmlhttp_Team_ai.send(); | xmlhttp_Team_ai.send(); | ||
第117行: | 第117行: | ||
xmlhttp_Mission_targettrain_enemy.onreadystatechange = function() { | xmlhttp_Mission_targettrain_enemy.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | if (this.readyState == 4 && this.status == 200) { | ||
− | Mission_targettrain_enemy = JSON.parse(this.responseText | + | Mission_targettrain_enemy = JSON.parse(this.responseText); |
loadstate ++; } | loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Mission_targettrain_enemy.open("GET", " | + | xmlhttp_Mission_targettrain_enemy.open("GET", "/images/c/c6/StcMission_targettrain_enemy.txt", true); |
xmlhttp_Mission_targettrain_enemy.send(); | xmlhttp_Mission_targettrain_enemy.send(); | ||
第129行: | 第129行: | ||
if (this.readyState == 4 && this.status == 200) { Building_txt = this.responseText; loadstate ++; } | if (this.readyState == 4 && this.status == 200) { Building_txt = this.responseText; loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Building_txt.open("GET", " | + | xmlhttp_Building_txt.open("GET", "/images/8/8f/Building.txt", true); |
xmlhttp_Building_txt.send(); | xmlhttp_Building_txt.send(); | ||
第136行: | 第136行: | ||
if (this.readyState == 4 && this.status == 200) { Mission_txt = this.responseText; loadstate ++; } | if (this.readyState == 4 && this.status == 200) { Mission_txt = this.responseText; loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Mission_txt.open("GET", " | + | xmlhttp_Mission_txt.open("GET", "/images/c/c7/Mission.txt", true); |
xmlhttp_Mission_txt.send(); | xmlhttp_Mission_txt.send(); | ||
第143行: | 第143行: | ||
if (this.readyState == 4 && this.status == 200) { Enemy_charater_type_txt = this.responseText; loadstate ++; } | if (this.readyState == 4 && this.status == 200) { Enemy_charater_type_txt = this.responseText; loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Enemy_charater_type_txt.open("GET", " | + | xmlhttp_Enemy_charater_type_txt.open("GET", "/images/4/49/Enemy_character_type.txt", true); |
xmlhttp_Enemy_charater_type_txt.send(); | xmlhttp_Enemy_charater_type_txt.send(); | ||
第150行: | 第150行: | ||
if (this.readyState == 4 && this.status == 200) { Ally_team_txt = this.responseText; loadstate ++; } | if (this.readyState == 4 && this.status == 200) { Ally_team_txt = this.responseText; loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Ally_team_txt.open("GET", " | + | xmlhttp_Ally_team_txt.open("GET", "/images/0/00/Ally_team.txt", true); |
xmlhttp_Ally_team_txt.send(); | xmlhttp_Ally_team_txt.send(); | ||
第157行: | 第157行: | ||
if (this.readyState == 4 && this.status == 200) { Team_ai_txt = this.responseText; loadstate ++; } | if (this.readyState == 4 && this.status == 200) { Team_ai_txt = this.responseText; loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Team_ai_txt.open("GET", " | + | xmlhttp_Team_ai_txt.open("GET", "/images/f/f5/Team_ai.txt", true); |
xmlhttp_Team_ai_txt.send(); | xmlhttp_Team_ai_txt.send(); | ||
第164行: | 第164行: | ||
if (this.readyState == 4 && this.status == 200) { Mission_targettrain_enemy_txt = this.responseText; loadstate ++; } | if (this.readyState == 4 && this.status == 200) { Mission_targettrain_enemy_txt = this.responseText; loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Mission_targettrain_enemy_txt.open("GET", " | + | xmlhttp_Mission_targettrain_enemy_txt.open("GET", "/images/5/59/Mission_targettrain_enemy.txt", true); |
xmlhttp_Mission_targettrain_enemy_txt.send(); | xmlhttp_Mission_targettrain_enemy_txt.send(); | ||
第171行: | 第171行: | ||
if (this.readyState == 4 && this.status == 200) { Special_spot_config_txt = this.responseText; loadstate ++; } | if (this.readyState == 4 && this.status == 200) { Special_spot_config_txt = this.responseText; loadstate ++; } | ||
}; | }; | ||
− | xmlhttp_Special_spot_config_txt.open("GET", " | + | xmlhttp_Special_spot_config_txt.open("GET", "/images/e/ec/Special_spot_config.txt", true); |
xmlhttp_Special_spot_config_txt.send(); | xmlhttp_Special_spot_config_txt.send(); | ||
第301行: | 第301行: | ||
<option value="3041">[主线] 双联乱数<\/option> | <option value="3041">[主线] 双联乱数<\/option> | ||
<option value="3044">[主线] 镜像论<\/option> | <option value="3044">[主线] 镜像论<\/option> | ||
+ | <option value="3048">[主线] 熵减焓增<\/option> | ||
+ | <option value="3051">[主线] 静风点<\/option> | ||
<option value="4008">[联动] 猎兔行动<\/option> | <option value="4008">[联动] 猎兔行动<\/option> | ||
第308行: | 第310行: | ||
<option value="4038">[联动] 梦间剧<\/option> | <option value="4038">[联动] 梦间剧<\/option> | ||
<option value="4043">[联动] 暗金潮<\/option> | <option value="4043">[联动] 暗金潮<\/option> | ||
+ | <option value="4046">[联动] 小邪神前线<\/option> | ||
<option value="5034">[支线] 诡异狂潮<\/option> | <option value="5034">[支线] 诡异狂潮<\/option> | ||
第314行: | 第317行: | ||
<option value="5040">[支线] 碧海秘闻<\/option> | <option value="5040">[支线] 碧海秘闻<\/option> | ||
<option value="5042">[支线] 茧中蝶影<\/option> | <option value="5042">[支线] 茧中蝶影<\/option> | ||
+ | <option value="5047">[支线] 捩浪人<\/option> | ||
+ | <option value="5049">[支线] 一币之遥<\/option> | ||
<option value="6004">[战区] 第一版<\/option> | <option value="6004">[战区] 第一版<\/option> | ||
第408行: | 第413行: | ||
else if(thevalue == 3010 && camp != -10 && camp != -11 && camp != -12 && camp != -13 && camp != -29) continue; | else if(thevalue == 3010 && camp != -10 && camp != -11 && camp != -12 && camp != -13 && camp != -29) continue; | ||
else if(thevalue == 3016 && camp != -16 && camp != -17 && camp != -18 && camp != -39) continue; | else if(thevalue == 3016 && camp != -16 && camp != -17 && camp != -18 && camp != -39) continue; | ||
− | else if(thevalue == 3024 && camp != -24 && camp != -25 && camp != -26 && camp != -27 && camp != -28) continue; | + | else if(thevalue == 3024 && camp != -24 && camp != -25 && camp != -26 && camp != -27 && camp != -28 && camp != -45) continue; |
else if(thevalue == 3031 && camp != -31) continue; | else if(thevalue == 3031 && camp != -31) continue; | ||
else if(thevalue == 3033 && camp != -33) continue; | else if(thevalue == 3033 && camp != -33) continue; | ||
第414行: | 第419行: | ||
else if(thevalue == 3041 && camp != -41) continue; | else if(thevalue == 3041 && camp != -41) continue; | ||
else if(thevalue == 3044 && camp != -44) continue; | else if(thevalue == 3044 && camp != -44) continue; | ||
+ | else if(thevalue == 3048 && camp != -48) continue; | ||
/*-- 联动活动 --*/ | /*-- 联动活动 --*/ | ||
else if(thevalue == 4008 && camp != -8 && camp != -30) continue; | else if(thevalue == 4008 && camp != -8 && camp != -30) continue; | ||
第421行: | 第427行: | ||
else if(thevalue == 4038 && camp != -38) continue; | else if(thevalue == 4038 && camp != -38) continue; | ||
else if(thevalue == 4043 && camp != -43) continue; | else if(thevalue == 4043 && camp != -43) continue; | ||
+ | else if(thevalue == 4046 && camp != -46) continue; | ||
var op = document.createElement("OPTION"); | var op = document.createElement("OPTION"); | ||
第502行: | 第509行: | ||
/*-- canvas内鼠标缩放功能 --*/ | /*-- canvas内鼠标缩放功能 --*/ | ||
− | missiondraw.onmousewheel = $("#missionmap").onwheel = function (event) { | + | missiondraw.onmousewheel = $("#missionmap")[0].onwheel = function (event) { |
+ | event.preventDefault(); | ||
var pos = windowToCanvas(event.clientX, event.clientY); | var pos = windowToCanvas(event.clientX, event.clientY); | ||
var newPos = {x:((pos.x - xmove)/scale).toFixed(2) , y:((pos.y - ymove)/scale).toFixed(2)}; | var newPos = {x:((pos.x - xmove)/scale).toFixed(2) , y:((pos.y - ymove)/scale).toFixed(2)}; | ||
第649行: | 第657行: | ||
thisline += Building[buildnum].defender + `<\/td><td width="140px">`; | thisline += Building[buildnum].defender + `<\/td><td width="140px">`; | ||
thisline += Building[buildnum].is_destroy.replace("0", "不可破坏").replace("1", "重装打击").replace("2", "踩点破坏") + `<\/td><td width="60px">`; | thisline += Building[buildnum].is_destroy.replace("0", "不可破坏").replace("1", "重装打击").replace("2", "踩点破坏") + `<\/td><td width="60px">`; | ||
− | thisline += Building[buildnum].initial_state.replace("0", "开启").replace("-1", "关闭") + `<\/td><td width="80px">`; | + | thisline += String(Building[buildnum].initial_state).replace("0", "开启").replace("-1", "关闭") + `<\/td><td width="80px">`; |
thisline += Building[buildnum].battle_assist_range + `<\/td><td width="544px">`; | thisline += Building[buildnum].battle_assist_range + `<\/td><td width="544px">`; | ||
thisline += ((buildsigndes) ? buildsigndes : "其他") + "<\/td><\/tr>"; | thisline += ((buildsigndes) ? buildsigndes : "其他") + "<\/td><\/tr>"; |