Browse Source

修复一些细节

tags/v1.0
枫谷剑仙 7 years ago
parent
commit
5683f858d5
2 changed files with 8 additions and 6 deletions
  1. +5
    -4
      script.js
  2. +3
    -2
      style.css

+ 5
- 4
script.js View File

@@ -41,19 +41,18 @@ window.onload = function()
onload: function(response) { onload: function(response) {
ms = JSON.parse(response.response); ms = JSON.parse(response.response);
initialize();//初始化 initialize();//初始化
try try
{ {
var idataQer = getQueryString("data"); var idataQer = getQueryString("data");
if (idataQer) if (idataQer)
{ {
var idata = JSON.parse(decodeURIComponent(idataQer));
var idata = JSON.parse(idataQer);
formation = idata; formation = idata;
refreshAll(formation); refreshAll(formation);
} }
}catch(e) }catch(e)
{ {
console.log("初始数据解码出错");
console.log("初始数据解码出错",e);
} }
//test(); //测试代码 //test(); //测试代码
}, },
@@ -73,7 +72,7 @@ function creatNewUrl(){
function getQueryString(name) { function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg); var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
if (r != null) return decodeURIComponent(r[2]); return null;
} }
//初始化 //初始化
function initialize() function initialize()
@@ -337,6 +336,8 @@ function changeid(mon,monDom,latentDom)
awokenIcon.innerHTML = "★"; awokenIcon.innerHTML = "★";
if (md.assist) if (md.assist)
awokenIcon.classList.add("allowable-assist"); awokenIcon.classList.add("allowable-assist");
else
awokenIcon.classList.remove("allowable-assist");
} }
} }
} }


+ 3
- 2
style.css View File

@@ -24,6 +24,7 @@
width:100%; width:100%;
max-width:100%; max-width:100%;
min-width:100%; min-width:100%;
height: 100px;
resize: vertical; resize: vertical;
border: none; border: none;
background: none; background: none;
@@ -254,9 +255,9 @@ ul{
/*队伍的潜觉*/ /*队伍的潜觉*/
.formation-box .latents{ .formation-box .latents{
width: 108px; width: 108px;
/*height: 46px;*/
float: left;
/*float:left;*/
margin-bottom: -19px; margin-bottom: -19px;
display: inline-block;
} }
.formation-box .latent-ul{ .formation-box .latent-ul{
font-size: 0; font-size: 0;


Loading…
Cancel
Save