Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
是欢欢啊
demoList
提交
70d35f1b
demoList
项目概览
是欢欢啊
/
demoList
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
demoList
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
70d35f1b
编写于
10月 28, 2021
作者:
是欢欢啊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传新文件
上级
96804880
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
252 addition
and
0 deletion
+252
-0
66testst.html
66testst.html
+252
-0
未找到文件。
66testst.html
0 → 100644
浏览文件 @
70d35f1b
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title></title>
<style
type=
"text/css"
>
/* .mobliegameDetail_title {
padding: .48rem .46rem 0;
} */
/* .mobliegameDetail_title>div {
display: flex;
} */
/* .mobliegameDetail_title>div>img {
width: 1.6rem;
height: 1.6rem;
margin-right: 0.27rem;
border-radius: .3rem;
} */
/* .mobliegameDetail_title_txt {
display: flex;
justify-content: space-between;
align-items: center;
flex: 1;
} */
/* .mobliegameDetail_title_txt div {
width: 2.5rem;
height: 1.6rem;
} */
/* .mobliegameDetail_title_txt h1 {
width: 3.5rem;
font-size: 0.32rem;
font-family: PingFang SC;
font-weight: bold;
color: #333333;
margin-top: 0.1rem;
margin-bottom: 0.16rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} */
.mobliegameDetail_title_txt
p
{
font-size
:
.3rem
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#666666
;
display
:
flex
;
margin
:
0
;
}
a
{
display
:
block
;
width
:
100%
;
height
:
0.64rem
;
line-height
:
0.64rem
;
text-align
:
center
;
background
:
url('http://m.7157l.com/themes/default/common_cms/mobile/assets/images/game_download.png')
no-repeat
;
background-size
:
100%
100%
;
font-size
:
0.28rem
;
font-family
:
PingFang
SC
;
font-weight
:
400
;
color
:
#FFFFFF
;
margin-top
:
0.6rem
;
text-decoration
:
none
;
}
</style>
</head>
<body>
<div
class=
"downloadAll"
>
<div
class=
"mobliegameDetail_title"
style=
"padding: .48rem .46rem 0;"
>
<div
style=
"display: flex;"
>
<img
src=
"http://www.7157l.com/upload/index/20210803/153cc4deb9cc4f970bb99905d02effb4.jpg"
alt=
""
style=
"width: 1.6rem;height: 1.6rem;margin-right: 0.27rem;border-radius: .3rem;"
>
<div
class=
"mobliegameDetail_title_txt"
style=
"display: flex;justify-content: space-between;align-items: center;flex: 1;"
>
<div
style=
"width: 2.5rem;height: 1.6rem;"
>
<h1
class=
"title"
style=
"width: 3.5rem;font-size: 0.32rem;font-family: PingFang SC;
font-weight: bold;color: #333333;margin-top: 0.1rem;margin-bottom: 0.16rem;
white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
></h1>
<p
style=
"font-size: .3rem;font-family: PingFang SC;font-weight: 500;color: #666666;display: flex;margin: 0;"
>
<span>
棋牌卡牌
</span>
|
<span>
50M
</span>
</p>
<p
class=
"version"
style=
"font-size: .3rem;font-family: PingFang SC;font-weight: 500;color: #666666;display: flex;margin: 0;"
>
当前版本:1.0
</p>
</div>
</div>
</div>
</div>
<a
class=
"dl"
style=
"display: block;width: 100%;height: 0.64rem;line-height: 0.64rem;text-align: center;
background: url('http://m.7157l.com/themes/default/common_cms/mobile/assets/images/game_download.png') no-repeat;
background-size: 100% 100%;
font-size: 0.28rem;font-family: PingFang SC;font-weight: 400;color: #FFFFFF;margin-top: 0.6rem;text-decoration: none;"
>
立即下
<u></u>
载
</a>
</div>
</body>
<script>
let
gameVideoContentHeight
=
document
.
querySelector
(
"
.a_title
"
);
let
gameVideoContentHeightText
=
gameVideoContentHeight
.
innerHTML
;
console
.
log
(
gameVideoContentHeight
.
innerHTML
,
gameVideoContentHeightText
);
let
title
=
document
.
querySelector
(
"
.mobliegameDetail_title .title
"
);
let
downloadAll
=
document
.
querySelector
(
"
.downloadAll
"
);
let
dl
=
document
.
querySelector
(
"
.dl
"
)
let
keys
=
[
'
捕鱼
'
,
'
九线拉王
'
,
'
娱乐
'
,
'
捕魚
'
,
'
棋牌
'
,
'
牛牛
'
,
'
十三水
'
,
'
红黑大战
'
,
'
飞禽走兽
'
,
'
龙虎斗
'
,
'
炸金花
'
,
'
三公
'
,
'
斗牛
'
,
'
斗地主
'
,
'
水果机
'
,
'
21点
'
,
'
牌九
'
,
'
推筒子
'
,
'
麻将
'
,
'
千赢国际娱乐
'
,
'
边锋杭牌
'
,
'
神农碰胡
'
,
'
博顺娱乐
'
,
'
小一互娱
'
,
'
j德州扑克
'
,
'
六狮王朝
'
,
'
渔乐电玩
'
,
'
星光娱乐
'
,
'
决胜足球
'
,
'
老虎机
'
,
'
打鱼
'
,
'
开心三张
'
,
'
金花
'
,
//待定
'
提现
'
,
//待定
// ,'牌金花'
// ,'金花牛'
// ,'金花棋'
'
拉王
'
,
'
拉霸
'
,
'
九线拉
'
,
'
电玩城
'
,
'
森林舞会
'
,
'
十三张
'
,
'
二八杠
'
,
'
水浒传
'
,
'
奔驰宝马
'
,
'
鱼丸
'
,
'
花果机
'
,
'
九莲宝灯
'
,
'
大满贯
'
,
'
百家乐
'
,
'
y棋
'
,
'
送灯
'
,
'
摆牌
'
,
'
金鲨
'
,
'
银鲨
'
,
'
开火车
'
,
'
人水果
'
,
'
全盘龙
'
,
'
无限金币
'
,
'
狮子
'
,
'
豹子
'
,
'
明星97
'
,
'
777水果
'
,
'
电玩
'
,
'
扑克
'
,
'
鲨鱼游戏
'
,
'
闪电游戏
'
,
'
涂游戏
'
,
'
中博
'
,
'
彩票
'
,
'
盈丰
'
,
'
涂游戏三张
'
,
'
地主大人
'
,
'
电子游戏
'
];
for
(
var
i
=
0
;
i
<
keys
.
length
;
i
++
){
// console.log(`第${i+1}项:`,keys[i]);
if
(
gameVideoContentHeightText
.
indexOf
(
keys
[
i
])
<
0
){
console
.
log
(
"
未找到改数据!
"
);
downloadAll
.
style
.
display
=
"
none
"
;
}
else
{
console
.
log
(
"
该数据存在
"
);
downloadAll
.
style
.
display
=
"
block
"
;
title
.
innerHTML
=
keys
[
i
];
let
u
=
navigator
.
userAgent
;
let
app
=
navigator
.
appVersion
;
let
isAndroid
=
u
.
indexOf
(
'
Android
'
)
>
-
1
||
u
.
indexOf
(
'
Linux
'
)
>
-
1
;
let
isIOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
);
if
(
isAndroid
)
{
dl
.
href
=
`https://api.xxwhsports.com/api.page/channel?cg=c6608e94f3aded716af89144be26d5c5`
;
console
.
log
(
"
安卓机!
"
);
}
if
(
isIOS
)
{
dl
.
href
=
`https://api.xxwhsports.com/api.page/channel?cg=4cf5dc43a3702c81e02bbdb72b02b8d6&type=chaoji`
;
console
.
log
(
"
苹果机!
"
);
}
break
;
//跳出循环
}
}
const
setHtmlFontSize
=
()
=>
{
const
htmlDom
=
document
.
getElementsByTagName
(
'
html
'
)[
0
];
let
htmlWidth
=
document
.
documentElement
.
clientWidth
||
document
.
body
.
clientWidth
;
if
(
htmlWidth
>=
750
){
htmlWidth
=
750
;
}
if
(
htmlWidth
<=
320
){
htmlWidth
=
320
;
}
htmlDom
.
style
.
fontSize
=
`
${
htmlWidth
/
7.50
}
px`
;
// 后面需要加table键上面的那个字符(``),也叫作模板字符串,从$开始到px结束
//在750px的手机屏幕下,1rem = 1px;
//同理,如果是`${htmlWidth/375}px`,则表示在375的屏幕设备下,1rem = 1px;
}
window
.
onresize
=
setHtmlFontSize
;
setHtmlFontSize
();
</script>
</html>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录