WIP
This commit is contained in:
parent
6faf3293ad
commit
8015271ad2
@ -18,7 +18,7 @@
|
|||||||
<div class="col-1"></div>
|
<div class="col-1"></div>
|
||||||
<div class="col-3 m-2 card"><div class="position-absolute">Last Follow:</div><div id="follow" class="text-center fs-1 fw-bolder">-</div></div>
|
<div class="col-3 m-2 card"><div class="position-absolute">Last Follow:</div><div id="follow" class="text-center fs-1 fw-bolder">-</div></div>
|
||||||
<div class="col-3 m-2 card"><div class="position-absolute">Last Sub:</div><div id="subscribe" class="text-center fs-1 fw-bolder">-</div></div>
|
<div class="col-3 m-2 card"><div class="position-absolute">Last Sub:</div><div id="subscribe" class="text-center fs-1 fw-bolder">-</div></div>
|
||||||
<div class="col-3 m-2 card"><div class="position-absolute">Last Dono:</div><div id="dono" class="text-center fs-1 fw-bolder">-</div></div>
|
<div class="col-3 m-2 card"><div class="position-absolute">Last Donation:</div><div id="donate" class="text-center fs-1 fw-bolder">-</div></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="single"></div>
|
<div id="single"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,15 +61,15 @@ $(function () {
|
|||||||
while(socket.getReadyState() === 0){
|
while(socket.getReadyState() === 0){
|
||||||
await new Promise(r => setTimeout(r, 500));
|
await new Promise(r => setTimeout(r, 500));
|
||||||
}
|
}
|
||||||
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastFollow', (response)=>{
|
socket.getDBValue("get_current_stream_info_lastFollow", 'streamInfo', 'lastFollow', (response)=>{
|
||||||
if(response.streamInfo) lastFollow = response.streamInfo || lastFollow;
|
if(response.streamInfo) lastFollow = response.streamInfo || lastFollow;
|
||||||
refreshUI();
|
refreshUI();
|
||||||
})
|
})
|
||||||
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastSub', (response)=>{
|
socket.getDBValue("get_current_stream_info_lastSub", 'streamInfo', 'lastSub', (response)=>{
|
||||||
if(response.streamInfo) lastSub = response.streamInfo || lastSub;
|
if(response.streamInfo) lastSub = response.streamInfo || lastSub;
|
||||||
refreshUI();
|
refreshUI();
|
||||||
})
|
})
|
||||||
socket.getDBValue("get_current_stream_info", 'streamInfo', 'lastDonator', (response)=>{
|
socket.getDBValue("get_current_stream_info_lastDonator", 'streamInfo', 'lastDonator', (response)=>{
|
||||||
if(response.streamInfo) lastDonator = response.streamInfo || lastDonator;
|
if(response.streamInfo) lastDonator = response.streamInfo || lastDonator;
|
||||||
refreshUI();
|
refreshUI();
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user