Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
fsActive
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
44169f41
authored
9 months ago
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xg
parent
7ea32d8f
ceshi
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletions
activeFt/liveData/index2.html
activeFt/liveData/index2.html
View file @
44169f41
...
...
@@ -332,7 +332,19 @@
$
(
".day-box6 .day-title"
).
css
(
"font-size"
,
"0.35rem"
).
css
(
"top"
,
"0.42rem"
).
css
(
"left"
,
"0.2rem"
)
}
$
(
".tips-shadow"
).
css
(
"height"
,
$
(
document
).
height
()
+
'px'
)
try
{
let
obj
=
{
"cid"
:
34
,
"data"
:
{
"type"
:
2
,
"imgTxt"
:
$
(
"title"
).
text
(),
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
webAppCollaboration
(
obj2
);
}
catch
(
error
)
{
console
.
log
(
error
)
}
var
myTime
=
0
liveView
()
...
...
@@ -688,6 +700,24 @@
})
event
.
stopPropagation
();
})
function
webAppCollaboration
(
msg
)
{
let
sUserAgent
=
navigator
.
userAgent
.
toLowerCase
();
let
bIsIpad
=
sUserAgent
.
match
(
/ipad/i
)
==
"ipad"
;
let
bIsIphoneOs
=
sUserAgent
.
match
(
/iphone os/i
)
==
"iphone os"
;
let
bIsMidp
=
sUserAgent
.
match
(
/midp/i
)
==
"midp"
;
let
bIsUc7
=
sUserAgent
.
match
(
/rv:1.2.3.4/i
)
==
"rv:1.2.3.4"
;
let
bIsUc
=
sUserAgent
.
match
(
/ucweb/i
)
==
"ucweb"
;
let
bIsAndroid
=
sUserAgent
.
match
(
/android/i
)
==
"android"
;
let
bIsCE
=
sUserAgent
.
match
(
/windows ce/i
)
==
"windows ce"
;
let
bIsWM
=
sUserAgent
.
match
(
/windows mobile/i
)
==
"windows mobile"
;
if
(
!
(
bIsIpad
||
bIsIphoneOs
||
bIsMidp
||
bIsUc7
||
bIsUc
||
bIsAndroid
||
bIsCE
||
bIsWM
))
{
}
else
if
(
bIsAndroid
)
{
window
.
yazhai
.
appCollaboration
(
msg
);
}
else
if
(
bIsIphoneOs
||
bIsIpad
)
{
window
.
webkit
.
messageHandlers
.
appCollaboration
.
postMessage
(
msg
);
}
}
// 定义一个新cid=30(注意以上打开的所有网页都可以使用cid=14关闭网页来主动关闭)
// popupType 1全屏 2半屏 3浮动屏(默认居中)
// heightR 弹窗高度 单位vw(是指相对于视口的宽度;视口会被均分为100单位的vw,则1vw等于视口宽度的1%)
...
...
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