Browse Source

可以简单修改了

tags/v8.0
枫谷剑仙 7 years ago
parent
commit
c4604e337a
62 changed files with 353 additions and 27 deletions
  1. BIN
      images/001.png
  2. BIN
      images/CARDFRAME2.PNG
  3. BIN
      images/cards/CARDS_001.PNG
  4. BIN
      images/cards/CARDS_002.PNG
  5. BIN
      images/cards/CARDS_003.PNG
  6. BIN
      images/cards/CARDS_004.PNG
  7. BIN
      images/cards/CARDS_005.PNG
  8. BIN
      images/cards/CARDS_006.PNG
  9. BIN
      images/cards/CARDS_007.PNG
  10. BIN
      images/cards/CARDS_008.PNG
  11. BIN
      images/cards/CARDS_009.PNG
  12. BIN
      images/cards/CARDS_010.PNG
  13. BIN
      images/cards/CARDS_011.PNG
  14. BIN
      images/cards/CARDS_012.PNG
  15. BIN
      images/cards/CARDS_013.PNG
  16. BIN
      images/cards/CARDS_014.PNG
  17. BIN
      images/cards/CARDS_015.PNG
  18. BIN
      images/cards/CARDS_016.PNG
  19. BIN
      images/cards/CARDS_017.PNG
  20. BIN
      images/cards/CARDS_018.PNG
  21. BIN
      images/cards/CARDS_019.PNG
  22. BIN
      images/cards/CARDS_020.PNG
  23. BIN
      images/cards/CARDS_021.PNG
  24. BIN
      images/cards/CARDS_022.PNG
  25. BIN
      images/cards/CARDS_023.PNG
  26. BIN
      images/cards/CARDS_024.PNG
  27. BIN
      images/cards/CARDS_025.PNG
  28. BIN
      images/cards/CARDS_026.PNG
  29. BIN
      images/cards/CARDS_027.PNG
  30. BIN
      images/cards/CARDS_028.PNG
  31. BIN
      images/cards/CARDS_029.PNG
  32. BIN
      images/cards/CARDS_030.PNG
  33. BIN
      images/cards/CARDS_031.PNG
  34. BIN
      images/cards/CARDS_032.PNG
  35. BIN
      images/cards/CARDS_033.PNG
  36. BIN
      images/cards/CARDS_034.PNG
  37. BIN
      images/cards/CARDS_035.PNG
  38. BIN
      images/cards/CARDS_036.PNG
  39. BIN
      images/cards/CARDS_037.PNG
  40. BIN
      images/cards/CARDS_038.PNG
  41. BIN
      images/cards/CARDS_039.PNG
  42. BIN
      images/cards/CARDS_040.PNG
  43. BIN
      images/cards/CARDS_041.PNG
  44. BIN
      images/cards/CARDS_042.PNG
  45. BIN
      images/cards/CARDS_043.PNG
  46. BIN
      images/cards/CARDS_044.PNG
  47. BIN
      images/cards/CARDS_045.PNG
  48. BIN
      images/cards/CARDS_046.PNG
  49. BIN
      images/cards/CARDS_047.PNG
  50. BIN
      images/cards/CARDS_048.PNG
  51. BIN
      images/cards/CARDS_049.PNG
  52. BIN
      images/cards/CARDS_050.PNG
  53. BIN
      images/cards/CARDS_051.PNG
  54. BIN
      images/cards/CARDS_052.PNG
  55. BIN
      images/cards/CARDS_053.PNG
  56. BIN
      images/cards/CARDS_054.PNG
  57. BIN
      images/编辑界面设计.fw.png
  58. +44
    -7
      index.html
  59. +75
    -15
      script.js
  60. +196
    -4
      style.css
  61. +38
    -0
      universal_function.js
  62. +0
    -1
      怪物信息.json

BIN
images/001.png View File

Before After
Width: 98  |  Height: 98  |  Size: 8.5 kB

BIN
images/CARDFRAME2.PNG View File

Before After
Width: 512  |  Height: 256  |  Size: 18 kB

BIN
images/cards/CARDS_001.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 792 kB

BIN
images/cards/CARDS_002.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 806 kB

BIN
images/cards/CARDS_003.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 999 kB

BIN
images/cards/CARDS_004.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_005.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 945 kB

