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
1f466c71
Commit
1f466c71
authored
Nov 16, 2016
by
邓丽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cccc
parent
fc5758dd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
10 deletions
+33
-10
dist/assets/js/slickPort.js
+17
-1
dist/css/style.css
+5
-2
dist/html/index.html
+2
-1
dist/html/portfolioDetail.html
+1
-1
src/less/style.less
+5
-3
src/pages/index.ejs
+2
-1
src/pages/portfolioDetail.ejs
+1
-1
No files found.
dist/assets/js/slickPort.js
View file @
1f466c71
...
...
@@ -1487,17 +1487,34 @@
var
mH
=
parseInt
(
windowW
*
bi
);
var
Top
=
parseInt
((
windowH
-
realHeight
)
/
2
);
//如果真实的宽度大于浏览器的宽度就按照100%显示
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
})
}
else
{
image
.
attr
(
'style'
,
'margin-top:'
+
Top
+
'max-width:'
+
windowW
+
'px;height:auto'
);
$
(
'.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
})
}
else
{
image
.
attr
(
'style'
,
'margin-top:'
+
Top
+
'px;width:auto; height:auto;'
);
$
(
'.slick-prev,.slick-next'
).
css
({
'margin-top'
:
Top
,
'height'
:
realHeight
})
}
}
};
...
...
@@ -1575,7 +1592,6 @@
Slick
.
prototype
.
next
=
Slick
.
prototype
.
slickNext
=
function
()
{
var
_
=
this
;
_
.
changeSlide
({
data
:
{
message
:
'next'
...
...
dist/css/style.css
View file @
1f466c71
...
...
@@ -490,8 +490,8 @@ body {
.slick-next
{
display
:
block
;
width
:
200px
;
top
:
15
0px
;
height
:
800px
;
top
:
0px
;
height
:
100%
;
z-index
:
8
;
}
.slick-prev
:before
,
...
...
@@ -875,6 +875,7 @@ a.cd-read-more:hover {
display
:
block
;
position
:
fixed
;
right
:
0px
;
z-index
:
30
;
}
.returnCon
>
span
.prevBtn
.icon-closeIco2
,
.returnCon
>
span
.prevBtn
.icon-closeIco3
{
...
...
@@ -1481,6 +1482,7 @@ a.cd-read-more:hover {
display
:
block
;
position
:
fixed
;
right
:
0px
;
z-index
:
30
;
}
.returnCon
>
span
.prevBtn
.icon-closeIco2
,
.returnCon
>
span
.prevBtn
.icon-closeIco
{
...
...
@@ -1974,6 +1976,7 @@ a.cd-read-more:hover {
.returnCon
>
span
.prevBtn
{
display
:
block
;
position
:
fixed
;
z-index
:
30
;
right
:
0px
;
}
.returnCon
>
span
.prevBtn
.icon-closeIco3
,
...
...
dist/html/index.html
View file @
1f466c71
...
...
@@ -58,7 +58,7 @@
<div
class=
"am-container"
>
<div
class=
"am-slider am-slider-default mobileTop"
>
<div>
<div
class=
"bgImg"
></div
>
<!-- <div class="bgImg"></div>--
>
<div
class=
"title"
>
<h2>
ZHONG WEIXING
</h2>
<P><a>
中文
</a>
|
<a>
English
</a></P>
...
...
@@ -130,6 +130,7 @@ var _h = parseInt($(window).height());//获取浏览器的宽度
var
pTop
=
parseInt
((
_h
-
titleP
+
50
)
/
2
);
$
(
".title h2"
).
css
(
"top"
,
hTop
);
$
(
".title p"
).
css
(
"top"
,
pTop
);
$
(
".title"
).
css
(
"height"
,
_h
);
$
(
"#portfolioDel div"
).
css
({
"height"
:
_h
})
...
...
dist/html/portfolioDetail.html
View file @
1f466c71
...
...
@@ -50,7 +50,7 @@
s
.
parentNode
.
insertBefore
(
hm
,
s
);
})();
</script>
<script
src=
"../assets/js/slickPort.
min.
js"
></script>
<script
src=
"../assets/js/slickPort.js"
></script>
</head>
<body>
<!--返回上一页-->
...
...
src/less/style.less
View file @
1f466c71
...
...
@@ -133,8 +133,8 @@ body{
.slick-prev, .slick-next{
display: block;
width: 200px;
top:
15
0px;
height:
800px
;
top:0px;
height:
100%
;
z-index: 8;
}
.slick-prev:before, .slick-next:before{
...
...
@@ -520,7 +520,7 @@ a.cd-read-more:hover{text-decoration:none; background-color: #424242; }
display: block;
position: fixed;
right: 0px;
z-index:30;
.icon-closeIco2,
.icon-closeIco3{
display: none;
...
...
@@ -1144,6 +1144,7 @@ a.cd-read-more:hover{text-decoration:none; background-color: #424242; }
display: block;
position: fixed;
right: 0px;
z-index:30;
.icon-closeIco2,
.icon-closeIco{
display: none;
...
...
@@ -1654,6 +1655,7 @@ a.cd-read-more:hover{text-decoration:none; background-color: #424242; }
.prevBtn{
display: block;
position: fixed;
z-index:30;
right: 0px;
.icon-closeIco3,
.icon-closeIco{
...
...
src/pages/index.ejs
View file @
1f466c71
...
...
@@ -16,7 +16,7 @@
<div
class=
"am-container"
>
<div
class=
"am-slider am-slider-default mobileTop"
>
<div>
<div
class=
"bgImg"
></div
>
<!-- <div class="bgImg"></div>--
>
<div
class=
"title"
>
<h2>
ZHONG WEIXING
</h2>
<P><a>
中文
</a>
|
<a>
English
</a></P>
...
...
@@ -82,6 +82,7 @@ var _h = parseInt($(window).height());//获取浏览器的宽度
var
pTop
=
parseInt
((
_h
-
titleP
+
50
)
/
2
);
$
(
".title h2"
).
css
(
"top"
,
hTop
);
$
(
".title p"
).
css
(
"top"
,
pTop
);
$
(
".title"
).
css
(
"height"
,
_h
);
$
(
"#portfolioDel div"
).
css
({
"height"
:
_h
})
...
...
src/pages/portfolioDetail.ejs
View file @
1f466c71
...
...
@@ -8,7 +8,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title></title>
<
%
include
./
components
/
publicHead
.
html
%
>
<script
src=
"../assets/js/slickPort.
min.
js"
></script>
<script
src=
"../assets/js/slickPort.js"
></script>
</head>
<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