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
Nov 18, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
6dd45171
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 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
...
@@ -26,6 +26,7 @@ sessionStorage.topicId=data.topicId
if
(
data
.
tag
==
undefined
)
data
.
tag
=
''
if
(
data
.
tag
==
undefined
)
data
.
tag
=
''
sessionStorage
.
tag
=
data
.
tag
sessionStorage
.
tag
=
data
.
tag
sessionStorage
.
qd
=
data
.
qd
sessionStorage
.
qd
=
data
.
qd
var
mySound
=
data
.
sound
;
if
(
sessionStorage
.
open
==
undefined
)
sessionStorage
.
open
=
1
if
(
sessionStorage
.
open
==
undefined
)
sessionStorage
.
open
=
1
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
try
{
try
{
...
...
mTest/room/images/gift-btn2.png
0 → 100644
View file @
bbdf2146
1.11 KB
mTest/room/images/sound-no.png
View file @
bbdf2146
2.42 KB
|
W:
|
H:
1.73 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mTest/room/liveRoom.html
View file @
bbdf2146
...
@@ -223,8 +223,8 @@
...
@@ -223,8 +223,8 @@
</div> -->
</div> -->
</div>
</div>
<div
class=
"room-bottom"
>
<div
class=
"room-bottom"
>
<img
class=
"gift-btn"
src=
"images/gift-btn.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"
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=
""
>
<img
class=
"more-btn"
src=
"images/more-btn.png"
alt=
""
>
<div
class=
"more-btn-dian"
></div>
<div
class=
"more-btn-dian"
></div>
<img
class=
"msg-btn"
src=
"images/msg-btn.png"
alt=
""
>
<img
class=
"msg-btn"
src=
"images/msg-btn.png"
alt=
""
>
...
@@ -561,7 +561,7 @@
...
@@ -561,7 +561,7 @@
</body>
</body>
<script
src=
"../lib/jquery-3.1.1.min.js"
></script>
<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=
"../layer-v3.1.0/layer/layer.js"
></script>
<!-- <script src="../lib/inobounce.js"></script> -->
<!-- <script src="../lib/inobounce.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
...
@@ -686,7 +686,12 @@ $(function(){
...
@@ -686,7 +686,12 @@ $(function(){
loadOutNum=1000
loadOutNum=1000
}
}
var soundOk=false
var soundOk=false
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>
'
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
)
$
(
".video-box"
).
html
(
html
)
$
(
"#myVideo"
).
on
(
"canplay"
,
function
(){
$
(
"#myVideo"
).
on
(
"canplay"
,
function
(){
setTimeout
(
function
()
{
setTimeout
(
function
()
{
...
@@ -694,16 +699,17 @@ $(function(){
...
@@ -694,16 +699,17 @@ $(function(){
$
(
".room-content-loading"
).
fadeOut
(
100
)
$
(
".room-content-loading"
).
fadeOut
(
100
)
$
(
".loading-face"
).
fadeOut
(
100
)
$
(
".loading-face"
).
fadeOut
(
100
)
},
loadOutNum
);
},
loadOutNum
);
$
(
".sound-btn"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
$
(
".sound-btn"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
var
_self
=
$
(
this
)
var
_self
=
$
(
this
)
if
(
_self
.
attr
(
"data-type"
)
==
1
){
if
(
_self
.
attr
(
"data-type"
)
==
1
){
_self
.
attr
(
"data-type"
,
"0"
)
_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
)
$
(
".video-box video"
).
prop
(
"muted"
,
true
)
}
else
{
}
else
{
_self
.
attr
(
"data-type"
,
"1"
)
_self
.
attr
(
"data-type"
,
"1"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-yes.png"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-yes.png"
)
$
(
".gift-btn"
).
attr
(
"src"
,
"images/gift-btn.png"
)
$
(
".video-box video"
).
prop
(
"muted"
,
false
)
$
(
".video-box video"
).
prop
(
"muted"
,
false
)
}
}
...
@@ -713,6 +719,7 @@ $(function(){
...
@@ -713,6 +719,7 @@ $(function(){
soundOk
=
true
soundOk
=
true
$
(
".sound-btn"
).
attr
(
"data-type"
,
"1"
)
$
(
".sound-btn"
).
attr
(
"data-type"
,
"1"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-yes.png"
)
$
(
".sound-btn"
).
attr
(
"src"
,
"images/sound-yes.png"
)
$
(
".gift-btn"
).
attr
(
"src"
,
"images/gift-btn.png"
)
$
(
".video-box video"
).
prop
(
"muted"
,
false
)
$
(
".video-box video"
).
prop
(
"muted"
,
false
)
})
})
...
@@ -2309,7 +2316,7 @@ $(function(){
...
@@ -2309,7 +2316,7 @@ $(function(){
$
(
".room-bg,.video-box"
).
css
(
"transition"
,
"0.35s all"
)
$
(
".room-bg,.video-box"
).
css
(
"transition"
,
"0.35s all"
)
$
(
".room-bg,.video-box"
).
css
(
"top"
,
"100vh"
)
$
(
".room-bg,.video-box"
).
css
(
"top"
,
"100vh"
)
setTimeout
(
function
()
{
setTimeout
(
function
()
{
window
.
location
.
href
=
"liveRoom.html?roomId="
+
topRoomId
+
""
window
.
location
.
href
=
"liveRoom.html?roomId="
+
topRoomId
+
"
&sound=1
"
},
350
);
},
350
);
return
return
}
}
...
@@ -2321,7 +2328,7 @@ $(function(){
...
@@ -2321,7 +2328,7 @@ $(function(){
$
(
".room-bg,.video-box"
).
css
(
"transition"
,
"0.35s all"
)
$
(
".room-bg,.video-box"
).
css
(
"transition"
,
"0.35s all"
)
$
(
".room-bg,.video-box"
).
css
(
"top"
,
"-100vh"
)
$
(
".room-bg,.video-box"
).
css
(
"top"
,
"-100vh"
)
setTimeout
(
function
()
{
setTimeout
(
function
()
{
window
.
location
.
href
=
"liveRoom.html?roomId="
+
BottomRoomId
+
""
window
.
location
.
href
=
"liveRoom.html?roomId="
+
BottomRoomId
+
"
&sound=1
"
},
350
);
},
350
);
return
return
}
}
...
...
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