Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
936ebcd8
Commit
936ebcd8
authored
Jan 16, 2023
by
byd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页底部样式修改
parent
efbc8b1e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
app/design/frontend/Joshine/breeze/Magento_Theme/templates/html/footer.phtml
+37
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+4
-2
No files found.
app/design/frontend/Joshine/breeze/Magento_Theme/templates/html/footer.phtml
View file @
936ebcd8
...
...
@@ -35,11 +35,41 @@
window
.
onload
=
lazyload
;
window
.
addEventListener
(
"scroll"
,
debounce
(
lazyload
,
600
),
false
);
require
([
'jquery'
],
function
(
$
)
{
//footer
$
(
"h4"
).
click
(
function
()
{
console
.
log
(
22222222222222222222222222
)
function
browserRedirect
()
{
var
sUserAgent
=
navigator
.
userAgent
.
toLowerCase
();
var
bIsIpad
=
sUserAgent
.
match
(
/ipad/i
)
==
"ipad"
;
var
bIsIphoneOs
=
sUserAgent
.
match
(
/iphone os/i
)
==
"iphone os"
;
var
bIsMidp
=
sUserAgent
.
match
(
/midp/i
)
==
"midp"
;
var
bIsUc7
=
sUserAgent
.
match
(
/rv:1.2.3.4/i
)
==
"rv:1.2.3.4"
;
var
bIsUc
=
sUserAgent
.
match
(
/ucweb/i
)
==
"ucweb"
;
var
bIsAndroid
=
sUserAgent
.
match
(
/android/i
)
==
"android"
;
var
bIsCE
=
sUserAgent
.
match
(
/windows ce/i
)
==
"windows ce"
;
var
bIsWM
=
sUserAgent
.
match
(
/windows mobile/i
)
==
"windows mobile"
;
// document.writeln("您的浏览设备为:");
if
(
bIsIpad
||
bIsIphoneOs
||
bIsMidp
||
bIsUc7
||
bIsUc
||
bIsAndroid
||
bIsCE
||
bIsWM
)
{
// alert("手机浏览!");
return
1
;
}
else
{
// alert("PC浏览!");
return
2
;
}
}
// browserRedirect();
if
(
browserRedirect
()
==
1
){
var
dis
=
$
(
this
).
siblings
(
"ul"
).
css
(
"display"
);
if
(
dis
==
"none"
){
$
(
this
).
siblings
(
"ul"
).
css
(
"display"
,
"block"
);
...
...
@@ -48,6 +78,13 @@
$
(
this
).
siblings
(
"ul"
).
css
(
"display"
,
"none"
);
$
(
this
).
children
(
"span"
).
html
(
'>'
)
}
}
else
if
(
browserRedirect
()
==
2
){
var
dis
=
$
(
this
).
siblings
(
"ul"
).
css
(
"display"
);
$
(
this
).
siblings
(
"ul"
).
css
(
"display"
,
"block"
);
$
(
this
).
children
(
"span"
).
html
(
'^'
)
}
});
$
(
".page-header .actions.search-dropdown"
).
click
(
function
()
{
$
(
"#search_mini_form_input"
).
toggle
();
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
936ebcd8
...
...
@@ -241,7 +241,7 @@ footer a{
font-size: smaller;
}
.footer_link h4 span{
display:
none
;
display:
block
;
}
footer .footer_link{
...
...
@@ -496,7 +496,9 @@ ul {
font-size: smaller;
}
span.copyright_right{
margin-left: 25%;
margin-left: 40%;
display: flex;
flex-direction: row;
}
}
...
...
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