From fce2816f6c18f2df13737dfe0c867c9a4874a62d Mon Sep 17 00:00:00 2001 From: xiaoz Date: Sun, 20 Dec 2020 15:49:06 +0800 Subject: [PATCH] fix bug --- templates/default/index.php | 2 +- templates/default/static/embed.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/default/index.php b/templates/default/index.php index 80b2d48..81aa67c 100644 --- a/templates/default/index.php +++ b/templates/default/index.php @@ -100,7 +100,7 @@ $property = ''; } ?> -
+
diff --git a/templates/default/static/embed.js b/templates/default/static/embed.js index 5cd026d..c6b46f2 100644 --- a/templates/default/static/embed.js +++ b/templates/default/static/embed.js @@ -3,9 +3,9 @@ function gotop(){ } $(".search").blur(function(data,status){ var keywords = $(".search").val(); - console.log(keywords); + if( keywords == ''){ - $(".mdui-typo-title").removeClass("mdui-hidden"); + $(".cat-title").removeClass("mdui-hidden"); } }); @@ -26,16 +26,16 @@ var h = holmes({ }, onFound(el) { // console.log('found', el); - $(".mdui-typo-title").addClass("mdui-hidden"); + $(".cat-title").addClass("mdui-hidden"); }, onInput(el) { - $(".mdui-typo-title").addClass("mdui-hidden"); + $(".cat-title").addClass("mdui-hidden"); }, onVisible(el) { - $(".mdui-typo-title").removeClass("mdui-hidden"); + $(".cat-title").removeClass("mdui-hidden"); }, onEmpty(el) { - $(".mdui-typo-title").removeClass("mdui-hidden"); + $(".cat-title").removeClass("mdui-hidden"); } }); //鼠标移动到链接修改为原始URL