BIN
images/cards/CARDS_006.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 887 kB

BIN
images/cards/CARDS_007.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 889 kB

BIN
images/cards/CARDS_008.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 870 kB

BIN
images/cards/CARDS_009.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 873 kB

BIN
images/cards/CARDS_010.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 868 kB

BIN
images/cards/CARDS_011.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 849 kB

BIN
images/cards/CARDS_012.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 856 kB

BIN
images/cards/CARDS_013.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_014.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 897 kB

BIN
images/cards/CARDS_015.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 931 kB

BIN
images/cards/CARDS_016.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 988 kB

BIN
images/cards/CARDS_017.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 924 kB

BIN
images/cards/CARDS_018.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 981 kB

BIN
images/cards/CARDS_019.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 986 kB

BIN
images/cards/CARDS_020.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 929 kB

BIN
images/cards/CARDS_021.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 956 kB

BIN
images/cards/CARDS_022.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_023.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_024.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_025.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_026.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_027.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_028.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_029.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_030.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_031.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_032.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_033.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_034.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 974 kB

BIN
images/cards/CARDS_035.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.0 MB

BIN
images/cards/CARDS_036.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.2 MB

BIN
images/cards/CARDS_037.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 855 kB

BIN
images/cards/CARDS_038.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_039.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 907 kB

BIN
images/cards/CARDS_040.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.1 MB

BIN
images/cards/CARDS_041.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 938 kB

BIN
images/cards/CARDS_042.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 931 kB

BIN
images/cards/CARDS_043.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 1.2 MB

BIN
images/cards/CARDS_044.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 828 kB

BIN
images/cards/CARDS_045.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 790 kB

BIN
images/cards/CARDS_046.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 789 kB

BIN
images/cards/CARDS_047.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 947 kB

BIN
images/cards/CARDS_048.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 941 kB

BIN
images/cards/CARDS_049.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 902 kB

BIN
images/cards/CARDS_050.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 777 kB

BIN
images/cards/CARDS_051.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 892 kB

BIN
images/cards/CARDS_052.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 971 kB

BIN
images/cards/CARDS_053.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 750 kB

BIN
images/cards/CARDS_054.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 697 kB

BIN
images/编辑界面设计.fw.png View File

Before After
Width: 903  |  Height: 1185  |  Size: 296 kB

+ 44
- 7
index.html View File

@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>智龙迷城车队阵型图制作</title>
<link href="style1.css" rel="stylesheet" type="text/css">
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="universal_function.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
@@ -83,15 +83,31 @@
</ul>
<ul class="formation-team">
<li class="team team-1 team-leader">
<ul class="acquisitus-awoken-ul">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<a class="monster" target="_blank">
<div class="property"></div>
<div class="subproperty"></div>
<div class="addition">+297</div>
<div class="awoken-icon"></div>
<div class="level">Lv99</div>
<div class="addition has297"><div class="hp">99</div><div class="atk">99</div><div class="def">99</div><div class="_297">297</div></div>
<div class="awoken-icon awoken-none"></div>
<div class="level">99</div>
</a>
</li>
<li class="team team-2">
<ul class="acquisitus-awoken-ul">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<a class="monster" target="_blank">
<div class="property"></div>
<div class="subproperty"></div>
@@ -101,6 +117,14 @@
</a>
</li>
<li class="team team-3">
<ul class="acquisitus-awoken-ul">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<a class="monster" target="_blank">
<div class="property"></div>
<div class="subproperty"></div>
@@ -110,6 +134,14 @@
</a>
</li>
<li class="team team-4">
<ul class="acquisitus-awoken-ul">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<a class="monster" target="_blank">
<div class="property"></div>
<div class="subproperty"></div>
@@ -119,6 +151,14 @@
</a>
</li>
<li class="team team-5">
<ul class="acquisitus-awoken-ul">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<a class="monster" target="_blank">
<div class="property"></div>
<div class="subproperty"></div>
@@ -254,9 +294,6 @@
<a class="monster" target="_blank" title="5139" href="http://pad.skyozora.com/pets/5139">
<div class="property"></div>
<div class="subproperty"></div>
<div class="addition">+297</div>
<div class="awoken-icon">1</div>
<div class="level">Lv99</div>
</a>
</div>
</body>


+ 75
- 15
script.js View File

