修改皮肤bolo-fantastic

This commit is contained in:
LingZhaoHui 2020-08-17 00:43:25 +08:00
parent ed8621de2e
commit 6be2e51a5a
4 changed files with 79 additions and 28 deletions

View File

@ -30,6 +30,11 @@
<div class="level">
<div class="blog-slider card">
<div class="blog-slider__wrp swiper-wrapper">
<div class="blog-slider__img">
<a href="${servePath}${article.articlePermalink}">
<img src="${article.articleImg1URL}" alt="${article.articleTitle!}" referrerpolicy="origin">
</a>
</div>
<div class="blog-slider__item swiper-slide">
<div class="blog-slider__content">
<div>
@ -59,6 +64,11 @@
</div>
<#else>
<div class="card">
<div class="card-image">
<a href="${servePath}${article.articlePermalink}">
<img class="thumbnail" src="${article.articleImg1URL}" alt="${article.articleTitle!}" referrerpolicy="origin">
</a>
</div>
<div class="card-content article " id="card-content" style="width: 100%">
<div class="level article-meta is-size-7 is-uppercase is-mobile is-overflow-x-auto">
<div class="level-left">

View File

@ -47,6 +47,71 @@
<script src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}"></script>
<script src="${staticServePath}/skins/${skinDirName}/js/common${miniPostfix}.js?${staticResourceVersion}"></script>
<script src="${staticServePath}/skins/${skinDirName}/js/layer.js?${staticResourceVersion}"></script>
<script type="text/javascript" >
$(document).ready(function(){
var ctrlDown = false,ctrlKey = 17,cmdKey = 91,vKey = 86, cKey = 67;
$(document).keydown(function(e) {
if (e.keyCode == ctrlKey || e.keyCode == cmdKey) {
ctrlDown = true;
}
}).keyup(function(e) {
if (e.keyCode == ctrlKey || e.keyCode == cmdKey) {
ctrlDown = false;
}
});
$(document).keydown(function(e) {
if (ctrlDown && (e.keyCode == cKey)) {
layer.open({
title:"${blogTitle!}友情提示",
content:"您复制了本站内容,转载请注明来源。",
anim:4
});
}
if (ctrlDown && (e.keyCode == vKey)) console.log("Document catch Ctrl+V");
});
document.oncopy = function(){
layer.open({
title:"${blogTitle!}友情提示",
content:"您复制了本站内容,转载请注明来源。",
anim:4
});
}
});
function enterSearch(event){
if(event.keyCode == "13"){
search();
}
}
function qq(){
layer.open({
title:"${blogTitle!}友情提示",
content:"${blogTitle!}的QQ号码是:${usite.usiteQQ}",
anim:4
});
}
function wechat(){
layer.open({
title:"${blogTitle!}友情提示",
content:"${blogTitle!}的微信号码是:${usite.usiteWeChat}",
anim:4
});
}
function search(){
var s = $("#search").val();
if (s == ""){
layer.open({
title:"${blogTitle!}友情提示",
content:"搜索关键词不能为空!",
anim:4
});
return;
}
window.open("https://www.zeekling.cn/search?keyword=" + s);
}
</script>
<#include "../../common-template/label.ftl">
${plugins}

View File

@ -77,30 +77,6 @@
</section>
</div>
<a id="back-to-top" title="返回顶部" href="javascript:"><i class="fas fa-chevron-up"></i></a>
<script type="text/javascript" >
function enterSearch(event){
if(event.keyCode == "13"){
search();
}
}
function wechat(){
layer.open({
title:"提示",
content:"我的微信号码是:${usite.usiteWeChat}"
});
}
function search(){
var s = $("#search").val();
if (s == ""){
layer.open({
title:"提示",
content:"搜索结果不能为空!"
});
return;
}
window.open("https://www.zeekling.cn/search?keyword=" + s);
}
</script>
<#include "footer.ftl">
</body>

View File

@ -76,10 +76,10 @@ box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);">
<div class="level is-mobile">
<#if usite??>
<#if usite.usiteQQ !=''>
<a class="level-item button is-marginless" target="_blank" title="QQ"
href="tencent://message/?uin=${usite.usiteQQ}">
<i class="fab fa-qq"></i>
</a>
<span class="level-item button is-marginless" target="_blank" title="QQ"
onclick="qq()">
<i class="fab fa-qq"></i>
</span>
</#if>
<#if usite.usiteWeChat !=''>
<span class="level-item button is-marginless" target="_blank" title="WeChat"