Browse Source

fix bug

pull/4/merge 0.9.5
xiaoz 4 years ago
parent
commit
fce2816f6c
  1. 2
      templates/default/index.php
  2. 12
      templates/default/static/embed.js

2
templates/default/index.php

@ -100,7 +100,7 @@ @@ -100,7 +100,7 @@
$property = '';
}
?>
<div id = "category-<?php echo $category['id']; ?>" class = "mdui-col-xs-12 mdui-typo-title" style = "margin-top:1.5em;">
<div id = "category-<?php echo $category['id']; ?>" class = "mdui-col-xs-12 mdui-typo-title cat-title" style = "margin-top:1.5em;">
<?php echo $category['name']; ?> <?php echo $property; ?>
<span class = "mdui-typo-caption"><?php echo $category['description']; ?></span>
</div>

12
templates/default/static/embed.js

@ -3,9 +3,9 @@ function gotop(){ @@ -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({ @@ -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

Loading…
Cancel
Save