B站下载姬添加直播用户名显示

新增/修改B站直播时自动获取直播用户名
This commit is contained in:
yutou
2020-10-13 18:19:41 +08:00
parent c62f6a59b9
commit 4e69d01c02
9 changed files with 139 additions and 11 deletions

View File

@@ -46,6 +46,7 @@
, page: true
, cols: [[
{ field: "id", title: "id", width: 80, sort: true, fixed: 'left' }
, { field: 'title', title: '直播间', width: 200 }
, { field: 'cid', title: 'cid', width: 100 }
, { field: 'url', title: 'url', width: 400 }
, { field: 'status', title: '状态', width: 80 }

View File

@@ -105,7 +105,7 @@
})
})
$(document).ready(function () {
let mobile = navigator.userAgent.toLowerCase().match(/android/i) == "android" || navigator.userAgent.toLowerCase().match(/iphone os/i) == "iphone os";
let mobile = navigator.userAgent.toLowerCase().match(/android/i) === "android" || navigator.userAgent.toLowerCase().match(/iphone os/i) === "iphone os";
if (mobile) {
$('.layui-body').css('left', '0')
$('.layui-body').css('top', '150px')