demo.html
3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<title>妹妹聽指揮</title>
<script src="lib/fsize.js"></script>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/layer.css">
<link rel="stylesheet" href="css/daily.css">
<link rel="stylesheet" href="css/index.css?v=2022102001">
<link rel="stylesheet" href="css/liMarquee.css">
<style>
.layui-layer-shade {
opacity: 0.7 !important;
}
.yourclass5 {
border-radius: 0rem !important;
background: rgba(0, 0, 0, 0) !important;
}
.yourclass5 .layui-layer-content {
border-radius: 0rem !important;
}
.click1{
background:yellowgreen;
text-align: center;
height: 35vw;
line-height: 35vw;
font-size: 10vw;
}
.click2{
background: pink;
text-align: center;
height: 35vw;
line-height: 35vw;
font-size: 10vw;
}
.click3{
background: hotpink;
text-align: center;
height: 35vw;
line-height: 35vw;
font-size: 10vw;
}
</style>
</head>
<body style="background:rgba(0,0,0,0)">
<div class="click1">打開全屏</div>
<div class="click2">打開半屏</div>
<div class="click3">打開浮動屏</div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script>
<script src="lib/default.js?v='2022102002'"></script>
<script>
$(function(){
function appCollaboration(msg) {
var ua = window.navigator.userAgent.toLowerCase();
try {
if (/iphone|ipad|ipod/.test(ua)) {
window.webkit.messageHandlers.appCollaboration.postMessage(msg);
} else if (/android/.test(ua)) {
window.yazhai.appCollaboration(msg);
}
} catch (e) {
}
}
$(".click1").on("click",function(){
var obj = {
"cid": 31,
"reqCode": new Date().getTime(),
"data": {
"msg": '打开新网页',
"popupType": 1,
"url":'https://baike.baidu.com/item/%E9%A9%AC%E4%BF%9D%E5%9B%BD/50106525?fr=aladdin',
}
}
var objSend = JSON.stringify(obj);
appCollaboration(objSend)
})
$(".click2").on("click",function(){
var obj = {
"cid": 31,
"reqCode": new Date().getTime(),
"data": {
"msg": '打开新网页',
"popupType": 2,
"clickBlank":1,
"heightR":100,
"url":'https://baike.baidu.com/item/%E9%A9%AC%E4%BF%9D%E5%9B%BD/50106525?fr=aladdin',
}
}
var objSend = JSON.stringify(obj);
appCollaboration(objSend)
})
$(".click3").on("click",function(){
var obj = {
"cid": 31,
"reqCode": new Date().getTime(),
"data": {
"msg": '打开新网页',
"popupType": 3,
"clickBlank":1,
"heightR":880,
"widthR":70,
"url":'https://baike.baidu.com/item/%E9%A9%AC%E4%BF%9D%E5%9B%BD/50106525?fr=aladdin',
}
}
var objSend = JSON.stringify(obj);
appCollaboration(objSend)
})
})
</script>
</html>