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
bbdf2146
authored
2 years ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
6dd45171
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
mTest/lib/default.js
mTest/room/images/gift-btn2.png
mTest/room/images/sound-no.png
mTest/room/liveRoom.html
mTest/lib/default.js
View file @
bbdf2146
...
...
@@ -26,6 +26,7 @@ sessionStorage.topicId=data.topicId
if
(
data
.
tag
==
undefined
)
data
.
tag
=
''
sessionStorage
.
tag
=
data
.
tag
sessionStorage
.
qd
=
data
.
qd
var
mySound
=
data
.
sound
;
if
(
sessionStorage
.
open
==
undefined
)
sessionStorage
.
open
=
1
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
try
{
...
...
This diff is collapsed.
Click to expand it.
mTest/room/images/gift-btn2.png
0 → 100644
View file @
bbdf2146
1.11 KB
This diff is collapsed.
Click to expand it.
mTest/room/images/sound-no.png
View file @
bbdf2146
2.42 KB
|
W:
|
H:
1.73 KB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
mTest/room/liveRoom.html
View file @
bbdf2146
...
...
@@ -223,8 +223,8 @@
</div> -->
</div>
<div
class=
"room-bottom"
>
<img
class=
"gift-btn"
src=
"images/gift-btn.png"
alt=
""
>
<img
data-type=
"0"
class=
"sound-btn"
src=
"images/sound-no.png"
alt=
""
>
<img
class=
"gift-btn"
src=
"images/gift-btn
2
.png"
alt=
""
>
<img
data-type=
"0"
class=
"sound-btn"
src=
"images/sound-no.png
?v=2022111801
"
alt=
""
>
<img
class=
"more-btn"
src=
"images/more-btn.png"
alt=
""
>
<div
class=
"more-btn-dian"
></div>
<img
class=
"msg-btn"
src=
"images/msg-btn.png"
alt=
""
>
...
...
@@ -561,7 +561,7 @@
</body>
<script
src=
"../lib/jquery-3.1.1.min.js"
></script>
<script
src=
"../lib/default.js?v=202211180
1
"
></script>
<script
src=
"../lib/default.js?v=202211180
2
"
></script>
<script
src=
"../layer-v3.1.0/layer/layer.js"
></script>
<!-- <script src="../lib/inobounce.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
...
...
@@ -686,7 +686,12 @@ $(function(){
loadOutNum=1000
}
var soundOk=false
if(mySound==1){
html+='
<
video
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
}
else
{
html
+=
'
<
video
muted
id
=
"myVideo"
autoplay
webkit
-
playsinline
=
"true"
x
-
webkit
-
airplay
=
"true"
playsinline
=
"true"
x5
-
video
-
player
-
type
=
"h5"
x5
-
video
-
player
-
fullscreen
=
"true"
style
=
"height:100%;object-fit:fill;position:absolute;z-index: 10"
poster
=
""
src
=
"'+data.pullFlowUrlHLS+'"
><
/video>
'
}
$
(
".video-box"
).
html
(
html
)
$
(
"#myVideo"
).
on
(
"canplay"
,
function
(){
setTimeout
(
function
()
{
...
...
@@ -699,11 +704,12 @@ $(function(){
var
_self
=
$
(
this
)
if
(
_self
.
attr
(
"data-type"
)
==
1
){
_self
.
attr
(
"data-type"
,
"0"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-no.png"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-no.png
?v=2022111801
"
)
$
(
".video-box video"
).
prop
(
"muted"
,
true
)
}
else
{
_self
.
attr
(
"data-type"
,
"1"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-yes.png"
)
$
(
".gift-btn"
).
attr
(
"src"
,
"images/gift-btn.png"
)
$
(
".video-box video"
).
prop
(
"muted"
,
false
)
}
...
...
@@ -713,6 +719,7 @@ $(function(){
soundOk
=
true
$
(
".sound-btn"
).
attr
(
"data-type"
,
"1"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-yes.png"
)
$
(
".gift-btn"
).
attr
(
"src"
,
"images/gift-btn.png"
)
$
(
".video-box video"
).
prop
(
"muted"
,
false
)
})
...
...
@@ -2309,7 +2316,7 @@ $(function(){
$
(
".room-bg,.video-box"
).
css
(
"transition"
,
"0.35s all"
)
$
(
".room-bg,.video-box"
).
css
(
"top"
,
"100vh"
)
setTimeout
(
function
()
{
window
.
location
.
href
=
"liveRoom.html?roomId="
+
topRoomId
+
""
window
.
location
.
href
=
"liveRoom.html?roomId="
+
topRoomId
+
"
&sound=1
"
},
350
);
return
}
...
...
@@ -2321,7 +2328,7 @@ $(function(){
$
(
".room-bg,.video-box"
).
css
(
"transition"
,
"0.35s all"
)
$
(
".room-bg,.video-box"
).
css
(
"top"
,
"-100vh"
)
setTimeout
(
function
()
{
window
.
location
.
href
=
"liveRoom.html?roomId="
+
BottomRoomId
+
""
window
.
location
.
href
=
"liveRoom.html?roomId="
+
BottomRoomId
+
"
&sound=1
"
},
350
);
return
}
...
...
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