Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
8b35b3b4d1663ba592148cc1c5f3d21caec3ff4c
1 parent
c21999a7
index.js index.css
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
43 deletions
web-static/dist/yohobuy/0.0.1/index-debug.js
web-static/dist/yohobuy/0.0.1/index.css
web-static/dist/yohobuy/0.0.1/index.css.map
web-static/dist/yohobuy/0.0.1/index-debug.js
View file @
8b35b3b
...
...
@@ -3500,49 +3500,49 @@ var $ = require("jquery");
}(
$
));
});
define
(
"js/common/accordion"
,
[
"jquery"
],
function
(
require
,
exports
,
module
){
var
Slide
=
require
(
"js/common/yohoui/YH.slide"
);
var
$
=
require
(
"jquery"
);
var
$contain
=
$
(
'.slide-accordion'
);
var
$item
=
$contain
.
find
(
'li'
);
var
$width
=
$item
.
width
();
var
$spn
=
parseInt
(
$
(
'.home-page'
).
width
())
===
1150
?
(
120
+
5
)
:
(
102
+
5
);
var
slide
;
function
switchfun
(
to
)
{
$item
.
each
(
function
(
index
)
{
$
(
this
).
css
(
'zIndex'
,
index
);
if
(
index
<=
to
)
{
$
(
this
).
stop
().
animate
({
left
:
index
*
$spn
},
400
);
}
else
{
$
(
this
).
stop
().
animate
({
left
:
(
to
)
*
$spn
+
$width
+
$spn
*
(
index
-
to
-
1
)
},
400
);
}
});
}
switchfun
(
0
);
slide
=
new
Slide
({
length
:
5
,
loop
:
false
,
auto
:
false
,
timeout
:
2
,
index
:
0
});
slide
.
on
(
'change'
,
function
(
data
)
{
switchfun
(
data
.
to
);
});
$item
.
mouseover
(
function
()
{
slide
.
go
(
$
(
this
).
index
());
});
var
Slide
=
require
(
"js/common/yohoui/YH.slide"
);
var
$
=
require
(
"jquery"
);
var
$contain
=
$
(
'.slide-accordion'
);
var
$item
=
$contain
.
find
(
'li'
);
var
$width
=
$item
.
width
();
var
$spn
=
parseInt
(
$
(
'.home-page'
).
width
())
===
1150
?
(
120
+
5
)
:
(
102
+
5
);
var
slide
;
function
switchfun
(
to
)
{
$item
.
each
(
function
(
index
)
{
$
(
this
).
css
(
'zIndex'
,
index
);
if
(
index
<=
to
)
{
$
(
this
).
stop
().
animate
({
left
:
index
*
$spn
},
400
);
}
else
{
$
(
this
).
stop
().
animate
({
left
:
(
to
)
*
$spn
+
$width
+
$spn
*
(
index
-
to
-
1
)
},
400
);
}
});
}
switchfun
(
0
);
slide
=
new
Slide
({
length
:
5
,
loop
:
false
,
auto
:
false
,
timeout
:
2
,
index
:
0
});
slide
.
on
(
'change'
,
function
(
data
)
{
switchfun
(
data
.
to
);
});
$item
.
mouseover
(
function
()
{
slide
.
go
(
$
(
this
).
index
());
});
slide
.
init
();
});
define
(
"js/common/yohoui/YH.slide"
,
[],
function
(
require
,
exports
,
module
){
...
...
web-static/dist/yohobuy/0.0.1/index.css
View file @
8b35b3b
This diff could not be displayed because it is too large.
web-static/dist/yohobuy/0.0.1/index.css.map
View file @
8b35b3b
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment