使用PHP开发的简约导航/书签管理系统。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
942 B

function gotop(){
$("html,body").animate({scrollTop: '0px'}, 600);
4 years ago
}
$(".search").blur(function(data,status){
var keywords = $(".search").val();
4 years ago
if( keywords == ''){
4 years ago
$(".cat-title").removeClass("mdui-hidden");
}
});
var h = holmes({
input: '.search',
find: '.link-space',
placeholder: '<h3>未搜索到匹配结果!</h3>',
mark: false,
hiddenAttr: true,
// 找到了就添加visible类,没找到添加mdui-hidden
class: {
visible: 'visible',
hidden: 'mdui-hidden'
},
onHidden(el) {
// console.log('hidden', el);
},
onFound(el) {
// console.log('found', el);
4 years ago
$(".cat-title").addClass("mdui-hidden");
},
onInput(el) {
4 years ago
$(".cat-title").addClass("mdui-hidden");
},
onVisible(el) {
4 years ago
$(".cat-title").removeClass("mdui-hidden");
},
onEmpty(el) {
4 years ago
$(".cat-title").removeClass("mdui-hidden");
}
});
4 years ago
//鼠标移动到链接修改为原始URL