Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
guodong
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
3c2d2177
authored
Mar 09, 2021
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
203cf5e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
31 deletions
gzh/demo.html
gzh/demo.html
View file @
3c2d2177
...
...
@@ -3,42 +3,49 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
输出
</title>
<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>
果冻直播登录
</title>
<link
rel=
"stylesheet"
href=
"css/base.css"
>
<link
rel=
"stylesheet"
href=
"css/layer.css"
>
<link
rel=
"stylesheet"
href=
"css/index.css?v=2019041702"
>
<script
src=
"lib/fsize.js"
></script>
<style>
ul
.lanren
{
margin
:
100px
auto
;
}
.scale_panel
{
color
:
#999
;
position
:
absolute
;
line-height
:
18px
;
left
:
60px
;
left
:
0.5rem
;
top
:
-0px
;
}
.scale_panel
>
span
:first-child
{
position
:
absolute
;
left
:
-5rem
;
font-size
:
2rem
;
left
:
-
0.
5rem
;
font-size
:
0.
2rem
;
}
.scale_panel
>
span
:nth-child
(
2
)
{
position
:
absolute
;
right
:
-5rem
;
font-size
:
2rem
;
right
:
-
0.
5rem
;
font-size
:
0.
2rem
;
}
.scale
>
span
{
background-color
:
red
;
width
:
3
rem
;
height
:
3
rem
;
width
:
0.2
rem
;
height
:
0.2
rem
;
position
:
absolute
;
left
:
-2px
;
top
:
-15px
;
top
:
-0.05rem
;
left
:
0
;
cursor
:
pointer
;
border-radius
:
50%
;
font-size
:
2rem
;
font-size
:
0.
2rem
;
}
.scale
{
...
...
@@ -46,10 +53,10 @@
background-position
:
0
100%
;
background-image
:
linear-gradient
(
to
right
,
#08D7F2
0%
,
#2BF06A
50%
,
#2BF06A
50%
,
#FC6076
100%
);
border-left
:
1px
#83BBD9
solid
;
width
:
43
rem
;
height
:
1rem
;
width
:
9
rem
;
height
:
0.
1rem
;
position
:
relative
;
border-radius
:
2rem
;
border-radius
:
0.
2rem
;
}
.scale
>
div
{
...
...
@@ -58,36 +65,56 @@
/*进度条颜色*/
width
:
0px
;
position
:
absolute
;
height
:
1rem
;
height
:
0.
1rem
;
width
:
0
;
left
:
0
;
bottom
:
0
;
border-radius
:
2rem
;
border-radius
:
0.2rem
;
}
.lanren
{
margin-top
:
0.3rem
;
}
.lanren
>
li
{
margin-left
:
3.5rem
;
position
:
relative
;
list-style
:
none
;
font-size
:
3rem
;
font-size
:
0.
3rem
;
}
#title
{
position
:
absolute
;
top
:
-6rem
;
left
:
23rem
;
top
:
-0.6rem
;
left
:
2.3rem
;
}
.nimo
{
overflow
:
hidden
;
position
:
relative
;
width
:
9rem
;
margin
:
0
auto
;
height
:
4.5rem
;
}
.nimo
.nimo-bg
{
width
:
9rem
;
}
.nimo
.nimo-cover
{
width
:
1.65rem
;
position
:
absolute
;
left
:
0
;
}
</style>
</head>
<body>
<!-- 可拖拽进度条 -->
<div
class=
"nimo"
><img
src=
""
alt=
""
></div>
<div
class=
"nimo"
>
<img
class=
"nimo-bg"
src=
""
alt=
""
>
<img
class=
"nimo-cover"
src=
""
alt=
""
>
</div>
<ul
class=
"lanren"
>
<li><span
id=
"title"
>
0
</span>
<li>
<!-- <span id="title">0</span> -->
<div
class=
"scale_panel"
>
<span
class=
"f-left"
>
开始
</span>
<span
class=
"f-right"
>
结束
</span>
<div
class=
"scale"
id=
"bar"
>
<div></div>
<span
id=
"btn"
></span>
...
...
@@ -97,6 +124,8 @@
</ul>
<script
src=
"lib/jquery-3.1.1.min.js"
></script>
<script>
var
myPos
var
myId
$
.
ajax
({
url
:
'http://test.liveauth.ishuaji.cn/captcha/slide/webget.html'
,
data
:{
...
...
@@ -106,7 +135,11 @@
success
:
function
(
msg
){
var
data
=
JSON
.
parse
(
msg
)
console
.
log
(
data
)
$
(
".nimo img"
).
attr
(
"src"
,
""
+
data
.
background
+
""
)
$
(
".nimo .nimo-bg"
).
attr
(
"src"
,
""
+
data
.
background
+
""
)
$
(
".nimo .nimo-cover"
).
attr
(
"src"
,
""
+
data
.
cover
+
""
)
var
myTop
=
Math
.
floor
((
data
.
y
/
66.66
)
*
100
)
/
100
$
(
".nimo-cover"
).
css
(
"top"
,
myTop
+
"rem"
)
myId
=
data
.
id
}
})
// 进度条代码
...
...
@@ -136,10 +169,29 @@
},
ondrag
:
function
(
pos
,
x
)
{
this
.
step
.
style
.
width
=
Math
.
max
(
0
,
x
)
+
'px'
;
this
.
title
.
innerHTML
=
pos
+
'%'
;
}
// this.title.innerHTML = pos + '%';
myPos
=
pos
$
(
".nimo-cover"
).
css
(
"left"
,
pos
+
"%"
)
},
}
new
scale
(
'btn'
,
'bar'
,
'title'
);
$
(
"#btn"
).
on
(
"touchend"
,
function
(){
console
.
log
(
myPos
)
$
.
ajax
({
url
:
'http://test.liveauth.ishuaji.cn/captcha/slide/check.html'
,
data
:{
data
:
myId
+
myPos
*
6
,
checktype
:
2
,
pkg
:
'gzh'
},
success
:
function
(
msg
){
var
data
=
JSON
.
parse
(
msg
);
console
.
log
(
data
)
alert
(
data
.
code
);
}
})
})
// });
</script>
</body>
...
...
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