Commit 936ebcd8 by byd

首页底部样式修改

parent efbc8b1e
......@@ -35,19 +35,56 @@
window.onload = lazyload;
window.addEventListener("scroll", debounce(lazyload, 600), false);
require([
'jquery'
], function ($) {
//footer
$("h4").click(function () {
var dis = $(this).siblings("ul").css("display");
if (dis == "none"){
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");
$(this).children("span").html('^')
}else{
$(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('^')
}else{
$(this).siblings("ul").css("display","none");
$(this).children("span").html('>')
}
});
$(".page-header .actions.search-dropdown").click(function () {
$("#search_mini_form_input").toggle();
......
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment