◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

“Widget:AVGplayer/js”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
(测试)
(更新)
第1行: 第1行:
 
<includeonly><script type="text/javascript">(window.RLQ=window.RLQ||[]).push(function(){
 
<includeonly><script type="text/javascript">(window.RLQ=window.RLQ||[]).push(function(){
var dollarray = {
+
var dollarray, bgarray, bgmarray;
    "M16(3)":"http://www.gfwiki.org/images/d/db/M16A1_T.png",
 
    "SOPII(3)":"http://www.gfwiki.org/images/3/3d/Pic_M4_SOPMOD_II.png",
 
    "M4A1(2)":"http://www.gfwiki.org/images/4/41/M4A1_SAD.png",
 
    "AR15(2)":"http://www.gfwiki.org/images/3/39/AR15_T.png",
 
    "M4A1(0)":"http://www.gfwiki.org/images/4/4e/Pic_M4A1.png",
 
    "RO635(0)":"http://www.gfwiki.org/images/a/ae/%E5%B0%91%E5%A5%B3%E5%89%8D%E7%BA%BF-RO635.png",
 
    "RO635(4)":"http://www.gfwiki.org/images/c/c8/Pic_RO635_4.png",
 
   
 
    "M1903(10)":"http://www.gfwiki.org/images/5/5e/AVG_pic_M1903_10.png",
 
    "M1903(11)":"http://www.gfwiki.org/images/b/be/AVG_pic_M1903_11.png",
 
    "M1903(12)":"http://www.gfwiki.org/images/7/7e/AVG_pic_M1903_12.png",
 
    "M1903(13)":"http://www.gfwiki.org/images/a/a8/AVG_pic_M1903_13.png",
 
    "G36Mod(0)":"http://www.gfwiki.org/images/d/d8/Pic_G36Mod.png",
 
  
    "M4 SOPMOD IIMod(0)":"http://www.gfwiki.org/images/7/70/M4_SOPMOD_IIMod.png",
+
var xmlhttp_Spot = new XMLHttpRequest();
    "M4 SOPMOD IIMod(3)":"http://www.gfwiki.org/images/8/8c/Pic_M4_SOPMOD_IIMod_2.png",
+
xmlhttp_Spot.onreadystatechange = function() {
    "AR15Mod(0)":"http://www.gfwiki.org/images/c/cd/Pic_AR15Mod.png",
+
if (this.readyState == 4 && this.status == 200) {
    "AR15Mod(4)":"http://www.gfwiki.org/images/c/cd/AR15Mod_%E5%BE%AE%E7%AC%91.png",
+
     dollarray = JSON.parse(this.responseText.replace(/\/\*\s{1,4}\d{1,4}\s{1,4}\*\//g,"").replace(",\n}", "\n}"));}
    "RO635Mod(0)":"http://www.gfwiki.org/images/9/90/Pic_RO635Mod.png",
 
    "RO635Mod(2)":"http://www.gfwiki.org/images/2/26/Pic_RO635Mod_2.png",
 
    "RO635Mod(3)":"http://www.gfwiki.org/images/8/8c/Pic_RO635Mod_3.png",
 
    "RO635Mod(4)":"http://www.gfwiki.org/images/7/74/Pic_RO635Mod_4.png",
 
    "RO635Mod(5)":"http://www.gfwiki.org/images/a/a5/Pic_RO635Mod_5.png",
 
 
 
     "AN94(0)":"http://www.gfwiki.org/images/b/b0/Pic_AN94.png",
 
    "AN94(2)":"http://www.gfwiki.org/images/5/53/AN94_angry.png",
 
    "AN94(3)":"http://www.gfwiki.org/images/a/ac/AN94_laugh.png",
 
    "AN94(4)":"http://www.gfwiki.org/images/b/b5/AN94_sad.png",
 
    "AN94(5)":"http://www.gfwiki.org/images/f/f7/AN94_surprise.png",
 
    "AN94(11)":"http://www.gfwiki.org/images/3/3b/Pic_AN94_1.png",
 
    "AN94(12)":"http://www.gfwiki.org/images/a/ae/Pic_AN94_2.png",
 
 
 
    "AK12(0)":"http://www.gfwiki.org/images/0/00/Pic_AK12.png",
 
    "AK12(2)":"http://www.gfwiki.org/images/b/b3/AK12_angry.png",
 
    "AK12(3)":"http://www.gfwiki.org/images/e/e8/AK12_battle.png",
 
    "AK12(4)":"http://www.gfwiki.org/images/8/8e/AK12_laugh.png",
 
    "AK12(12)":"http://www.gfwiki.org/images/0/01/Pic_AK12_1.png",
 
    "AK12(13)":"http://www.gfwiki.org/images/0/09/Pic_AK12_2.png",
 
 
 
    "RPK16(7)":"http://www.gfwiki.org/images/e/e2/Pic_RPK16_1.png",
 
    "RPK16(8)":"http://www.gfwiki.org/images/8/80/Pic_RPK16_2.png",
 
    "RPK16(9)":"http://www.gfwiki.org/images/9/93/Pic_RPK16_3.png",
 
    "RPK16(10)":"http://www.gfwiki.org/images/6/6c/Pic_RPK16_4.png",
 
 
 
    "AK15(1)":"http://www.gfwiki.org/images/f/f8/Pic_AK15_D.png",
 
    "AK15(6)":"http://www.gfwiki.org/images/4/4b/Pic_AK15_1.png",
 
 
 
    "NPC-Kalin(0)":"http://www.gfwiki.org/images/2/21/Kalina.png",
 
    "NPC-Kalin(1)":"http://www.gfwiki.org/images/a/a5/Kalina_1.png",
 
    "NPC-Kalin(2)":"http://www.gfwiki.org/images/1/15/Kalina_2.png",
 
    "NPC-Kalin(3)":"http://www.gfwiki.org/images/9/95/Kalina_3.png",
 
    "NPC-Kalin(4)":"http://www.gfwiki.org/images/6/67/Kalina_4.png",
 
    "NPC-Kalin(5)":"http://www.gfwiki.org/images/0/0b/Kalina_5.png",
 
    "NPC-Kalin(6)":"http://www.gfwiki.org/images/0/0c/Kalina_6.png",
 
    "NPC-Kalin(7)":"http://www.gfwiki.org/images/1/11/Kalina_7.png",
 
    "NPC-Kalin(8)":"http://www.gfwiki.org/images/2/29/Kalina_8.png",
 
 
 
    "NPC-Ange(0)":"http://www.gfwiki.org/images/b/b2/NPC-Ange.png",
 
    "NPC-Ange(1)":"http://www.gfwiki.org/images/c/ce/NPC-Ange_1.png",
 
    "NPC-Ange(2)":"http://www.gfwiki.org/images/8/82/Pic_NPC-Ange_2.png",
 
    "NPC-Ange(3)":"http://www.gfwiki.org/images/6/6e/NPC-Ange%283%29.png",
 
    "NPC-Ange(4)":"http://www.gfwiki.org/images/6/6e/NPC-Ange%284%29.png",
 
    "NPC-Ange(5)":"http://www.gfwiki.org/images/4/47/NPC-Ange%285%29.png",
 
    "NPC-Ange(6)":"http://www.gfwiki.org/images/c/c1/NPC-Ange%286%29.png",
 
    "NPC-Ange(7)":"http://www.gfwiki.org/images/4/43/NPC-Ange%287%29.png",
 
    "NPC-AngeStreet(0)":"http://www.gfwiki.org/images/8/87/NPC-AngeStreet.png",
 
 
 
    "NPC-Jason(0)":"http://www.gfwiki.org/images/e/e5/NPC-Jason.png",
 
    "NPC-Jason(1)":"http://www.gfwiki.org/images/d/d5/NPC-Jason_1.png",
 
 
 
    "NPC-Keven(0)":"http://www.gfwiki.org/images/3/37/Pic_NPC-Keven_0.png",
 
    "NPC-Keven(1)":"http://www.gfwiki.org/images/2/24/Pic_NPC-Keven_1.png",
 
    "NPC-Keven(2)":"http://www.gfwiki.org/images/f/f2/Pic_NPC-Keven_2.png",
 
 
 
    "NPC-Light(0)":"http://www.gfwiki.org/images/9/95/NPC-Light%280%29.png",
 
    "NPC-Light(1)":"http://www.gfwiki.org/images/5/52/NPC-Light%281%29.png",
 
    "NPC-Light(2)":"http://www.gfwiki.org/images/d/d5/NPC-Light%282%29.png",
 
    "NPC-Light(3)":"http://www.gfwiki.org/images/b/b0/NPC-Light%283%29.png",
 
    "NPC-Light(4)":"http://www.gfwiki.org/images/2/2e/NPC-Light%284%29.png",
 
    "NPC-Light(5)":"http://www.gfwiki.org/images/d/dd/NPC-Light%285%29.png",
 
 
 
    "NPC-Shadowless(0)":"http://www.gfwiki.org/images/8/88/NPC-Shadowless%280%29.png",
 
    "NPC-Shadowless(1)":"http://www.gfwiki.org/images/5/59/NPC-Shadowless%281%29.png",
 
    "NPC-Shadowless(2)":"http://www.gfwiki.org/images/f/fc/NPC-Shadowless%282%29.png",
 
    "NPC-Shadowless(3)":"http://www.gfwiki.org/images/8/88/NPC-Shadowless%283%29.png",
 
    "NPC-Shadowless(4)":"http://www.gfwiki.org/images/0/02/NPC-Shadowless%284%29.png",
 
    "NPC-Shadowless(5)":"http://www.gfwiki.org/images/7/78/NPC-Shadowless%285%29.png",
 
    "NPC-Shadowless(7)":"http://www.gfwiki.org/images/e/ec/NPC-Shadowless%287%29.png",
 
    "NPC-Shadowless(8)":"http://www.gfwiki.org/images/9/92/NPC-Shadowless%288%29.png",
 
    "NPC-Shadowless(9)":"http://www.gfwiki.org/images/a/a0/NPC-Shadowless%289%29.png",
 
    "NPC-Shadowless(10)":"http://www.gfwiki.org/images/b/bb/NPC-Shadowless%2810%29.png",
 
    "NPC-Shadowless(11)":"http://www.gfwiki.org/images/9/98/NPC-Shadowless%2811%29.png",
 
 
 
    "NPC-Helian(0)":"http://www.gfwiki.org/images/4/4b/NPC-Helian.png",
 
    "NPC-Kyruger(0)":"http://www.gfwiki.org/images/c/cb/NPC-Kyruger.png",
 
    "NPC-Griffin(0)":"http://www.gfwiki.org/images/9/9b/NPC-Griffin%280%29.png",
 
    "NPC-Griffin(1)":"http://www.gfwiki.org/images/c/c4/NPC-Griffin%281%29.png",
 
    "NPC-Ambassador(0)":"http://www.gfwiki.org/images/e/ef/NPC-Ambassador.png",
 
 
 
    "Nyto(1)":"http://www.gfwiki.org/images/e/e3/Pic_Nyto_black_LL.png",
 
    "NytoWhite(0)":"http://www.gfwiki.org/images/1/17/Pic_Nyto_white_LL.png",
 
    "NPC-Mercurows(0)":"http://www.gfwiki.org/images/f/f4/NPC-Mercurows.png",
 
    "NPC-Nimogen(0)":"http://www.gfwiki.org/images/b/be/NPC-Nimogen.png",
 
 
 
    "Narciss(0)":"http://www.gfwiki.org/images/4/41/Narciss%280%29.png",
 
    "Narciss(1)":"http://www.gfwiki.org/images/d/db/Narciss%281%29.png",
 
    "Narciss(2)":"http://www.gfwiki.org/images/9/96/Narciss%282%29.png",
 
    "Narciss(3)":"http://www.gfwiki.org/images/6/61/Narciss%283%29.png",
 
    "Narciss(4)":"http://www.gfwiki.org/images/0/07/Narciss%284%29.png",
 
 
 
    "NytoIsomer(3)":"http://www.gfwiki.org/images/1/11/Nyto_Isomer_Shadow.png",
 
    "NytoIsomer(8)":"http://www.gfwiki.org/images/d/d0/Nyto_Isomer_8.png",
 
   
 
    "NPC-Morridow(0)":"http://www.gfwiki.org/images/d/d4/Pic_NPC-Morridow_0.png",
 
    "NPC-Morridow(1)":"http://www.gfwiki.org/images/f/f8/Pic_NPC-Morridow_1.png",
 
    "NPC-Morridow(2)":"http://www.gfwiki.org/images/1/14/Pic_NPC-Morridow_2.png",
 
    "NPC-Morridow(3)":"http://www.gfwiki.org/images/5/5f/Pic_NPC-Morridow_3.png",
 
    "NPC-Morridow(4)":"http://www.gfwiki.org/images/d/dd/Pic_NPC-Morridow_4.png",
 
    "NPC-Morridow(5)":"http://www.gfwiki.org/images/5/53/Pic_NPC-Morridow_5.png",
 
    "NPC-Morridow(6)":"http://www.gfwiki.org/images/f/f0/Pic_NPC-Morridow_6.png",
 
 
 
    "NPC-MrsGray(0)":"http://www.gfwiki.org/images/7/7e/NPC-MrsGray%280%29.png",
 
    "NPC-MrsGray(1)":"http://www.gfwiki.org/images/f/f8/NPC-MrsGray%281%29.png",
 
    "NPC-MrsGray(2)":"http://www.gfwiki.org/images/6/6d/NPC-MrsGray%282%29.png",
 
    "NPC-MrsGray(3)":"http://www.gfwiki.org/images/6/6c/NPC-MrsGray%283%29.png",
 
    "NPC-MrsGray(4)":"http://www.gfwiki.org/images/a/a2/NPC-MrsGray%284%29.png",
 
    "NPC-MrsGray(5)":"http://www.gfwiki.org/images/c/c5/NPC-MrsGray%285%29.png",
 
    "NPC-MrsGray(6)":"http://www.gfwiki.org/images/b/b4/NPC-MrsGray%286%29.png",
 
 
 
    "NPC-Machlian(0)":"http://www.gfwiki.org/images/c/c7/NPC-Machlian%280%29.png",
 
    "NPC-Machlian(1)":"http://www.gfwiki.org/images/0/03/NPC-Machlian%281%29.png",
 
    "NPC-Machlian(2)":"http://www.gfwiki.org/images/0/0a/NPC-Machlian%282%29.png",
 
    "NPC-Machlian(3)":"http://www.gfwiki.org/images/b/b7/NPC-Machlian%283%29.png",
 
    "NPC-Machlian(4)":"http://www.gfwiki.org/images/f/f2/NPC-Machlian%284%29.png",
 
    "NPC-Machlian(6)":"http://www.gfwiki.org/images/b/bc/NPC-Machlian%286%29.png",
 
    "NPC-Machlian(7)":"http://www.gfwiki.org/images/9/97/NPC-Machlian%287%29.png",
 
    "NPC-Machlian(8)":"http://www.gfwiki.org/images/2/2d/NPC-Machlian%288%29.png",
 
   
 
    "NPC-Refugee(0)":"http://www.gfwiki.org/images/9/97/Pic_NPC-Refugee_0.png",
 
    "NPC-Lilyan(0)":"http://www.gfwiki.org/images/1/13/Pic_NPC-Lilyan_0.png",
 
    "NPC-Elijah(0)":"http://www.gfwiki.org/images/a/a8/NPC-Elijah%280%29.png",
 
    "NPC-Bodyguard1(0)":"http://www.gfwiki.org/images/6/6b/NPC-Bodyguard1.png",
 
    "NPC-Bodyguard2(0)":"http://www.gfwiki.org/images/f/f1/NPC-Bodyguard2.png",
 
 
 
    /*  16 */ "M1928A1(0)":"http://www.gfwiki.org/images/f/f4/Pic_M1928A1.png",
 
    /* 106 */ "FAL(0)":"http://www.gfwiki.org/images/d/d2/Pic_FNFALhx.png",
 
    /* 112 */ "NEGEV(0)":"http://www.gfwiki.org/images/0/04/Pic_NEGEV.png",
 
    /* 257 */ "M200(0)":"http://www.gfwiki.org/images/3/3e/Pic_M200.png",
 
    /* 272 */ "DesertEagle(0)":"http://www.gfwiki.org/images/4/4b/Pic_DesertEagle.png",
 
    /* 296 */ "SL8(0)":"http://www.gfwiki.org/images/9/92/Pic_SL8.png",
 
    /* 296 */ "SL8(2)":"http://www.gfwiki.org/images/9/9c/Pic_SL8_1.png",
 
    /* 296 */ "SL8(3)":"http://www.gfwiki.org/images/d/da/Pic_SL8_3.png",
 
    /* 316 */ "GeneralLiu(0)":"http://www.gfwiki.org/images/a/a0/Pic_GeneralLiu.png",
 
    /* 316 */ "GeneralLiu(1)":"http://www.gfwiki.org/images/d/d7/Pic_GeneralLiu_D.png",
 
    /* 331 */ "Kolibri(0)":"http://www.gfwiki.org/images/a/a7/Pic_Kolibri.png",
 
    /* 332 */ "Derringer(0)":"http://www.gfwiki.org/images/a/a8/Pic_Derringer.png",
 
    /* 333 */ "VP1915(0)":"http://www.gfwiki.org/images/d/dc/Pic_VP1915.png",
 
    /* 334 */ "Savage99(0)":"http://www.gfwiki.org/images/e/ee/Pic_Savage99.png",
 
    /* 335 */ "Fedorov(0)":"http://www.gfwiki.org/images/e/e0/Pic_Fedorov.png",
 
 
 
    "P22(0)":"http://www.gfwiki.org/images/7/77/Pic_P22.png",
 
    "Lewis(0)":"http://www.gfwiki.org/images/5/5d/Pic_Lewis.png",
 
    "AUGPARA(0)":"http://www.gfwiki.org/images/1/11/Pic_AUGPARA.png",
 
    "VHS(0)":"http://www.gfwiki.org/images/5/57/Pic_VHS.png",
 
 
 
 
 
    "NPC-Doppelsoldner(0)":"http://www.gfwiki.org/images/e/e8/Pic_Doppelsoldner_LL.png",
 
    "NPC-Uhlan(0)":"http://www.gfwiki.org/images/4/4d/Pic_Uhlan_LL.png",
 
    "NPC-Rodelero(0)":"http://www.gfwiki.org/images/8/88/Pic_Rodelero_LL.png",
 
    "NPC-Strelet(0)":"http://www.gfwiki.org/images/3/39/Pic_Strelet_LL.png",
 
 
};
 
};
 +
xmlhttp_Spot.open("GET", "http://www.gfwiki.org/index.php?title=JSON:AVGDOLL&action=raw", true);
 +
xmlhttp_Spot.send();
  
var bgarray;
 
 
var xmlhttp_Spot = new XMLHttpRequest();
 
var xmlhttp_Spot = new XMLHttpRequest();
 
xmlhttp_Spot.onreadystatechange = function() {
 
xmlhttp_Spot.onreadystatechange = function() {
第182行: 第18行:
 
xmlhttp_Spot.send();
 
xmlhttp_Spot.send();
  
var bgmarray = {
+
var xmlhttp_Spot = new XMLHttpRequest();
    "BGM_Battle":"http://www.gfwiki.org/images/b/b4/BGM_Battle.mp3",
+
xmlhttp_Spot.onreadystatechange = function() {
    "BGM_Danger":"http://www.gfwiki.org/images/9/98/BGM_Danger.mp3",
+
if (this.readyState == 4 && this.status == 200) {
    "BGM_Empty":"http://www.gfwiki.org/images/7/72/BGM_Empty.mp3",
+
     bgmarray = JSON.parse(this.responseText.replace(/\/\*\s{1,4}\d{1,4}\s{1,4}\*\//g,"").replace(",\n}", "\n}"));}
    "BGM_Room":"http://www.gfwiki.org/images/4/46/BGM_Room.mp3",
 
     "BGM_Brain":"http://www.gfwiki.org/images/2/2d/BGM_Brain.mp3",
 
    "BGM_Sneak":"http://www.gfwiki.org/images/4/44/BGM_Sneak.mp3",
 
    "BGM_Truth":"http://www.gfwiki.org/images/b/b3/BGM_Truth.mp3",
 
    "BGM_Hello":"http://www.gfwiki.org/images/2/2a/GF_Daily_01_loop.mp3",
 
    "BGM_Moon":"http://www.gfwiki.org/images/f/f2/GF_Daily02_loop.mp3",
 
    "BGM_Sunshine":"http://www.gfwiki.org/images/3/3f/Home_formation_factory.mp3",
 
    "BGM_NightOPS":"http://www.gfwiki.org/images/4/4d/GUN_CineTense_loop.mp3",
 
 
 
    "GF_EV9_Story":"http://www.gfwiki.org/images/2/29/GF_EV9_Story.mp3",
 
    "GF_Memorial":"http://www.gfwiki.org/images/1/17/GF_Memorial.mp3",
 
    "m_avg_casual":"http://www.gfwiki.org/images/c/cf/M_avg_casual.mp3",
 
    "GF_21winter_avg_pathfinder":"http://www.gfwiki.org/images/0/05/GF_21winter_avg_pathfinder.mp3",
 
    "GF_21winter_avg_mahaline":"http://www.gfwiki.org/images/c/ce/GF_21winter_avg_mahaline.mp3",
 
    "GF_21winter_avg_nightbar":"http://www.gfwiki.org/images/0/09/GF_21winter_avg_nightbar.mp3",
 
   
 
    "BGM_stage1":"http://www.gfwiki.org/images/1/1d/GF_MAP1_BGM.mp3",
 
    "BGM_stage10":"http://www.gfwiki.org/images/d/db/GF_MAP10_BGM.mp3",
 
    "BGM_stage11":"http://www.gfwiki.org/images/d/dc/GF_MAP11_BGM.mp3",
 
 
 
    "10030":"http://www.gfwiki.org/images/b/b3/GF_EV3_Map1_tri.mp3",
 
    "10051":"http://www.gfwiki.org/images/8/87/GF_EV4_Map1.mp3",
 
    "10065":"http://www.gfwiki.org/images/a/a1/Bluestar_1_0%28win%29.mp3",
 
    "10082":"http://www.gfwiki.org/images/d/da/GF_EV4_Map3.mp3",
 
    "10106":"http://www.gfwiki.org/images/3/39/GF_EV5_BattleL1.mp3",
 
    "10194":"http://www.gfwiki.org/images/4/49/GF_EV6_G%26K_pt1.mp3",
 
    "10209":"http://www.gfwiki.org/images/6/6f/GF_EV6_G%26K_pt3.mp3",
 
    "10213":"http://www.gfwiki.org/images/3/31/GF_EV6_90w_pt1.mp3",
 
 
};
 
};
 +
xmlhttp_Spot.open("GET", "http://www.gfwiki.org/index.php?title=JSON:AVGBGM&action=raw", true);
 +
xmlhttp_Spot.send();
  
 
var searray = {
 
var searray = {
第227行: 第37行:
 
     "%%code=AVG_ink5%%":"https://img.nga.178.com/attachments/mon_202104/27/-bqqbQ753k-ehjdXoZ6rT3cS8w-50.mp4?filename=ink5%2eusm%5f40534656%2emp4",
 
     "%%code=AVG_ink5%%":"https://img.nga.178.com/attachments/mon_202104/27/-bqqbQ753k-ehjdXoZ6rT3cS8w-50.mp4?filename=ink5%2eusm%5f40534656%2emp4",
 
     "%%code=AVG_ink6%%":"https://img.nga.178.com/attachments/mon_202104/27/-bqqbQ51jt-1c69XuZ88T3cS8w-50.mp4?filename=ink6%2eusm%5f40534656%2emp4",
 
     "%%code=AVG_ink6%%":"https://img.nga.178.com/attachments/mon_202104/27/-bqqbQ51jt-1c69XuZ88T3cS8w-50.mp4?filename=ink6%2eusm%5f40534656%2emp4",
 +
 
     "%%code=NPC_TV_0%%":"http://www.gfwiki.org/images/2/2c/NPC-news%280%29.png",
 
     "%%code=NPC_TV_0%%":"http://www.gfwiki.org/images/2/2c/NPC-news%280%29.png",
 
     "%%code=NPC_TV_1%%":"http://www.gfwiki.org/images/2/2e/NPC-news%281%29.png",
 
     "%%code=NPC_TV_1%%":"http://www.gfwiki.org/images/2/2e/NPC-news%281%29.png",
第247行: 第58行:
 
     "%%code=NPC_TV_18%%":"http://www.gfwiki.org/images/c/c6/NPC-news%2818%29.png",
 
     "%%code=NPC_TV_18%%":"http://www.gfwiki.org/images/c/c6/NPC-news%2818%29.png",
 
     "%%code=NPC_TV_19%%":"http://www.gfwiki.org/images/c/cf/NPC-news%2819%29.png",
 
     "%%code=NPC_TV_19%%":"http://www.gfwiki.org/images/c/cf/NPC-news%2819%29.png",
 +
 +
    "%%code=changjing_huafen%%":"",
 
}
 
}
  
第257行: 第70行:
 
var branchblock = 0;
 
var branchblock = 0;
 
var branchchosen = 0;
 
var branchchosen = 0;
 +
 +
var flash_block = 0;
  
 
var autosign = 0; /* 是否开启自动模式 */
 
var autosign = 0; /* 是否开启自动模式 */
第328行: 第143行:
  
 
             <div id="avgtobegin" class="avgbutton avgpushbutton">返回开始<\/div>
 
             <div id="avgtobegin" class="avgbutton avgpushbutton">返回开始<\/div>
 +
            <div id="avgtonext" class="avgbutton avgpushbutton">下一章节<\/div>
 
             <div id="avgchose" state="off" class="avgbutton">选择剧情<\/div>
 
             <div id="avgchose" state="off" class="avgbutton">选择剧情<\/div>
 
             <div id="avgload">加载进度: PIC[0/0] CG[0/0] BGM[0/0] OTH[0/0]<\/div>
 
             <div id="avgload">加载进度: PIC[0/0] CG[0/0] BGM[0/0] OTH[0/0]<\/div>
第458行: 第274行:
 
         $(".avgefect").remove();
 
         $(".avgefect").remove();
 
         readline();
 
         readline();
 +
    });
 +
 +
    $("#avgtonext").click(function(){
 +
        let chosen_element = document.querySelectorAll(".avgchoice");
 +
        for(let i = 0; i < chosen_element.length; i ++){
 +
            if($(chosen_element[i]).attr("link") == loadingfile && (i + 1 < chosen_element.length)) { $(chosen_element[i + 1]).click(); return;}
 +
        }
 
     });
 
     });
  
第488行: 第311行:
  
 
function readline(){
 
function readline(){
     if(blacksign == 1 || branchblock == 1) return;
+
     if(blacksign == 1 || branchblock == 1 || flash_block == 1) return;
 
      
 
      
 
     if(endsign == 1) {
 
     if(endsign == 1) {
         $("#avgline").append(`<div class="endsigndiv"">${$("#avgtitle").html()} END</div>`);
+
         $("#avgline").html(`<div class="endsigndiv">${$("#avgtitle").html()} END</div>`);
 
         return;
 
         return;
 
     }
 
     }
第533行: 第356行:
  
 
     // black
 
     // black
     if(thisline.indexOf("<黑屏2>") != -1 && blacksign == 0){
+
     if((thisline.indexOf("<黑屏2>") != -1 || thisline.indexOf("<黑点2>") != -1) && blacksign == 0){
 
         $(".avgdollpic").fadeOut(1000 / autospeed); $(".avgefect").fadeOut(1000 / autospeed);
 
         $(".avgdollpic").fadeOut(1000 / autospeed); $(".avgefect").fadeOut(1000 / autospeed);
 
         $("#avgbackground").fadeOut(1000 / autospeed); $("#avgword").fadeOut(1000 / autospeed);
 
         $("#avgbackground").fadeOut(1000 / autospeed); $("#avgword").fadeOut(1000 / autospeed);
第572行: 第395行:
 
         $("#avgbackground").html(`<img src="` + bgsrc + `"/>`);
 
         $("#avgbackground").html(`<img src="` + bgsrc + `"/>`);
 
         if(thisline.indexOf("<Night>") != -1) $("#avgbackground").append(`<div style="width:1200px; height:675px; position:absolute; backdrop-filter:saturate(0.6) brightness(0.4) hue-rotate(15deg)"><\/div>`);
 
         if(thisline.indexOf("<Night>") != -1) $("#avgbackground").append(`<div style="width:1200px; height:675px; position:absolute; backdrop-filter:saturate(0.6) brightness(0.4) hue-rotate(15deg)"><\/div>`);
 +
    }
 +
    if(thisline.indexOf("<闪屏>") != -1){
 +
        let flash_str = thisline.slice(thisline.indexOf("<闪屏>") + ("<闪屏>").length, thisline.indexOf("</闪屏>"));
 +
        let background_array = flash_str.slice(flash_str.indexOf("<CG>") + ("<CG>").length, flash_str.indexOf("</CG>")).split(",");
 +
        let control_parament = {
 +
            "duration":Number(flash_str.slice(flash_str.indexOf("<duration>") + ("<duration>").length, flash_str.indexOf("</duration>"))),
 +
            "rate":Number(flash_str.slice(flash_str.indexOf("<rate>") + ("<rate>").length, flash_str.indexOf("</rate>"))),
 +
            "delay":Number(flash_str.slice(flash_str.indexOf("<delay>") + ("<delay>").length, flash_str.indexOf("</delay>"))),
 +
        };
 +
        flash_block = 1;
 +
        setTimeout(function(){
 +
            flash_block = 0;
 +
            $("#avgbackground").html(`<img src="${bgarray[background_array[background_array.length - 1]]}" style="display:none;"/>`);
 +
            $("#avgbackground").children("img").fadeIn(control_parament.rate * 5);
 +
        }, background_array.length * (control_parament.delay + control_parament.rate * 2 + control_parament.duration) * 5);
 +
 +
        for(let i = 0; i < background_array.length; i ++){
 +
            let time_start = ((i + 1) * control_parament.delay + i * control_parament.rate * 2 + i * control_parament.duration) * 5;
 +
            setTimeout(function(){
 +
                $("#avgbackground").html(`<img src="${bgarray[background_array[i]]}" style="display:none;"/>`);
 +
                $("#avgbackground").children("img").fadeIn(control_parament.rate * 5);
 +
            }, time_start);
 +
            setTimeout(function(){
 +
                $("#avgbackground").children("img").fadeOut(control_parament.rate * 5);
 +
            }, time_start + (control_parament.rate + control_parament.duration) * 5);
 +
        }
 
     }
 
     }
  
 
     //doll pic
 
     //doll pic
 
     if(thisline.indexOf("<Speaker>") != -1){
 
     if(thisline.indexOf("<Speaker>") != -1){
         var avgpicstr = thisline.slice(0, thisline.indexOf("||"));
+
         let avgpicstr = thisline.slice(0, thisline.indexOf("||"));
         var newavgdoll = {left:0,center:0,right:0};
+
         let newavgdoll = {left:0,center:0,right:0};
         var the_speaker = "center";
+
         let the_speaker = "center";
  
 
         // center
 
         // center
第588行: 第437行:
 
         else if(avgpicstr.indexOf("<Speaker>") < avgpicstr.indexOf(";")){
 
         else if(avgpicstr.indexOf("<Speaker>") < avgpicstr.indexOf(";")){
 
             the_speaker = "left";
 
             the_speaker = "left";
 +
            let avgpicstr_righ = avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.length);
 
             avgpicleft = avgpicstr.slice(0, avgpicstr.indexOf("<Speaker>"));
 
             avgpicleft = avgpicstr.slice(0, avgpicstr.indexOf("<Speaker>"));
             avgpicrigh = avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.length);
+
             avgpicrigh = avgpicstr_righ.slice(0, ((avgpicstr_righ.indexOf("<") != -1) ? avgpicstr_righ.indexOf("<") : avgpicstr_righ.legth));
             newavgdoll = {left: avgpicleft,center:0,right: avgpicrigh};
+
             newavgdoll = {left: avgpicleft, center: 0, right: avgpicrigh};
 
         }
 
         }
 
         // speaker = right
 
         // speaker = right
第598行: 第448行:
 
             avgpicleft = avgpicstr_left.slice(0, ((avgpicstr_left.indexOf("<") < avgpicstr_left.indexOf(";")) ? avgpicstr_left.indexOf("<") : avgpicstr_left.indexOf(";")));
 
             avgpicleft = avgpicstr_left.slice(0, ((avgpicstr_left.indexOf("<") < avgpicstr_left.indexOf(";")) ? avgpicstr_left.indexOf("<") : avgpicstr_left.indexOf(";")));
 
             avgpicrigh = avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>"));
 
             avgpicrigh = avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>"));
             newavgdoll = {left: avgpicleft,center:0,right: avgpicrigh};
+
             newavgdoll = {left: avgpicleft, center: 0, right: avgpicrigh};
 
         }
 
         }
  
 
         // the same - none - changed
 
         // the same - none - changed
         if(newavgdoll == avgdoll) {}
+
         if(newavgdoll == avgdoll) {
         else if(newavgdoll == {left:0,center:0,right:0}) {
+
         } else if(newavgdoll == {left:0,center:0,right:0}) {
 
             $(".avgdollpic").fadeOut(150);
 
             $(".avgdollpic").fadeOut(150);
 
             setTimeout(function(){ $(".avgdollpic").remove();}, 150);
 
             setTimeout(function(){ $(".avgdollpic").remove();}, 150);
第643行: 第493行:
 
                 if(cen_sign){
 
                 if(cen_sign){
 
                     setTimeout(function(){  
 
                     setTimeout(function(){  
                         let the_center = `<div class="avgdollpic" name-data="` + newavgdoll.center + `" style="left:152px; z-index:6; display:none;">`
+
                         let the_center = `<div class="avgdollpic" name-data="${newavgdoll.center}" style="z-index:6; display:none;`;
 +
 
 +
                        if((avgpicstr.indexOf("<Position>") != -1) && (avgpicstr.indexOf("<Position>") > avgpicstr.indexOf(";"))){
 +
                            let position_str = avgpicstr.slice(avgpicstr.indexOf("<Position>") + ("<Position>").length, avgpicstr.indexOf("</Position>"));
 +
                            let position_array = position_str.split(",");
 +
                            the_center += `left:${152 - Number(position_array[0])/2}px; top:${110 - Number(position_array[1])/2}px; height:${565 + Number(position_array[1])/2}px;">`;
 +
                        } else the_center += `left:152px;">`;
 +
 
 
                         the_center += `<img src="` + dollarray[newavgdoll.center] + `" style="`;
 
                         the_center += `<img src="` + dollarray[newavgdoll.center] + `" style="`;
 
                         if((avgpicstr.indexOf("<通讯框>") != -1) && (avgpicstr.indexOf("<通讯框>") > avgpicstr.indexOf(";"))){
 
                         if((avgpicstr.indexOf("<通讯框>") != -1) && (avgpicstr.indexOf("<通讯框>") > avgpicstr.indexOf(";"))){
 
                             the_center += `background-color:#12131d; -webkit-mask-image:url(http://www.gfwiki.org/images/d/d0/Mask.png); -webkit-mask-position-x: 28px; -webkit-mask-size: 850px;"/>` + telemask + `<\/div>`;
 
                             the_center += `background-color:#12131d; -webkit-mask-image:url(http://www.gfwiki.org/images/d/d0/Mask.png); -webkit-mask-position-x: 28px; -webkit-mask-size: 850px;"/>` + telemask + `<\/div>`;
 
                         } else the_center += `"/><\/div>`;
 
                         } else the_center += `"/><\/div>`;
 +
                       
 
                         $("#avgbox").append(the_center);
 
                         $("#avgbox").append(the_center);
 
                         $(".avgdollpic").fadeIn(150);
 
                         $(".avgdollpic").fadeIn(150);
第712行: 第570行:
 
                 if(left_sign){
 
                 if(left_sign){
 
                     setTimeout(function(){  
 
                     setTimeout(function(){  
                         let the_left = `<div class="avgdollpic" name-data="` + newavgdoll.left + `" style="left:-20px; z-index:` + ((the_speaker == "left") ? "4" : "2") + `;">`
+
                         let the_left = `<div class="avgdollpic" name-data="${newavgdoll.left}" style="z-index:` + ((the_speaker == "left") ? "4" : "2") + ";";
 +
                       
 +
                        if((avgpicstr.indexOf("<Position>") != -1) && (avgpicstr.indexOf("<Position>") < avgpicstr.indexOf(";"))){
 +
                            let position_str = avgpicstr.slice(avgpicstr.indexOf("<Position>") + ("<Position>").length, avgpicstr.indexOf("</Position>"));
 +
                            let position_array = position_str.split(",");
 +
                            the_left += `left:${-20 - Number(position_array[0])/2}px; top:${110 - Number(position_array[1])/2}px; height:${565 + Number(position_array[1])/2}px;">`;
 +
                        } else the_left += `left:-20px;">`;
 +
 
 
                         the_left += `<img src="` + dollarray[newavgdoll.left] + `" style="`;
 
                         the_left += `<img src="` + dollarray[newavgdoll.left] + `" style="`;
 
                         if((avgpicstr.indexOf("<通讯框>") != -1) && (avgpicstr.indexOf("<通讯框>") < avgpicstr.indexOf(";"))){
 
                         if((avgpicstr.indexOf("<通讯框>") != -1) && (avgpicstr.indexOf("<通讯框>") < avgpicstr.indexOf(";"))){
第723行: 第588行:
 
                 if(right_sign){
 
                 if(right_sign){
 
                     setTimeout(function(){  
 
                     setTimeout(function(){  
                         let the_right = `<div class="avgdollpic" name-data="` + newavgdoll.right + `" style="left:324px; z-index:` + ((the_speaker == "right") ? "4" : "2") + `;">`
+
                         let the_right = `<div class="avgdollpic" name-data="${newavgdoll.right}" style="z-index:` + ((the_speaker == "right") ? "4" : "2") + ";";
 +
 
 +
                        if((avgpicstr.indexOf("<Position>") != -1) && (avgpicstr.indexOf("<Position>") > avgpicstr.indexOf(";"))){
 +
                            let position_str = avgpicstr.slice(avgpicstr.indexOf("<Position>") + ("<Position>").length, avgpicstr.indexOf("</Position>"));
 +
                            let position_array = position_str.split(",");
 +
                            the_right += `left:${324 - Number(position_array[0])/2}px; top:${110 - Number(position_array[1])/2}px; height:${565 + Number(position_array[1])/2}px;">`;
 +
                        } else the_right += `left:324px;">`;
 +
 
 
                         the_right += `<img src="` + dollarray[newavgdoll.right] + `" style="`;
 
                         the_right += `<img src="` + dollarray[newavgdoll.right] + `" style="`;
 
                         if((avgpicstr.indexOf("<通讯框>") != -1) && (avgpicstr.indexOf("<通讯框>") > avgpicstr.indexOf(";"))){
 
                         if((avgpicstr.indexOf("<通讯框>") != -1) && (avgpicstr.indexOf("<通讯框>") > avgpicstr.indexOf(";"))){
第816行: 第688行:
  
 
         log_string += `<div style="border-top:1px #8886 dashed; padding:7px 4px;"><table style="width:100%;"><tr><td avgpos="` + logpos + `"`;
 
         log_string += `<div style="border-top:1px #8886 dashed; padding:7px 4px;"><table style="width:100%;"><tr><td avgpos="` + logpos + `"`;
         if(thisline.indexOf("<黑屏2>") != -1) log_string += ` class="avglogtd" style="border:1px dashed #f4c430; cursor:zoom-in;`;
+
         if(thisline.indexOf("<黑屏2>") != -1 || thisline.indexOf("<黑点2>") != -1) log_string += ` class="avglogtd" style="border:1px dashed #f4c430; cursor:zoom-in;`;
 
         else log_string += ` style="border:none;`;
 
         else log_string += ` style="border:none;`;
 
         log_string += `width:5%; text-align:center; vertical-align:baseline;">` + logline + `<\/td>`;
 
         log_string += `width:5%; text-align:center; vertical-align:baseline;">` + logline + `<\/td>`;
第850行: 第722行:
  
 
     /*--------------------------- key word query, console that not in the array ---------------------------*/
 
     /*--------------------------- key word query, console that not in the array ---------------------------*/
     var sekeyword = ["Speaker", "BIN", "BGM", "SE1", "SE2", "color", "Size", "通讯框", "黑屏1", "黑屏2", "common_effect", "关闭蒙版", "CGDelay", "回忆"];
+
     var sekeyword = ["Speaker", "BIN", "BGM", "SE1", "SE2", "color", "Size", "通讯框", "黑屏1", "黑屏2", "黑点1", "黑点2", "common_effect", "关闭蒙版", "CGDelay", "回忆", "Position", "Night"];
 
     var the_words = avgtxt.replace(/<color=#[A-Za-z0-9]{6}>/g, "<color>").replace(/<Size=\d{2}>/g, "<Size>");
 
     var the_words = avgtxt.replace(/<color=#[A-Za-z0-9]{6}>/g, "<color>").replace(/<Size=\d{2}>/g, "<Size>");
 
     while(the_words.indexOf("<") != -1 && the_words.length != 0){
 
     while(the_words.indexOf("<") != -1 && the_words.length != 0){
第859行: 第731行:
 
         let sign = 1;
 
         let sign = 1;
 
         for(i in sekeyword) if(("<" + sekeyword[i] + ">") == this_word) { sign = 0; break;}
 
         for(i in sekeyword) if(("<" + sekeyword[i] + ">") == this_word) { sign = 0; break;}
         if(sign) console.log(this_word);
+
         if(sign) console.log("need effect -- " + this_word);
 
         if(sign) sekeyword.push(this_word.slice(1, this_word.length - 1));
 
         if(sign) sekeyword.push(this_word.slice(1, this_word.length - 1));
 
     }
 
     }
第873行: 第745行:
 
             } else if(thisline.indexOf(";") == -1 && thisline.indexOf("()") != -1){
 
             } else if(thisline.indexOf(";") == -1 && thisline.indexOf("()") != -1){
 
             } else if(avgpicstr.indexOf("<Speaker>") < avgpicstr.indexOf(";")){
 
             } else if(avgpicstr.indexOf("<Speaker>") < avgpicstr.indexOf(";")){
 +
                let avgpic_righ = avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.length);
 
                 newavgdoll.push(avgpicstr.slice(0, avgpicstr.indexOf("<Speaker>")));
 
                 newavgdoll.push(avgpicstr.slice(0, avgpicstr.indexOf("<Speaker>")));
                 newavgdoll.push(avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.length));
+
                 newavgdoll.push((avgpic_righ.indexOf("<") == -1) ? avgpic_righ : avgpic_righ.slice(0, avgpic_righ.indexOf("<")));
 
             } else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){
 
             } else if(avgpicstr.indexOf("<Speaker>") > avgpicstr.indexOf(";")){
                 avgpicleft = avgpicstr.slice(0, ((avgpicstr.indexOf("<") < avgpicstr.indexOf(";")) ? avgpicstr.indexOf(";") : avgpicstr.indexOf("<")));
+
                 newavgdoll.push(avgpicstr.slice(0, ((avgpicstr.indexOf("<") > avgpicstr.indexOf(";")) ? avgpicstr.indexOf(";") : avgpicstr.indexOf("<"))));
 
                 newavgdoll.push(avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>")));
 
                 newavgdoll.push(avgpicstr.slice(avgpicstr.indexOf(";") + 1, avgpicstr.indexOf("<Speaker>")));
 
             }
 
             }
第900行: 第773行:
 
                 if(a == loading.bg[i].ID){ sign = 0; break; }
 
                 if(a == loading.bg[i].ID){ sign = 0; break; }
 
             } if(sign) loading.bg.push({"ID":a, "URL":bgarray[a]});
 
             } if(sign) loading.bg.push({"ID":a, "URL":bgarray[a]});
 +
        }
 +
        if(thisline.indexOf("<闪屏>") != -1){
 +
            let a = thisline.slice(thisline.indexOf("<闪屏>") + ("<闪屏>").length, thisline.indexOf("</闪屏>"));
 +
            if(a.indexOf("<CG>") != -1){
 +
                let b = a.slice(a.indexOf("<CG>") + ("<CG>").length, a.indexOf("</CG>")).split(",");
 +
                for(let j = 0; j < b.length; j ++){
 +
                    let sign = 1;
 +
                    for(let i = 0; i < loading.bg.length; i++){
 +
                        if(b[j] == loading.bg[i].ID){ sign = 0; break; }
 +
                    } if(sign) loading.bg.push({"ID":b[j], "URL":bgarray[b[j]]});
 +
                }
 +
            }
 
         }
 
         }
 
         if(thisline.indexOf("<common_effect>") != -1){
 
         if(thisline.indexOf("<common_effect>") != -1){
第951行: 第836行:
 
     for(i in loading.eff){
 
     for(i in loading.eff){
 
         let target_url = effarray[loading.eff[i].ID];
 
         let target_url = effarray[loading.eff[i].ID];
 +
        if(!target_url) {loadingnow.eff ++; continue;}
 
         let target_type = target_url.slice(target_url.length - 3, target_url.length);
 
         let target_type = target_url.slice(target_url.length - 3, target_url.length);
 
         let new_element = (target_type == "png") ? document.createElement('img') : document.createElement('video');
 
         let new_element = (target_type == "png") ? document.createElement('img') : document.createElement('video');
第986行: 第872行:
 
         $(new_element).css({"position":"absolute", "width":"1200px", "top":"-262.5px", "z-index":"1"});
 
         $(new_element).css({"position":"absolute", "width":"1200px", "top":"-262.5px", "z-index":"1"});
 
         $("#avgbox").append(new_element);
 
         $("#avgbox").append(new_element);
 +
    } else if(effect_name == "%%code=changjing_huafen%%"){
 +
        return;
 
     }
 
     }
 
}
 
}

2021年4月28日 (三) 23:55的版本