Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
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
cb69eac1
authored
Jul 09, 2021
by
dabai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
ce911fb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
app/tip.html
js/fsize.js
app/tip.html
0 → 100644
View file @
cb69eac1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
>
<meta
content=
"telephone=no"
name=
"format-detection"
>
<meta
name=
"wap-font-scale"
content=
"no"
>
<title>
tip
</title>
<link
rel=
"stylesheet"
href=
"https://app.ixiulive.com/static/css/reset2.css"
/>
<link
rel=
"stylesheet"
href=
"https://app.ixiulive.com/static/css/common.css"
/>
<script
type=
"text/javascript"
src=
"https://app.ixiulive.com/static/js/fsize.js"
></script>
<style
type=
"text/css"
>
body
,
html
{
line-height
:
1.2
;
font-family
:
-apple-system
,
BlinkMacSystemFont
,
Helvetica
Neue
,
PingFang
SC
,
Microsoft
YaHei
,
Source
Han
Sans
SC
,
Noto
Sans
CJK
SC
,
WenQuanYi
Micro
Hei
,
sans-serif
;
background-color
:
#11121A
;
}
.main
{
width
:
10rem
;
position
:
relative
;
font-size
:
0
;
margin
:
0
auto
;
overflow
:
hidden
;
background-color
:
#11121A
;
height
:
100%
;
}
.main
p
{
font-size
:
0.453rem
;
color
:
#FFF
;
width
:
9rem
;
position
:
absolute
;
top
:
50%
;
left
:
.5rem
;
transform
:
translate
(
0
,
-50%
);
-webkit-transform
:
translate
(
0
,
-50%
);
-moz-transform
:
translate
(
0
,
-50%
);
-ms-transform
:
translate
(
0
,
-50%
);
text-align
:
center
;
}
</style>
</head>
<body>
<div
class=
"main"
>
<p></p>
</div>
<script
type=
"text/javascript"
src=
"https://app.ixiulive.com/static/js/jquery-3.1.1.min.js"
></script>
<script
type=
"text/javascript"
>
if
(
url_get_params
().
lang
==
2
||
url_get_params
().
lang
==
0
){
$
(
'.main p'
).
html
(
'由於您當前版本過低,剛錯過了用戶的禮物,請升級到最新版本。'
)
}
else
{
$
(
'.main p'
).
html
(
'You just missed gifts from users because of low version, please update the application to the latest version.'
)
}
function
url_get_params
()
{
var
url
=
location
.
href
;
var
theRequest
=
new
Object
();
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
var
str
=
url
.
substr
(
url
.
indexOf
(
"?"
)
+
1
);
strs
=
str
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
strs
.
length
;
i
++
)
{
theRequest
[
strs
[
i
].
split
(
"="
)[
0
]]
=
unescape
(
strs
[
i
].
split
(
"="
)[
1
]);
}
}
return
theRequest
;
}
</script>
</body>
</html>
\ No newline at end of file
js/fsize.js
View file @
cb69eac1
!
function
(
e
,
t
){
function
i
(){
var
t
=
n
.
getBoundingClientRect
().
width
;
t
/
m
>
540
&&
(
t
=
540
*
m
);
var
i
=
t
/
10
;
n
.
style
.
fontSize
=
i
+
"px"
,
d
.
rem
=
e
.
rem
=
i
}
var
a
,
r
=
e
.
document
,
n
=
r
.
documentElement
,
o
=
r
.
querySelector
(
'meta[name="viewport"]'
),
l
=
r
.
querySelector
(
'meta[name="flexible"]'
),
m
=
0
,
s
=
0
,
d
=
t
.
flexible
||
(
t
.
flexible
=
{});
if
(
o
){
var
p
=
o
.
getAttribute
(
"content"
).
match
(
/initial
\-
scale=
([\d\.]
+
)
/
);
p
&&
(
s
=
parseFloat
(
p
[
1
]),
m
=
parseInt
(
1
/
s
))}
else
if
(
l
){
var
c
=
l
.
getAttribute
(
"content"
);
if
(
c
){
var
u
=
c
.
match
(
/initial
\-
dpr=
([\d\.]
+
)
/
),
f
=
c
.
match
(
/maximum
\-
dpr=
([\d\.]
+
)
/
);
u
&&
(
m
=
parseFloat
(
u
[
1
]),
s
=
parseFloat
((
1
/
m
).
toFixed
(
2
))),
f
&&
(
m
=
parseFloat
(
f
[
1
]),
s
=
parseFloat
((
1
/
m
).
toFixed
(
2
)))}}
if
(
!
m
&&!
s
){
var
v
=
(
e
.
navigator
.
appVersion
.
match
(
/android/gi
),
e
.
navigator
.
appVersion
.
match
(
/iphone/gi
)),
h
=
e
.
devicePixelRatio
;
m
=
v
?
h
>=
3
&&
(
!
m
||
m
>=
3
)?
3
:
h
>=
2
&&
(
!
m
||
m
>=
2
)?
2
:
1
:
1
,
s
=
1
/
m
}
if
(
n
.
setAttribute
(
"data-dpr"
,
m
),
!
o
)
if
(
o
=
r
.
createElement
(
"meta"
),
o
.
setAttribute
(
"name"
,
"viewport"
),
o
.
setAttribute
(
"content"
,
"initial-scale="
+
s
+
", maximum-scale="
+
s
+
", minimum-scale="
+
s
+
", user-scalable=no"
),
n
.
firstElementChild
)
n
.
firstElementChild
.
appendChild
(
o
);
else
{
var
x
=
r
.
createElement
(
"div"
);
x
.
appendChild
(
o
),
r
.
write
(
x
.
innerHTML
)}
e
.
addEventListener
(
"resize"
,
function
(){
clearTimeout
(
a
),
a
=
setTimeout
(
i
,
300
)},
!
1
),
e
.
addEventListener
(
"pageshow"
,
function
(
e
){
e
.
persisted
&&
(
clearTimeout
(
a
),
a
=
setTimeout
(
i
,
300
))},
!
1
),
"complete"
===
r
.
readyState
?
r
.
body
.
style
.
fontSize
=
12
*
m
+
"px"
:
r
.
addEventListener
(
"DOMContentLoaded"
,
function
(
e
){
r
.
body
.
style
.
fontSize
=
12
*
m
+
"px"
},
!
1
),
i
(),
d
.
dpr
=
e
.
dpr
=
m
,
d
.
refreshRem
=
i
,
d
.
rem2px
=
function
(
e
){
var
t
=
parseFloat
(
e
)
*
this
.
rem
;
return
"string"
==
typeof
e
&&
e
.
match
(
/rem$/
)
&&
(
t
+=
"px"
),
t
},
d
.
px2rem
=
function
(
e
){
var
t
=
parseFloat
(
e
)
/
this
.
rem
;
return
"string"
==
typeof
e
&&
e
.
match
(
/px$/
)
&&
(
t
+=
"rem"
),
t
}}(
window
,
window
.
lib
||
(
window
.
lib
=
{}));
\ No newline at end of file
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