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
47f2bdcb2b6d1e430909f26a384d4cb57aba87c1
1 parent
3474af26
index.js
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
web-static/dist/yohobuy/0.0.1/index-debug.js
web-static/dist/yohobuy/0.0.1/index.js
web-static/dist/yohobuy/0.0.1/index-debug.js
View file @
47f2bdc
...
...
@@ -24,23 +24,11 @@ var $body = $('body');
require
(
"js/footer"
);
function
cookie
(
name
)
{
var
cookies
=
document
.
cookie
,
cookieVal
,
offset
;
if
(
document
.
cookie
&&
document
.
cookie
!==
''
)
{
offset
=
cookies
.
indexOf
(
name
+
'='
);
if
(
offset
>
-
1
)
{
offset
+=
name
.
length
+
1
;
cookieVal
=
decodeURIComponent
(
$
.
trim
(
cookies
.
substring
(
offset
,
cookies
.
indexOf
(
';'
,
offset
))));
}
}
var
re
=
new
RegExp
(
name
+
'=([^;$]*)'
,
'i'
),
matchPattern
=
'$1'
;
return
cookieVal
;
return
re
.
test
(
decodeURIComponent
(
document
.
cookie
))
?
RegExp
[
matchPattern
]
:
''
;
}
function
setCookie
(
name
,
value
,
options
)
{
...
...
@@ -1159,7 +1147,7 @@ function actionTipPic() {
}
}
});
logolink
=
$
(
'.first-nav-
list .cur
'
).
find
(
'a'
).
attr
(
'href'
);
logolink
=
$
(
'.first-nav-
item .cure'
).
find
(
'.name-cn
'
).
find
(
'a'
).
attr
(
'href'
);
$
(
'.main-link'
).
attr
(
'href'
,
logolink
);
}
...
...
web-static/dist/yohobuy/0.0.1/index.js
View file @
47f2bdc
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment