Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
ZhongWeiXin
Overview
Overview
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓丽
ZhongWeiXin
Commits
6944a1f4
Commit
6944a1f4
authored
Nov 16, 2016
by
murphywuwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
1f466c71
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
29 deletions
+47
-29
dist/assets/js/slickPort.js
+16
-16
dist/css/style.css
+30
-0
dist/html/portfolioDetail.html
+0
-9
dist/js/public.js
+1
-1
src/pages/portfolioDetail.ejs
+0
-3
No files found.
dist/assets/js/slickPort.js
View file @
6944a1f4
...
...
@@ -1492,29 +1492,29 @@
if
(
realWidth
>=
windowW
&&
realWidth
>=
realHeight
)
{
if
(
mH
>
windowH
){
image
.
attr
(
'style'
,
'max-height:'
+
windowH
+
'px;width:auto'
);
$
(
'.slick-prev,.slick-next'
).
css
({
'margin-top'
:
Top
,
'height'
:
windowH
})
//
$('.slick-prev,.slick-next').css({
//
'margin-top':Top,
//
'height':windowH
//
})
}
else
{
image
.
attr
(
'style'
,
'margin-top:'
+
Top
+
'max-width:'
+
windowW
+
'px;height:auto'
);
$
(
'.slick-prev,.slick-next'
).
css
({
'margin-top'
:
Top
,
'height'
:
realHeight
})
//
$('.slick-prev,.slick-next').css({
//
'margin-top':Top,
//
'height':realHeight
//
})
}
}
else
if
(
realHeight
>=
windowH
&&
realWidth
<
realHeight
){
//如果小于浏览器的宽度按照原尺寸显示
image
.
attr
(
'style'
,
'max-height:'
+
windowH
+
'px;width:auto;'
);
$
(
'.slick-prev,.slick-next'
).
css
({
'margin-top'
:
Top
,
'height'
:
windowH
})
//
$('.slick-prev,.slick-next').css({
//
'margin-top':Top,
//
'height':windowH
//
})
}
else
{
image
.
attr
(
'style'
,
'margin-top:'
+
Top
+
'px;width:auto; height:auto;'
);
$
(
'.slick-prev,.slick-next'
).
css
({
'margin-top'
:
Top
,
'height'
:
realHeight
})
//
$('.slick-prev,.slick-next').css({
//
'margin-top':Top,
//
'height':realHeight
//
})
}
}
};
...
...
dist/css/style.css
View file @
6944a1f4
...
...
@@ -67,6 +67,36 @@ To change `display` (e.g. `display: inline-block;`), we suggest using a common C
height
:
26px
;
}
html
,
body
{
height
:
100%
;
}
.am-container
{
height
:
100%
;
}
.am-slider
{
height
:
100%
;
}
.slider
{
position
:
relative
;
height
:
100%
;
}
.slick-arrow
{
position
:
absolute
;
transform
:
translateY
(
-50%
)
!important
;
top
:
50%
!important
;
margin-top
:
0
!important
;
height
:
100%
!important
;
}
.slick-list
{
height
:
100%
!important
;
}
.slick-track
{
height
:
100%
!important
;
}
.slick-slide
{
height
:
100%
!important
;
max-height
:
100%
!important
;
}
*,
*
:after
,
*
:before
{
...
...
dist/html/portfolioDetail.html
View file @
6944a1f4
...
...
@@ -96,15 +96,6 @@
</ul>
</div>
</div>
<!--回到顶部-->
<div
data-am-widget=
"gotop"
class=
"am-gotop am-gotop-fixed"
>
<a
href=
"#top"
title=
"回到顶部"
>
<span
class=
"am-gotop-title"
>
回到顶部
</span>
<i
class=
"am-gotop-icon am-icon-chevron-up"
></i>
</a>
</div>
<script>
/*轮播图配置*/
$
(
'.lazy'
).
slick
({
...
...
dist/js/public.js
View file @
6944a1f4
...
...
@@ -59,7 +59,7 @@ $(function(){
/*图片懒加载*/
$
(
"img.lazy"
).
lazyload
({
placeholder
:
".
.
/images/transparent.gif"
,
placeholder
:
"./images/transparent.gif"
,
threshold
:
100
,
effect
:
"fadeIn"
,
event
:
'scroll'
,
...
...
src/pages/portfolioDetail.ejs
View file @
6944a1f4
...
...
@@ -54,9 +54,6 @@
</ul>
</div>
</div>
<
%
include
./
components
/
goTop
.
html
%
>
<script>
/*轮播图配置*/
$
(
'.lazy'
).
slick
({
...
...
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