修改皮肤bolo-fantastic

This commit is contained in:
LingZhaoHui 2020-08-17 01:24:08 +08:00
parent 6be2e51a5a
commit b62666677d
2 changed files with 27 additions and 3 deletions

View File

@ -77,8 +77,33 @@ $(document).ready(function(){
anim:4 anim:4
}); });
} }
$(".gallery-item").each(function(){
var href = $(this).attr("href");
var img = $(this).find("img");
var w = img.width;
var h = img.height;
$(this).attr("href","javascript:void(0)");
});
$(".gallery-item").on("click",function(){
var img = $(this).find("img");
var w = img.width;
var h = img.height;
var url = $(img).attr("src");
showImage(w, h, url);
});
}); });
function showImage(w, h,url){
layer.open({
type:1,
maxmin:true,
offset: 'auto',
area: [w, h],
title: "${blogTitle!}图片显示",
content: '<img src="' + url + '" alt="${blogTitle!}图片" ' + url +' 显示异常>'
});
}
function enterSearch(event){ function enterSearch(event){
if(event.keyCode == "13"){ if(event.keyCode == "13"){
search(); search();

View File

@ -32,9 +32,8 @@
<div class="card widget"> <div class="card widget">
<div class="card-content" style="width:100%"> <div class="card-content" style="width:100%">
<div class="menu"> <div class="menu">
<label class="screen-reader-text" for="s">搜索:</label> &nbsp;&nbsp;<input type="text" required="required" value="" name="s" id="search" onkeydown="enterSearch(event)">&nbsp;&nbsp;
<input type="text" required="required" value="" name="s" id="search" onkeydown="enterSearch(event)">&nbsp;&nbsp; <input type="submit" id="searchsubmit" class="button" value="搜索本站" onclick="search()">
<input type="submit" id="searchsubmit" class="button" value="搜索" onclick="search()">
</div> </div>
</div> </div>
</div> </div>