提交 70d35f1b 编写于 作者: 是欢欢啊's avatar 是欢欢啊

上传新文件

上级 96804880
<!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>&nbsp;|&nbsp;
<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.
先完成此消息的编辑!
想要评论请 注册