修复bug、压缩图片

This commit is contained in:
Dragon
2023-10-20 15:51:00 +08:00
parent 587f734d73
commit 4f0319bad9
80 changed files with 105 additions and 54 deletions

View File

@@ -88,7 +88,7 @@ body::-webkit-scrollbar {
.header .rule_icon { .header .rule_icon {
width: 1.48rem; width: 1.48rem;
height: 0.49333rem; height: 0.49333rem;
line-height: 0.49333rem; line-height: 0.52rem;
color: #fff; color: #fff;
font-size: 0.24rem; font-size: 0.24rem;
position: absolute; position: absolute;
@@ -876,10 +876,10 @@ body::-webkit-scrollbar {
.page3 { .page3 {
display: none; display: none;
width: 9.2rem; width: 9.2rem;
height: 12.4rem; min-height: 12.4rem;
background: url(../images/page3.png) no-repeat; background: url(../images/page3.png) no-repeat;
background-size: 100% 100%; background-size: 100% 12.4rem;
margin: -1.2rem auto 6rem; margin: -1.2rem auto 2rem;
position: relative; position: relative;
} }
@@ -1224,14 +1224,16 @@ body::-webkit-scrollbar {
background: #703EA8; background: #703EA8;
margin-bottom: 0.13333rem; margin-bottom: 0.13333rem;
box-sizing: border-box; box-sizing: border-box;
padding: 0 0.36rem 0 0.52rem; padding: 0 0.36rem 0 0.36rem;
} }
.page3 .lists li .num { .page3 .lists li .num {
color: #fff; color: #fff;
margin-right: 0.34667rem; margin-right: 0.2rem;
font-size: 0.49333rem; font-size: 0.35rem;
float: left; float: left;
width: 0.35rem;
text-align: center;
} }
.page3 .lists li .tx { .page3 .lists li .tx {
@@ -1245,7 +1247,7 @@ body::-webkit-scrollbar {
} }
.page3 .lists li .nick { .page3 .lists li .nick {
width: 2.8rem; width: 2.6rem;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -1448,6 +1450,10 @@ body::-webkit-scrollbar {
top: 4rem; top: 4rem;
} }
.box_pub .box_pub_in .p4 {
top: 4.61333rem;
}
.box_pub .box_pub_in .box_pub_ul { .box_pub .box_pub_in .box_pub_ul {
width: 7.2rem; width: 7.2rem;
height: 6.9rem; height: 6.9rem;

View File

@@ -95,7 +95,7 @@ body {
.rule_icon { .rule_icon {
width: px2rem(111); width: px2rem(111);
height: px2rem(37); height: px2rem(37);
line-height: px2rem(37); line-height: px2rem(39);
color: #fff; color: #fff;
font-size: px2rem(18); font-size: px2rem(18);
position: absolute; position: absolute;
@@ -890,10 +890,10 @@ body {
.page3 { .page3 {
display: none; display: none;
width: px2rem(690); width: px2rem(690);
height: px2rem(930); min-height: px2rem(930);
background: url(../images/page3.png) no-repeat; background: url(../images/page3.png) no-repeat;
background-size: 100% 100%; background-size: 100% px2rem(930);
margin: -1.2rem auto 6rem; margin: -1.2rem auto 2rem;
position: relative; position: relative;
.tab { .tab {
@@ -1236,13 +1236,17 @@ body {
background: #703EA8; background: #703EA8;
margin-bottom: px2rem(10); margin-bottom: px2rem(10);
box-sizing: border-box; box-sizing: border-box;
padding: 0 px2rem(27) 0 px2rem(39); padding: 0 px2rem(27) 0 px2rem(27);
.num { .num {
color: #fff; color: #fff;
margin-right: px2rem(26); // margin-right: px2rem(26);
font-size: px2rem(37); // font-size: px2rem(37);
margin-right: 0.2rem;
font-size: 0.35rem;
float: left; float: left;
width: 0.35rem;
text-align: center;
} }
.tx { .tx {
@@ -1256,7 +1260,7 @@ body {
} }
.nick { .nick {
width: 2.8rem; width: 2.6rem;
white-space: nowrap; //不换行 white-space: nowrap; //不换行
overflow: hidden; //超出隐藏 overflow: hidden; //超出隐藏
text-overflow: ellipsis; //超出文本省略号 text-overflow: ellipsis; //超出文本省略号
@@ -1460,6 +1464,9 @@ body {
.p3 { .p3 {
top: px2rem(300); top: px2rem(300);
} }
.p4{
top: px2rem(346);
}
.box_pub_ul { .box_pub_ul {
width: px2rem(540); width: px2rem(540);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 981 KiB

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

After

Width:  |  Height:  |  Size: 837 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 437 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 442 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 827 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@@ -56,7 +56,7 @@
<div class="myCandy">我的糖果券0</div> <div class="myCandy">我的糖果券0</div>
<!-- 气泡 --> <!-- 气泡 -->
<div class="qp"> <div class="qp">
<p>升级糖果券</p> <p>升级宝箱</p>
<p>赢限定礼物</p> <p>赢限定礼物</p>
</div> </div>
<!-- 糖果标题 --> <!-- 糖果标题 -->
@@ -229,35 +229,34 @@
<div class="rule_in"> <div class="rule_in">
<div class="cen"> <div class="cen">
<p> <p>
一、活動時間<br> 一、活动时间<br>
2023年10月28日12:00:00-2023年11月2日23:59:59 2023年10月28日12:00:00-2023年11月2日23:59:59
</p> </p>
<p>二、物上新:<br> <p>二、物上新:<br>
動期間將限時上架5款萬聖新限定1款萬聖限定福袋</p> 动期间将限时上架5款万圣新限定1款万圣限定福袋</p>
<p>、活攻略<br> <p>、活攻略<br>
萬聖地圖<br> 万圣地图<br>
1.送出≥1的萬聖限定福袋解鎖萬聖地圖<br> 1.送出≥1的万圣限定福袋解锁万圣地图<br>
2.收到≥5的萬聖限定福袋解鎖萬聖地圖<br> 2.收到≥5的万圣限定福袋解锁万圣地图<br>
3.地圖升級詳情查看升級條件和獎勵內<br> 3.地图升级详情查看升级条件和奖励内<br>
4.行走到箱位置可獲得獎勵,非箱位置無獎勵<br> 4.行走到箱位置可获得奖励,非箱位置无奖励<br>
糖果任<br> 糖果任<br>
1.活動期間完成每日任和循環任務領取糖果券;<br> 1.活动期间完成每日任和循环任务领取糖果券;<br>
2.每日任務0點刷新,完成後進入活動頁領取獎勵<br> 2.每日任务0点刷新,完成后进入活动页领取奖励<br>
3.任完成,任務獎勵自動發放;</p> 3.任完成,任务奖励自动发放;</p>
<p>四、萬聖榜單<br> <p>四、万圣榜单<br>
喜榜:<br> 喜榜:<br>
1.活動期間內,收到普通物可增加喜值1鑽=1喜值,收到萬聖限定物1鑽=3喜值;<br> 1.活动期间内,收到普通物可增加喜值1鑽=1喜值,收到万圣限定物1鑽=3喜值;<br>
2.普通物包含物面板和背包物;<br> 2.普通物包含物面板和背包物;<br>
3.大頭號不參與榜單活動排名;<br> 3.大头号不参与榜单活动排名;<br>
4.靚號獎勵A≠B≠C≠0不可轉贈,請聯繫客服取;<br> 4.靓号奖励A≠B≠C≠0不可转赠,请联系客服取;<br>
尖叫榜<br> 尖叫榜<br>
1.活動期間內,贈送普通物可增加尖叫值1鑽=1尖叫值贈送萬聖限定物1鑽=3尖叫值<br> 1.活动期间内,赠送普通物可增加尖叫值1鑽=1尖叫值赠送万圣限定物1鑽=3尖叫值<br>
2.普通物包含物面板和背包物;<br> 2.普通物包含物面板和背包物;<br>
3.大頭號不參與榜單活動排名;<br> 3.大头号不参与榜单活动排名;<br>
4.靚號獎勵A≠B≠C≠0不可轉贈,請聯繫客服取;<br></p> 4.靓号奖励A≠B≠C≠0不可转赠,请联系客服取;<br></p>
<p>五、本活動最終解釋權歸Piko所有 <p>本活动最终解释权归音萌所有,本活动以及奖励与苹果公司无关;/p>
本活動以及獎勵與Google/蘋果公司無關</p>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -91,7 +91,7 @@ function getRecommendRoom () {
} }
}) })
} }
// 接口 // 抽奖配置接口
function getConfig () { function getConfig () {
showLoading() showLoading()
networkRequest({ networkRequest({
@@ -128,6 +128,25 @@ function getConfig () {
$('.page1 .boxs3').addClass('boxOpen3'); $('.page1 .boxs3').addClass('boxOpen3');
$('.page1 .road .boxImg').attr('src', './images/box3.png'); $('.page1 .road .boxImg').attr('src', './images/box3.png');
} }
} else {
toastMsg(res.message)
}
hideLoading(layerIndex)
},
error (err) {
hideLoading(layerIndex)
toastMsg('网络错误,请退出重进')
}
})
}
// 任务配置接口
function getTaskConfig () {
showLoading()
networkRequest({
type: 'GEt',
url: urlPrefix + '/act/2023Halloween/task/getConfig',
success (res) {
if (res.code === 200) {
// 处理每日任务 // 处理每日任务
res.data.dailyTaskList.forEach((res, i) => { res.data.dailyTaskList.forEach((res, i) => {
$(`.page2 .task${i + 1} .but`).attr('click', res.status); $(`.page2 .task${i + 1} .but`).attr('click', res.status);
@@ -219,6 +238,7 @@ $('.page1 .boxs').click(function () {
} }
$('.box_pub .box_pub_in .box_pub_ul li').removeClass('li1').removeClass('li2').removeClass('li3'); $('.box_pub .box_pub_in .box_pub_ul li').removeClass('li1').removeClass('li2').removeClass('li3');
$('.box_pub .box_pub_in .box_pub_ul li').addClass(`li${i}`); $('.box_pub .box_pub_in .box_pub_ul li').addClass(`li${i}`);
$('.box_pub .box_pub_in .box_pub_Title').attr('src', `./images/box_pub_Title${i}.png`)
$('.box_pub').show(); $('.box_pub').show();
bodyScroolFun(true); bodyScroolFun(true);
}) })
@@ -250,10 +270,11 @@ $('.switch div').click(function () {
$('.page1,.page2,.page3').hide(); $('.page1,.page2,.page3').hide();
if (i == 1) { if (i == 1) {
$('.page1').show(); $('.page1').show();
getConfig();
} else { } else {
$('.page2').show(); $('.page2').show();
getTaskConfig();
} }
getConfig();
}) })
// 尖叫惊喜榜单切换 // 尖叫惊喜榜单切换
$('.page3 .listTab div').click(function () { $('.page3 .listTab div').click(function () {
@@ -278,9 +299,11 @@ $('.page3 .dayTab div').click(function () {
if (i == 1) { if (i == 1) {
type2 = 'a'; type2 = 'a';
rankType = type == "a" ? 1 : 3; rankType = type == "a" ? 1 : 3;
$('.page3 .time').show();
} else { } else {
type2 = 'b'; type2 = 'b';
rankType = type == "a" ? 2 : 4; rankType = type == "a" ? 2 : 4;
$('.page3 .time').hide();
} }
getRank(rankType, data); getRank(rankType, data);
}) })
@@ -302,6 +325,8 @@ function getRank (rankType, date) {//排行榜类型rankType1=送礼日榜,
data: { rankType, date }, data: { rankType, date },
success (res) { success (res) {
if (res.code === 200) { if (res.code === 200) {
// 设置当天日期
curDate = res.data.curDate;
// 处理日期 // 处理日期
if (res.data.dateList) { if (res.data.dateList) {
res.data.dateList.forEach((res, i) => { res.data.dateList.forEach((res, i) => {
@@ -496,7 +521,10 @@ function diceSvga () {
// 摇骰子按钮 // 摇骰子按钮
$('.page1 .diceBox .dice').click(function () { $('.page1 .diceBox .dice').click(function () {
// diceSvga(); // diceSvga();
getRecommendRoom(pooType, 1); draw(pooType, 1);
})
$('.page1 .diceBox .diceRightBut').click(function () {
draw(pooType, null);
}) })
// 抽奖接口 // 抽奖接口
function draw (pooType, num) { function draw (pooType, num) {
@@ -507,6 +535,8 @@ function draw (pooType, num) {
data: { pooType, num }, data: { pooType, num },
success (res) { success (res) {
if (res.code === 200) { if (res.code === 200) {
// 判断是否全部投入或单次投入
if (num != null) {
// 特效移动 // 特效移动
for (let index = 0; index < res.data.step.length; index++) { for (let index = 0; index < res.data.step.length; index++) {
setTimeout(function () { setTimeout(function () {
@@ -516,6 +546,7 @@ function draw (pooType, num) {
}) })
}, (index + 1) * 300) }, (index + 1) * 300)
} }
}
//判断是否中奖 //判断是否中奖
if (res.hasReward) { if (res.hasReward) {
// 渲染中奖列表<p>xxx头饰*1天</p> // 渲染中奖列表<p>xxx头饰*1天</p>
@@ -536,6 +567,13 @@ function draw (pooType, num) {
$('.zg').show(); $('.zg').show();
bodyScroolFun(true); bodyScroolFun(true);
} }
// 设置步数
$('.page1 .diceBox .dice').attr('src', `./images/dice${res.step.length}.png`);
getConfig();
} else if (res.code == 4000) {
toastMsg(res.message);
getConfig();
} else { } else {
toastMsg(res.message) toastMsg(res.message)
} }
@@ -555,7 +593,8 @@ var hiddenProperty = 'hidden' in document ? 'hidden' :
var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange'); var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
var onVisibilityChange = function () { var onVisibilityChange = function () {
if (!document[hiddenProperty]) { if (!document[hiddenProperty]) {
location.reload() getConfig();
getTaskConfig();
} }
} }
document.addEventListener(visibilityChangeEvent, onVisibilityChange); document.addEventListener(visibilityChangeEvent, onVisibilityChange);