Skip to content

Commit

Permalink
1.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
xifangczy committed May 25, 2022
1 parent 9c634b5 commit fddc155
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
8 changes: 6 additions & 2 deletions css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ body {
cursor: pointer;
width: 50%;
display: flex;
justify-content: center;
padding: 3px;
margin: 1px 2px 0 2px;
align-items: flex-end;
flex-direction: row;
align-items: baseline;
justify-content: center;
}
.TabButton.Active {
background-color: #f5f5f5;
Expand Down Expand Up @@ -153,3 +154,6 @@ body {
.TabShow {
display: block !important;
}
#mediaQuantity, #otherQuantity{
font-weight: bold;
}
6 changes: 1 addition & 5 deletions js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,7 @@ $("#testRegex").keyup(function () {
const testRegex = $("#testRegex").val();
const testFlag = $("#testFlag").val();
const reg = new RegExp(testRegex, testFlag);
if (reg.test(testUrl)) {
$("#testResult").html("匹配");
} else {
$("#testResult").html("不匹配");
}
reg.test(testUrl) ? $("#testResult").html("匹配") : $("#testResult").html("不匹配");
});


Expand Down
10 changes: 3 additions & 7 deletions js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ function AddMedia(data) {
return true;
});
//添加页面
if (data.tabId === -1) {
$('#otherMediaList').append(html);
} else {
$('#mediaList').append(html);
}
data.tabId == -1 ? $('#otherMediaList').append(html) : $('#mediaList').append(html);
}

//绑定事件
Expand Down Expand Up @@ -247,9 +243,9 @@ function UItoggle() {
length > 0 ? $('#Tips').hide() : $('#Tips').show();
length >= 30 ? $('#ToBottom').show() : $('#ToBottom').hide();
length = $('#mediaList .panel').length;
$("#mediaQuantity").text(length);
$("#mediaQuantity").text("[" + length + "]");
length = $('#otherMediaList .panel').length;
$("#otherQuantity").text(length);
$("#otherQuantity").text("[" + length + "]");
}

function Tips(text) {
Expand Down
4 changes: 2 additions & 2 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<div id="ToBottom">到最底部↓</div>
<div class="Tabs">
<div id="ActiveTab" class="TabButton Active">
当前标签 [ <div id="mediaQuantity"></div> ]
当前标签 <div id="mediaQuantity"></div>
</div>
<div id="OtherTab" class="TabButton">
幽灵数据 [ <div id="otherQuantity"></div> ]
幽灵数据 <div id="otherQuantity"></div>
</div>
</div>
<div id="Tips">还没闻到味儿~</div>
Expand Down

0 comments on commit fddc155

Please sign in to comment.