116 lines
6.5 KiB
Plaintext
116 lines
6.5 KiB
Plaintext
<#--
|
||
|
||
Solo - A small and beautiful blogging system written in Java.
|
||
Copyright (c) 2010-2019, b3log.org & hacpai.com
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU Affero General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU Affero General Public License for more details.
|
||
|
||
You should have received a copy of the GNU Affero General Public License
|
||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||
|
||
-->
|
||
<footer class="footer">
|
||
<div class="fn-clear">
|
||
<span class="itip" id="stat_copy" lang="${blogTitle}感谢您的访问">
|
||
${viewCount1Label}${statistic.statisticBlogViewCount}</span>
|
||
${articleCount1Label}${statistic.statisticPublishedBlogArticleCount}
|
||
${commentCount1Label}${statistic.statisticPublishedBlogCommentCount}
|
||
${onlineVisitor1Label}${onlineVisitorCnt}
|
||
<span class="fn-right"> ${footerContent}</span>
|
||
</div>
|
||
<div class="fn-clear">
|
||
©${year} ${blogTitle?html} All Rights Reserved
|
||
<span class="fn-right">
|
||
<#-- 根据自己实际情况修改
|
||
<a href="https://www.aliyun.com" lang="托管于阿里云." class="itip" id="aly" rel="nofollow"><span class="iconfont icon-aliyun01"></span></a>
|
||
<a href="https://www.qiniu.com/" lang="存储于七牛云." class="itip" id="qny" rel="nofollow"><span class="iconfont icon-qiniu1"></span></a>
|
||
-->
|
||
Powered by <a href="http://b3log.org" rel="friend">B3log开源·Solo</a>
|
||
Theme <a rel="friend" href="https://zixizixi.cn/">子兮子兮</a>
|
||
</span>
|
||
</div>
|
||
<span onclick="Util.goTop()" class="icon-goup iconfont icon-rocketop itip ifixed" id="backTop" lang="飞回顶部"></span>
|
||
<span onclick="Util.goBottom()" class="icon-fly-down iconfont icon-rocketop itip ifixed" id="backBtm" lang="飞到底部"></span>
|
||
</footer>
|
||
<#-- 我喜欢把有些可能频繁修改的 js 和 css 代码直接写在 ftl 文件里,因为写在 ftl 里修改后不需要重启服务即可直接保存查看效果,单独写在文件里必须关闭服务后才能保存修改。 -->
|
||
<script src="//pv.sohu.com/cityjson?ie=utf-8"></script>
|
||
<script>window.jQuery || document.write('<script src="/skins/${skinDirName}/js/lib/jquery/jquery.2.2.4.min.js"><\/script>');</script>
|
||
<script>$['browser']={};</script>
|
||
<script src="/js/common${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
||
<script src="/skins/${skinDirName}/js/yilia7${miniPostfix}.js?${staticResourceVersion}" charset="utf-8"></script>
|
||
<script src="/skins/${skinDirName}/js/lib/layer/layer.js?${staticResourceVersion}"></script>
|
||
<script src="/skins/${skinDirName}/js/welcome.js?${staticResourceVersion}"></script>
|
||
<style>.layui-layer-page .layui-layer-content:not(#layui-layer-photos){ overflow: hidden; }.layui-layer-resize{width:0;height:0;border-width:5px;border-style:ridge;border-color:transparent #666 #666 transparent;}</style>
|
||
<script>
|
||
if (typeof(returnCitySN) != 'undefined') {
|
||
console.debug("\u8bbf\u5ba2\u5730\u5740:"+returnCitySN.cip+"\n\u8bbf\u5ba2\u533a\u57df:"+returnCitySN.cname);
|
||
$("#stat_copy").attr("lang","\u60a8\u662f\u6765\u81ea "+returnCitySN.cname+" \u7684\u8bbf\u5ba2");
|
||
}
|
||
var today = new Date().getDate();
|
||
var latkeConfig ={"servePath": "${servePath}", "staticServePath": "${staticServePath}", "isLoggedIn": "${isLoggedIn?string}", "userName": "${userName}"};
|
||
var Label={
|
||
"markedAvailable": ${markedAvailable?c},
|
||
"hljsStyle": "atom-one-light",
|
||
"langLabel": "${langLabel}",
|
||
"skinDirName":"${skinDirName}"
|
||
};
|
||
Util.init()
|
||
<#-- 参数说明:消息、选择器、方向(顶右底左对应1234)、是否固定 -->
|
||
var itip = function (msg, selector, ipoint, ifixed) {
|
||
ipoint = ipoint == undefined ? 1 : ipoint;
|
||
layer.tips(msg, selector, {tips:[ipoint,'#333'], fixed:ifixed, time:6000});
|
||
};
|
||
$(function($) {
|
||
// link target
|
||
$("main a, footer a").not("header a,a.quote-link,.pagination a,a.tag,a[rel='prev'],a[rel='next'],a[href^='javascript:'],a[id^='goto_']").attr("target", "_blank");
|
||
if($("body").width() > 750) {
|
||
if(Cookie.readCookie("showTips") != "0") {
|
||
<#-- 鼠标悬浮提示 -->
|
||
$(".itip").each(function(i, n) {
|
||
$(n).hover(function() {
|
||
itip($(n).attr("lang"),"#"+$(n).attr("id"),$(n).data("point"),$(n).hasClass("ifixed"));
|
||
}, function() {
|
||
layer.closeAll('tips');
|
||
});
|
||
});
|
||
}
|
||
<#-- 鼠标点击冒泡特效 -->
|
||
var clicksum=0;
|
||
$("html").click(function(e) {
|
||
var n=18, $i;
|
||
clicksum++;
|
||
if(clicksum==10) { $i=$("<b></b>").text("(๑><๑)"); }
|
||
else if(clicksum==20) { $i=$("<b></b>").text("(。ò ∀ ó。)"); }
|
||
else if(clicksum==30) { $i=$("<b></b>").text("(๑•́ ω •̀๑)"); }
|
||
else if(clicksum==40) { $i=$("<b></b>").text("(๑•̀_•́๑)"); }
|
||
else if(clicksum==50) { $i=$("<b></b>").text("o((>ω< ))o"); }
|
||
else if(clicksum==60) { $i=$("<b></b>").text("٩(๑^o^๑)۶"); }
|
||
else if(clicksum==70) { $i=$("<b></b>").text("✧٩(ˊωˋ*)و✧"); }
|
||
else if(clicksum==80) { $i=$("<b></b>").text("ε٩(๑> ₃ <)۶ з"); }
|
||
else if(clicksum==90) { $i=$("<b></b>").text("૧(●´৺`●)૭૧(●´৺`●)૭"); }
|
||
else if(clicksum>=100 && clicksum<=105) { $i=$("<b></b>").text("(ꐦ°᷄д°᷅)Are you crazy?"); }
|
||
else { $i=$("<i class='iconfont icon-keaide'></i>"); n=Math.round(Math.random()*14+16); }
|
||
var x=e.pageX, y=e.pageY;
|
||
$i.css({"z-index":9999,"top":y-20,"left":x,"position":"absolute","color":"#E94F06","font-size":n,"-moz-user-select":"none", "-webkit-user-select": "none","-ms-user-select":"none"});
|
||
$("body").append($i);
|
||
$i.animate({"top":y-180,"opacity":0},1500,function(){$i.remove();});
|
||
e.stopPropagation();
|
||
});
|
||
<#-- 点击图片次数 -->
|
||
var clickimg=0;
|
||
$("article p img, #comments img").not(".avatar").click(function(){clickimg++;var parele=$(this).parents("section")[0]||$(this).parents("div")[0];
|
||
if($(parele).attr("id")==undefined){$(parele).attr("id",("img-"+clickimg));} layer.photos({photos:('#'+$(parele).attr("id")),anim:5,shade:0.3});
|
||
}).css("cursor", "zoom-in");
|
||
}
|
||
});
|
||
</script>
|
||
<#-- ${plugins} -->
|