Commit 123ef8b9 by dhn

底部

parent 850f50aa
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
require(['jquery'],function ($){ require(['jquery'],function ($){
var flag = window.matchMedia("(pointer:coarse)").matches; var flag = window.matchMedia("(pointer:coarse)").matches;
//footer //footer
$("h4").click(function () { if (flag){
var dis = $(this).siblings("ul").css("display"); $("h4").click(function () {
if (flag == false){ var dis = $(this).siblings("ul").css("display");
if (dis == "none"){ if (dis == "none"){
$(this).siblings("ul").css("display","block"); $(this).siblings("ul").css("display","block");
$(this).children("span").html('^') $(this).children("span").html('^')
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
$(this).siblings("ul").css("display","none"); $(this).siblings("ul").css("display","none");
$(this).children("span").html('>') $(this).children("span").html('>')
} }
} });
}); }
//top search //top search
$(".page-header .actions.search-dropdown").click(function () { $(".page-header .actions.search-dropdown").click(function () {
$("#search_mini_form_input").toggle(); $("#search_mini_form_input").toggle();
......
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