Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5bb2d613
authored
2 years ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
cb518452
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
19 deletions
mTest/index.html
mTest/index.js
mTest/room/liveRoom.html
mTest/index.html
View file @
5bb2d613
...
...
@@ -382,7 +382,7 @@
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"lib/login.js?v=2022111801"
></script>
<script
src=
"index.js?v=202211240
2
"
defer=
""
></script>
<script
src=
"index.js?v=202211240
5
"
defer=
""
></script>
<!-- <script src="index.js" defer></script> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> -->
...
...
This diff is collapsed.
Click to expand it.
mTest/index.js
View file @
5bb2d613
...
...
@@ -15,22 +15,53 @@ const addBtn = document.querySelector('.add-button');
addBtn
.
style
.
display
=
'none'
;
window
.
addEventListener
(
'beforeinstallprompt'
,
(
e
)
=>
{
$
(
".txt1"
).
on
(
"click"
,
function
(){
e
.
preventDefault
();
deferredPrompt
=
e
;
addBtn
.
style
.
display
=
'block'
;
addBtn
.
addEventListener
(
'click'
,
()
=>
{
addBtn
.
style
.
display
=
'none'
;
deferredPrompt
.
prompt
();
deferredPrompt
.
userChoice
.
then
((
choiceResult
)
=>
{
if
(
choiceResult
.
outcome
===
'accepted'
)
{
console
.
log
(
'User accepted the A2HS prompt'
);
}
else
{
console
.
log
(
'User dismissed the A2HS prompt'
);
}
deferredPrompt
=
null
;
//安卓观看3个直播间
if
(
sessionStorage
.
lookNum
>=
3
){
sessionStorage
.
lookNum
=
0
setTimeout
(()
=>
{
e
.
preventDefault
();
deferredPrompt
=
e
;
addBtn
.
style
.
display
=
'block'
;
addBtn
.
addEventListener
(
'click'
,
()
=>
{
addBtn
.
style
.
display
=
'none'
;
deferredPrompt
.
prompt
();
deferredPrompt
.
userChoice
.
then
((
choiceResult
)
=>
{
if
(
choiceResult
.
outcome
===
'accepted'
)
{
console
.
log
(
'User accepted the A2HS prompt'
);
}
else
{
console
.
log
(
'User dismissed the A2HS prompt'
);
}
deferredPrompt
=
null
;
});
});
});
})
},
3000
);
}
//安卓首页停留20秒
if
(
sessionStorage
.
time
==
undefined
){
setTimeout
(
function
()
{
var
bbb
=
location
.
href
;
if
(
bbb
.
indexOf
(
"liveRoom"
)
>
-
1
){
return
;
}
sessionStorage
.
time
=
1
e
.
preventDefault
();
deferredPrompt
=
e
;
addBtn
.
style
.
display
=
'block'
;
addBtn
.
addEventListener
(
'click'
,
()
=>
{
addBtn
.
style
.
display
=
'none'
;
deferredPrompt
.
prompt
();
deferredPrompt
.
userChoice
.
then
((
choiceResult
)
=>
{
if
(
choiceResult
.
outcome
===
'accepted'
)
{
console
.
log
(
'User accepted the A2HS prompt'
);
}
else
{
console
.
log
(
'User dismissed the A2HS prompt'
);
}
deferredPrompt
=
null
;
});
});
},
20000
);
}
});
This diff is collapsed.
Click to expand it.
mTest/room/liveRoom.html
View file @
5bb2d613
...
...
@@ -575,10 +575,13 @@
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"../lib/login.js?v=2022111801"
></script>
<script
src=
"../lib/flv.js"
></script>
<script
src=
"../index.js?v=2022112
398
"
defer=
""
></script>
<script
src=
"../index.js?v=2022112
405
"
defer=
""
></script>
<script>
$
(
function
(){
if
(
sessionStorage
.
lookNum
==
undefined
||
sessionStorage
.
lookNum
==
0
)
sessionStorage
.
lookNum
=
1
;
else
{
sessionStorage
.
lookNum
=
sessionStorage
.
lookNum
+
1
;
}
var
dHeight
=
$
(
document
).
height
()
$
(
".touch-box"
).
css
(
"height"
,
dHeight
/
2
+
"px"
)
$
(
".touch-box"
).
css
(
"margin-top"
,
-
dHeight
/
5
+
"px"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment