Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
03f9212d
Commit
03f9212d
authored
Oct 14, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugs
parent
42169be8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
errorSlider.vue
src/components/common/errorSlider.vue
+8
-8
No files found.
src/components/common/errorSlider.vue
View file @
03f9212d
...
...
@@ -64,7 +64,7 @@
progress
.
style
.
width
=
'0px'
;
evenBox
.
style
.
left
=
'0px'
;
}
}
}
;
function
getOffset
(
box
,
direction
){
var
setDirection
=
(
direction
==
'top'
)
?
'offsetTop'
:
'offsetLeft'
;
var
offset
=
box
[
setDirection
];
...
...
@@ -73,16 +73,16 @@
offset
+=
parentBox
[
setDirection
];
parentBox
=
parentBox
.
offsetParent
;
}
//
parentBox = null;
parentBox
=
null
;
return
parseInt
(
offset
);
}
}
;
evenBox
.
addEventListener
(
boxEven
[
'0'
],
function
(
e
)
{
e
=
(
boxEven
[
'0'
]
==
'touchstart'
)
?
e
.
touches
[
0
]
:
e
||
window
.
event
;
goX
=
e
.
clientX
;
offsetLeft
=
getOffset
(
box
,
'left'
);
deviation
=
this
.
clientWidth
;
evenWidth
=
box
.
clientWidth
-
deviation
;
endX
;
goX
=
e
.
clientX
,
offsetLeft
=
getOffset
(
box
,
'left'
),
deviation
=
this
.
clientWidth
,
evenWidth
=
box
.
clientWidth
-
deviation
,
endX
;
document
.
addEventListener
(
boxEven
[
'1'
],
moveFn
,
false
);
document
.
addEventListener
(
boxEven
[
'2'
],
removeFn
,
false
);
},
false
);
...
...
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