@@ -1,25 +1,85 @@
var mdata = {ja:null,en:null};
var ms = null;
window.onload = function()
{
GM_xmlhttpRequest({
method: "GET",
url:"monsters-info/mon.json",
onload: function(response) {
mdata.ja = JSON.parse(response.response);
GM_xmlhttpRequest({
method: "GET",
url:"monsters-info/en.json",
onload: function(response) {
mdata.en = JSON.parse(response.response);
//buildHTML(mdata);
},
onerror: function(response) {
console.error("英文怪物数据获取错误",response);
}
})
ms = JSON.parse(response.response);
console.log(ms);
},
onerror: function(response) {
console.error("日文怪物数据获取错误",response);
console.error("怪物数据获取错误",response);
}
})
}
}
function changeid(mon,monDom,awokenDom)
{
var md = ms[mon.id]; //怪物固定数据
/*
mon.id
mon.level
mon.awoken
mon.addition
mon.acquisitusAwoken
*/
if (mon.id) //如果提供了id
{
monDom.className = "monster";
monDom.classList.add("pet-cards-" + Math.ceil(mon.id/100)); //添加图片编号
var idxInPage = (mon.id-1) % 100; //获取当前页面的总序号
monDom.classList.add("pet-cards-index-x-" + idxInPage % 10); //添加X方向序号
monDom.classList.add("pet-cards-index-y-" + parseInt(idxInPage / 10)); //添加Y方向序号
monDom.querySelector(".property").className = "property property-" + md.ppt[0]; //主属性
monDom.querySelector(".subproperty").className = "subproperty subproperty-" + md.ppt[1]; //副属性
monDom.title = "No." + mon.id + " " + md.name;
monDom.href = "http://pad.skyozora.com/pets/" + mon.id;
}
if (mon.level) //如果提供了等级
{
monDom.querySelector(".level").innerHTML = mon.level || 99;
}
if (mon.awoken) //如果提供了觉醒
{
var awokenIcon = monDom.querySelector(".awoken-icon");
if (mon.awoken == 0 || md.awoken.length < 1) //没觉醒
{
awokenIcon.classList.add("awoken-none");
awokenIcon.innerHTML = "";
}else
{
awokenIcon.classList.remove("awoken-none");
if (mon.awoken < md.awoken.length) //觉醒没满直接写数字
awokenIcon.innerHTML = mon.awoken;
else //满觉醒打星星
awokenIcon.innerHTML = "★";
}
}
if (mon.addition) //如果提供了加值
{
monDom.querySelector(".addition .hp").innerHTML = mon.addition[0];
monDom.querySelector(".addition .atk").innerHTML = mon.addition[1];
monDom.querySelector(".addition .def").innerHTML = mon.addition[2];
if (mon.addition[0]+mon.addition[1]+mon.addition[2] >= 297)
{
monDom.querySelector(".addition").classList.add("has297");
}else
{
monDom.querySelector(".addition").classList.remove("has297");
}
}
if (awokenDom && mon.acquisitusAwoken) //如果提供了潜觉
{
}
}
var m1 = document.querySelector(".formation-A-box .formation-team .team-1 .monster");
var a1 = document.querySelector(".formation-A-box .formation-team .team-1 .acquisitus-awoken-ul");
changeid({
id:5209,
level:98,
awoken:8,
addition:[99,99,99],
acquisitusAwoken:[],
},m1,a1)

+ 196
- 4
style.css View File

