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
Nov 24, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
cb518452
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
5 deletions
mTest/index.html
mTest/index.js
mTest/room/liveRoom.html
mTest/index.html
View file @
5bb2d613
...
@@ -382,7 +382,7 @@
...
@@ -382,7 +382,7 @@
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<!-- <script src="lib/fingerprint2.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"lib/login.js?v=2022111801"
></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> -->
<!-- <script src="index.js" defer></script> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> -->
...
...
mTest/index.js
View file @
5bb2d613
...
@@ -15,7 +15,10 @@ const addBtn = document.querySelector('.add-button');
...
@@ -15,7 +15,10 @@ const addBtn = document.querySelector('.add-button');
addBtn
.
style
.
display
=
'none'
;
addBtn
.
style
.
display
=
'none'
;
window
.
addEventListener
(
'beforeinstallprompt'
,
(
e
)
=>
{
window
.
addEventListener
(
'beforeinstallprompt'
,
(
e
)
=>
{
$
(
".txt1"
).
on
(
"click"
,
function
(){
//安卓观看3个直播间
if
(
sessionStorage
.
lookNum
>=
3
){
sessionStorage
.
lookNum
=
0
setTimeout
(()
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
deferredPrompt
=
e
;
deferredPrompt
=
e
;
addBtn
.
style
.
display
=
'block'
;
addBtn
.
style
.
display
=
'block'
;
...
@@ -31,6 +34,34 @@ window.addEventListener('beforeinstallprompt', (e) => {
...
@@ -31,6 +34,34 @@ window.addEventListener('beforeinstallprompt', (e) => {
deferredPrompt
=
null
;
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
);
}
});
});
mTest/room/liveRoom.html
View file @
5bb2d613
...
@@ -575,10 +575,13 @@
...
@@ -575,10 +575,13 @@
<!-- <script src="lib/fingerprint2.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"../lib/login.js?v=2022111801"
></script>
<script
src=
"../lib/login.js?v=2022111801"
></script>
<script
src=
"../lib/flv.js"
></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>
<script>
$
(
function
(){
$
(
function
(){
if
(
sessionStorage
.
lookNum
==
undefined
||
sessionStorage
.
lookNum
==
0
)
sessionStorage
.
lookNum
=
1
;
else
{
sessionStorage
.
lookNum
=
sessionStorage
.
lookNum
+
1
;
}
var
dHeight
=
$
(
document
).
height
()
var
dHeight
=
$
(
document
).
height
()
$
(
".touch-box"
).
css
(
"height"
,
dHeight
/
2
+
"px"
)
$
(
".touch-box"
).
css
(
"height"
,
dHeight
/
2
+
"px"
)
$
(
".touch-box"
).
css
(
"margin-top"
,
-
dHeight
/
5
+
"px"
)
$
(
".touch-box"
).
css
(
"margin-top"
,
-
dHeight
/
5
+
"px"
)
...
...
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