Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qsl_web
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
邓丽
qsl_web
Commits
ed2f65a2
Commit
ed2f65a2
authored
Sep 23, 2016
by
邓丽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixPublic.js
parent
baee7005
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
72 deletions
+2
-72
dist/css/index.css
+1
-0
dist/js/public.js
+0
-36
src/js/public.js
+0
-36
src/less/index.less
+1
-0
No files found.
dist/css/index.css
View file @
ed2f65a2
...
...
@@ -1097,6 +1097,7 @@ article.case section:after {
.caseTitle
nav
ul
li
a
{
color
:
#d0d3d7
;
font-size
:
16px
;
display
:
inline-block
;
}
.caseTitle
nav
ul
li
.active
a
{
color
:
#34495e
;
...
...
dist/js/public.js
View file @
ed2f65a2
/*header选中样式切换*/
function
GetRequest
()
{
var
url
=
location
.
search
;
//获取url中"?"符后的字串
var
theRequest
=
new
Object
();
var
footerLis
=
$
(
"footer ul li"
);
var
headerLis
=
$
(
"header ul li"
);
var
str
=
url
.
substr
(
1
);
var
m
=
str
.
substr
(
str
.
length
-
1
);
if
(
m
==
"1"
){
headerLis
.
eq
(
1
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
else
if
(
m
==
"2"
){
headerLis
.
eq
(
2
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
else
if
(
m
==
"3"
){
headerLis
.
eq
(
3
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
else
if
(
m
==
"a"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
0
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
if
(
m
==
"b"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
1
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
if
(
m
==
"c"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
2
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
if
(
m
==
"d"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
3
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
{
headerLis
.
eq
(
0
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
}
/*模块遮罩伪类效果*/
function
maskHover
(
obj
){
var
oDiv
=
$
(
obj
);
...
...
@@ -64,7 +29,6 @@ function minHeight(obj){
/*页面刷新执行函数*/
window
.
onload
=
function
(){
minHeight
(
"article"
);
GetRequest
();
maskHover
(
".lists li a"
);
caseSelected
(
".caseTitle nav ul li"
);
}
...
...
src/js/public.js
View file @
ed2f65a2
/*header选中样式切换*/
function
GetRequest
()
{
var
url
=
location
.
search
;
//获取url中"?"符后的字串
var
theRequest
=
new
Object
();
var
footerLis
=
$
(
"footer ul li"
);
var
headerLis
=
$
(
"header ul li"
);
var
str
=
url
.
substr
(
1
);
var
m
=
str
.
substr
(
str
.
length
-
1
);
if
(
m
==
"1"
){
headerLis
.
eq
(
1
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
else
if
(
m
==
"2"
){
headerLis
.
eq
(
2
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
else
if
(
m
==
"3"
){
headerLis
.
eq
(
3
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
else
if
(
m
==
"a"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
0
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
if
(
m
==
"b"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
1
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
if
(
m
==
"c"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
2
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
if
(
m
==
"d"
){
headerLis
.
removeClass
(
"active"
);
footerLis
.
eq
(
3
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
}
else
{
headerLis
.
eq
(
0
).
addClass
(
"active"
).
siblings
(
"li"
).
removeClass
(
"active"
);
footerLis
.
removeClass
(
"active"
);
}
}
/*模块遮罩伪类效果*/
function
maskHover
(
obj
){
var
oDiv
=
$
(
obj
);
...
...
@@ -64,7 +29,6 @@ function minHeight(obj){
/*页面刷新执行函数*/
window
.
onload
=
function
(){
minHeight
(
"article"
);
GetRequest
();
maskHover
(
".lists li a"
);
caseSelected
(
".caseTitle nav ul li"
);
}
...
...
src/less/index.less
View file @
ed2f65a2
...
...
@@ -426,6 +426,7 @@ article.case {
a{
color: #d0d3d7;
font-size: 16px;
display: inline-block;
}
&.active{
a{
...
...
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