feat: 计时/开牌结果移到右侧面板(限红区旁边)
- tab_b.html: limit-box 和 result-area 并排布局 - CSS: 隐藏原始大 overlay,结果在右侧面板显示 - JS: countDown/showPng 同步更新到 #resultAreaTimer/#resultAreaImg
This commit is contained in:
@@ -117,31 +117,36 @@
|
|||||||
<span id="betstatus"></span>
|
<span id="betstatus"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="limit-box">
|
<div class="bottom-row">
|
||||||
<div class="list clearfix" style="padding-top:0;">
|
<div class="limit-box">
|
||||||
<div class="lab" style="margin:0;">
|
<div class="list clearfix" style="padding-top:0;">
|
||||||
{:lang('banker')}\{:lang('player')}
|
<div class="lab" style="margin:0;">
|
||||||
|
{:lang('banker')}\{:lang('player')}
|
||||||
|
</div>
|
||||||
|
<div class="item fl">
|
||||||
|
<span class="fr showLimitBP"> </span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item fl">
|
<div class="list clearfix" style="padding-top:0;">
|
||||||
<span class="fr showLimitBP"> </span>
|
<div class="lab" style="margin:0;">
|
||||||
|
{:lang('tie')}
|
||||||
|
</div>
|
||||||
|
<div class="item fl">
|
||||||
|
<span class="fr showLimitTie"> </span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="list clearfix" style="padding-top:0;">
|
||||||
|
<div class="lab" style="margin:0;">
|
||||||
|
{:lang('pair')}
|
||||||
|
</div>
|
||||||
|
<div class="item fl">
|
||||||
|
<span class="fr showLimitPair"> </span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list clearfix" style="padding-top:0;">
|
<div class="result-area">
|
||||||
<div class="lab" style="margin:0;">
|
<div class="result-area-timer" id="resultAreaTimer"></div>
|
||||||
{:lang('tie')}
|
<div class="result-area-img" id="resultAreaImg"></div>
|
||||||
</div>
|
|
||||||
<div class="item fl">
|
|
||||||
<span class="fr showLimitTie"> </span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="list clearfix" style="padding-top:0;">
|
|
||||||
<div class="lab" style="margin:0;">
|
|
||||||
{:lang('pair')}
|
|
||||||
</div>
|
|
||||||
<div class="item fl">
|
|
||||||
<span class="fr showLimitPair"> </span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -453,10 +453,43 @@ margin-left: 0;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.bottom-row{
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
.table-data .limit-box{
|
.table-data .limit-box{
|
||||||
width: 95%;
|
flex: 1;
|
||||||
padding: 0 2.5%;
|
padding: 0 2.5%;
|
||||||
}
|
}
|
||||||
|
.result-area{
|
||||||
|
width: 35%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 10vh;
|
||||||
|
}
|
||||||
|
.result-area-timer{
|
||||||
|
font-size: 2.5vw;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
background: rgba(0,0,0,0.5);
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 5vw;
|
||||||
|
height: 5vw;
|
||||||
|
line-height: 5vw;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.result-area-img{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.result-area-img img{
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 12vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.table-data .lan-box{
|
.table-data .lan-box{
|
||||||
@@ -676,7 +709,7 @@ margin-left: 0;
|
|||||||
.countdown{ z-index: 999;
|
.countdown{ z-index: 999;
|
||||||
|
|
||||||
position:fixed;
|
position:fixed;
|
||||||
display: none;
|
display: none !important;
|
||||||
bottom: 22vh;
|
bottom: 22vh;
|
||||||
right: 1vw;
|
right: 1vw;
|
||||||
left: auto;
|
left: auto;
|
||||||
@@ -784,18 +817,9 @@ margin-left: 0;
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*结果弹窗*/
|
/*结果弹窗 - 隐藏原始大 overlay,结果在右侧面板 .result-area 显示*/
|
||||||
.result-box{
|
.result-box{
|
||||||
position: fixed;
|
display: none !important;
|
||||||
z-index: 1000;
|
|
||||||
bottom: 2vh;
|
|
||||||
right: 1vw;
|
|
||||||
left: auto;
|
|
||||||
width: 12vw;
|
|
||||||
}
|
|
||||||
.result-box img{
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.result-box.blink{
|
.result-box.blink{
|
||||||
|
|||||||
@@ -715,7 +715,11 @@ function showPng(opening, pair,isVoice){
|
|||||||
if(isVoice){
|
if(isVoice){
|
||||||
audioMp3(mp3List).Play();
|
audioMp3(mp3List).Play();
|
||||||
}
|
}
|
||||||
|
var imgSrc = $('#openingPng').attr('src');
|
||||||
|
if(imgSrc){
|
||||||
|
$("#resultAreaTimer").hide();
|
||||||
|
$("#resultAreaImg").html('<img src="'+imgSrc+'"/>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPngDt (opening,isVoice){
|
function showPngDt (opening,isVoice){
|
||||||
@@ -800,6 +804,8 @@ function countDown(time) {
|
|||||||
$(".countdown .num").html(time)
|
$(".countdown .num").html(time)
|
||||||
$(".countdown").css({"opacity":1,"display":"block"});
|
$(".countdown").css({"opacity":1,"display":"block"});
|
||||||
$(".countdown .grab-count").addClass("count-active");
|
$(".countdown .grab-count").addClass("count-active");
|
||||||
|
$("#resultAreaTimer").html(time).show();
|
||||||
|
$("#resultAreaImg").empty();
|
||||||
if(time == 10){
|
if(time == 10){
|
||||||
mp3List = ['time_tip_10.mp3'];
|
mp3List = ['time_tip_10.mp3'];
|
||||||
audioMp3(mp3List).Play();
|
audioMp3(mp3List).Play();
|
||||||
@@ -813,6 +819,7 @@ function countDown(time) {
|
|||||||
audioMp3(mp3List).Play();
|
audioMp3(mp3List).Play();
|
||||||
$(".countdown").css({"opacity":0,"display":"none"});
|
$(".countdown").css({"opacity":0,"display":"none"});
|
||||||
$(".countdown .grab-count").removeClass("count-active");
|
$(".countdown .grab-count").removeClass("count-active");
|
||||||
|
$("#resultAreaTimer").hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user