@@ -26,19 +26,83 @@ ul{
margin: 0;
display: block;
float: left;
background-image: url(images/5139.png);
background-image: url(images/001.png);
background-repeat: no-repeat;
position: relative;
margin: 4px; /*留给队长边框的*/
}
/*怪物属性*/
.property,.subproperty{
position:absolute;
left:0;top:0;
width: 100px;
height: 100px;
background-repeat: no-repeat;
background-image: url(images/CARDFRAME2.PNG);
background-position: 100px 100px; /*默认都不显示*/
}
.property--1{
background: none; /*无*/
}
.property-0{
background-position: 0 0; /*火*/
}
.property-1{
background-position: -102px 0; /*水*/
}
.property-2{
background-position: -204px 0; /*木*/
}
.property-3{
background-position: -306px 0; /*光*/
}
.property-4{
background-position: -408px 0; /*暗*/
}
.subproperty--1{
background: none; /*无*/
}
.subproperty-0{
background-position: 0 -104px; /*火*/
}
.subproperty-1{
background-position: -102px -104px; /*水*/
}
.subproperty-2{
background-position: -204px -104px; /*木*/
}
.subproperty-3{
background-position: -306px -104px; /*光*/
}
.subproperty-4{
background-position: -408px -104px; /*暗*/
}
/*怪物-加值*/
.monster .addition{
color: yellow;
font-size: 20px;
line-height: 20px;
font-weight: bold;
text-shadow: black 2px 2px 0;
text-shadow: black 0 0 1px, black 2px 2px 0;
position: absolute;
left: 5px;
left:0;
}
.monster .addition ._297{
display:none;
}
.monster .addition .hp::before,
.monster .addition .atk::before,
.monster .addition .def::before,
.monster .addition ._297::before{
content: "+";
}
.monster .addition.has297 .hp,
.monster .addition.has297 .atk,
.monster .addition.has297 .def{
display:none;
}
.monster .addition.has297 ._297{
display:block;
}
/*怪物-觉醒*/
.monster .awoken-icon{
@@ -55,6 +119,9 @@ ul{
position: absolute;
right: 0;
}
.monster .awoken-icon.awoken-none{
display:none;
}
/*怪物-等级*/
.monster .level{
color: white;
@@ -64,6 +131,9 @@ ul{
left: 5px;
bottom: 0;
}
.monster .level::before{
content: "Lv";
}
/*辅助和队伍的每一只框架*/
.assist, .team, .acquisitus-awoken-icon {
display: block;
@@ -176,4 +246,126 @@ ul{
}
.formation-B-box .formation-team .team-leader .monster{
border-color: blue;
}
}
/*宠物头像所用的图片*/
.pet-cards-1{background-image: url(images/cards/CARDS_001.PNG);}
.pet-cards-2{background-image: url(images/cards/CARDS_002.PNG);}
.pet-cards-3{background-image: url(images/cards/CARDS_003.PNG);}
.pet-cards-4{background-image: url(images/cards/CARDS_004.PNG);}
.pet-cards-5{background-image: url(images/cards/CARDS_005.PNG);}
.pet-cards-6{background-image: url(images/cards/CARDS_006.PNG);}
.pet-cards-7{background-image: url(images/cards/CARDS_007.PNG);}
.pet-cards-8{background-image: url(images/cards/CARDS_008.PNG);}
.pet-cards-9{background-image: url(images/cards/CARDS_009.PNG);}
.pet-cards-10{background-image: url(images/cards/CARDS_010.PNG);}
.pet-cards-11{background-image: url(images/cards/CARDS_011.PNG);}
.pet-cards-12{background-image: url(images/cards/CARDS_012.PNG);}
.pet-cards-13{background-image: url(images/cards/CARDS_013.PNG);}
.pet-cards-14{background-image: url(images/cards/CARDS_014.PNG);}
.pet-cards-15{background-image: url(images/cards/CARDS_015.PNG);}
.pet-cards-16{background-image: url(images/cards/CARDS_016.PNG);}
.pet-cards-17{background-image: url(images/cards/CARDS_017.PNG);}
.pet-cards-18{background-image: url(images/cards/CARDS_018.PNG);}
.pet-cards-19{background-image: url(images/cards/CARDS_019.PNG);}
.pet-cards-20{background-image: url(images/cards/CARDS_020.PNG);}
.pet-cards-21{background-image: url(images/cards/CARDS_021.PNG);}
.pet-cards-22{background-image: url(images/cards/CARDS_022.PNG);}
.pet-cards-23{background-image: url(images/cards/CARDS_023.PNG);}
.pet-cards-24{background-image: url(images/cards/CARDS_024.PNG);}
.pet-cards-25{background-image: url(images/cards/CARDS_025.PNG);}
.pet-cards-26{background-image: url(images/cards/CARDS_026.PNG);}
.pet-cards-27{background-image: url(images/cards/CARDS_027.PNG);}
.pet-cards-28{background-image: url(images/cards/CARDS_028.PNG);}
.pet-cards-29{background-image: url(images/cards/CARDS_029.PNG);}
.pet-cards-30{background-image: url(images/cards/CARDS_030.PNG);}
.pet-cards-31{background-image: url(images/cards/CARDS_031.PNG);}
.pet-cards-32{background-image: url(images/cards/CARDS_032.PNG);}
.pet-cards-33{background-image: url(images/cards/CARDS_033.PNG);}
.pet-cards-34{background-image: url(images/cards/CARDS_034.PNG);}
.pet-cards-35{background-image: url(images/cards/CARDS_035.PNG);}
.pet-cards-36{background-image: url(images/cards/CARDS_036.PNG);}
.pet-cards-37{background-image: url(images/cards/CARDS_037.PNG);}
.pet-cards-38{background-image: url(images/cards/CARDS_038.PNG);}
.pet-cards-39{background-image: url(images/cards/CARDS_039.PNG);}
.pet-cards-40{background-image: url(images/cards/CARDS_040.PNG);}
.pet-cards-41{background-image: url(images/cards/CARDS_041.PNG);}
.pet-cards-42{background-image: url(images/cards/CARDS_042.PNG);}
.pet-cards-43{background-image: url(images/cards/CARDS_043.PNG);}
.pet-cards-44{background-image: url(images/cards/CARDS_044.PNG);}
.pet-cards-45{background-image: url(images/cards/CARDS_045.PNG);}
.pet-cards-46{background-image: url(images/cards/CARDS_046.PNG);}
.pet-cards-47{background-image: url(images/cards/CARDS_047.PNG);}
.pet-cards-48{background-image: url(images/cards/CARDS_048.PNG);}
.pet-cards-49{background-image: url(images/cards/CARDS_049.PNG);}
.pet-cards-50{background-image: url(images/cards/CARDS_050.PNG);}
.pet-cards-51{background-image: url(images/cards/CARDS_051.PNG);}
.pet-cards-52{background-image: url(images/cards/CARDS_052.PNG);}
.pet-cards-53{background-image: url(images/cards/CARDS_053.PNG);}
.pet-cards-54{background-image: url(images/cards/CARDS_054.PNG);}
.pet-cards-55{background-image: url(images/cards/CARDS_055.PNG);}
.pet-cards-56{background-image: url(images/cards/CARDS_056.PNG);}
.pet-cards-57{background-image: url(images/cards/CARDS_057.PNG);}
.pet-cards-58{background-image: url(images/cards/CARDS_058.PNG);}
.pet-cards-59{background-image: url(images/cards/CARDS_059.PNG);}
.pet-cards-60{background-image: url(images/cards/CARDS_060.PNG);}
.pet-cards-61{background-image: url(images/cards/CARDS_061.PNG);}
.pet-cards-62{background-image: url(images/cards/CARDS_062.PNG);}
.pet-cards-63{background-image: url(images/cards/CARDS_063.PNG);}
.pet-cards-64{background-image: url(images/cards/CARDS_064.PNG);}
.pet-cards-65{background-image: url(images/cards/CARDS_065.PNG);}
.pet-cards-66{background-image: url(images/cards/CARDS_066.PNG);}
.pet-cards-67{background-image: url(images/cards/CARDS_067.PNG);}
.pet-cards-68{background-image: url(images/cards/CARDS_068.PNG);}
.pet-cards-69{background-image: url(images/cards/CARDS_069.PNG);}
.pet-cards-70{background-image: url(images/cards/CARDS_070.PNG);}
.pet-cards-71{background-image: url(images/cards/CARDS_071.PNG);}
.pet-cards-72{background-image: url(images/cards/CARDS_072.PNG);}
.pet-cards-73{background-image: url(images/cards/CARDS_073.PNG);}
.pet-cards-74{background-image: url(images/cards/CARDS_074.PNG);}
.pet-cards-75{background-image: url(images/cards/CARDS_075.PNG);}
.pet-cards-76{background-image: url(images/cards/CARDS_076.PNG);}
.pet-cards-77{background-image: url(images/cards/CARDS_077.PNG);}
.pet-cards-78{background-image: url(images/cards/CARDS_078.PNG);}
.pet-cards-79{background-image: url(images/cards/CARDS_079.PNG);}
.pet-cards-80{background-image: url(images/cards/CARDS_080.PNG);}
.pet-cards-81{background-image: url(images/cards/CARDS_081.PNG);}
.pet-cards-82{background-image: url(images/cards/CARDS_082.PNG);}
.pet-cards-83{background-image: url(images/cards/CARDS_083.PNG);}
.pet-cards-84{background-image: url(images/cards/CARDS_084.PNG);}
.pet-cards-85{background-image: url(images/cards/CARDS_085.PNG);}
.pet-cards-86{background-image: url(images/cards/CARDS_086.PNG);}
.pet-cards-87{background-image: url(images/cards/CARDS_087.PNG);}
.pet-cards-88{background-image: url(images/cards/CARDS_088.PNG);}
.pet-cards-89{background-image: url(images/cards/CARDS_089.PNG);}
.pet-cards-90{background-image: url(images/cards/CARDS_090.PNG);}
.pet-cards-91{background-image: url(images/cards/CARDS_091.PNG);}
.pet-cards-92{background-image: url(images/cards/CARDS_092.PNG);}
.pet-cards-93{background-image: url(images/cards/CARDS_093.PNG);}
.pet-cards-94{background-image: url(images/cards/CARDS_094.PNG);}
.pet-cards-95{background-image: url(images/cards/CARDS_095.PNG);}
.pet-cards-96{background-image: url(images/cards/CARDS_096.PNG);}
.pet-cards-97{background-image: url(images/cards/CARDS_097.PNG);}
.pet-cards-98{background-image: url(images/cards/CARDS_098.PNG);}
.pet-cards-99{background-image: url(images/cards/CARDS_099.PNG);}
/*宠物在图中编号对应的坐标*/
.pet-cards-index-x-0{background-position-x:0px;}
.pet-cards-index-x-1{background-position-x:-102px;}
.pet-cards-index-x-2{background-position-x:-204px;}
.pet-cards-index-x-3{background-position-x:-306px;}
.pet-cards-index-x-4{background-position-x:-408px;}
.pet-cards-index-x-5{background-position-x:-510px;}
.pet-cards-index-x-6{background-position-x:-612px;}
.pet-cards-index-x-7{background-position-x:-714px;}
.pet-cards-index-x-8{background-position-x:-816px;}
.pet-cards-index-x-9{background-position-x:-918px;}
.pet-cards-index-y-0{background-position-y:0px;}
.pet-cards-index-y-1{background-position-y:-102px;}
.pet-cards-index-y-2{background-position-y:-204px;}
.pet-cards-index-y-3{background-position-y:-306px;}
.pet-cards-index-y-4{background-position-y:-408px;}
.pet-cards-index-y-5{background-position-y:-510px;}
.pet-cards-index-y-6{background-position-y:-612px;}
.pet-cards-index-y-7{background-position-y:-714px;}
.pet-cards-index-y-8{background-position-y:-816px;}
.pet-cards-index-y-9{background-position-y:-918px;}

+ 38
- 0
universal_function.js View File

@@ -0,0 +1,38 @@
//仿GM_xmlhttpRequest函数v1.3
if (typeof(GM_xmlhttpRequest) == "undefined") {
var GM_xmlhttpRequest = function(GM_param) {
var xhr = new XMLHttpRequest(); //创建XMLHttpRequest对象
xhr.open(GM_param.method, GM_param.url, true);
if (GM_param.responseType) xhr.responseType = GM_param.responseType;
if (GM_param.overrideMimeType) xhr.overrideMimeType(GM_param.overrideMimeType);
xhr.onreadystatechange = function() //设置回调函数
{
if (xhr.readyState === xhr.DONE) {
if (xhr.status === 200 && GM_param.onload)
GM_param.onload(xhr);
if (xhr.status !== 200 && GM_param.onerror)
GM_param.onerror(xhr);
}
}
for (var header in GM_param.headers) {
xhr.setRequestHeader(header, GM_param.headers[header]);
}
xhr.send(GM_param.data ? GM_param.data : null);
}
}
//数字补0
function PrefixInteger(num, length) {
return (Array(length).join('0') + num).slice(-length);
}
//根据id返回宠物图标的坐标
function iconPosition(monid)
{
var indexInThisPage = (monid-1) % 100;
var ix = indexInThisPage % 10;
var iy = parseInt(indexInThisPage / 10);
var position = [(100 + 2) * ix * -1,(100 + 2) * iy * -1];
return position;
}

+ 0
- 1
怪物信息.json
File diff suppressed because it is too large
View File


Loading…
Cancel
Save