土豆服务器又挪地方了!
v2.0.1 👑Successor
📅 2024年8月12日
🌟 服务器挪阿里云啦!
💡 优化了Footer,使用异步加载避免拖慢网页
💡 全体插件大更新
🔧 使用AI优化了Footer代码,去除了失效的资源
新的 Footer:
<!doctype html>
<!-- 页脚 -->
<footer>
<div class="site-footer">
<div class="footer-container rm-link-color" style="color: rgb(137, 137, 140); font-size: 0.9em;">
<!-- 加载时间和访问统计 -->
<p>
<span class="mx-2">延迟</span>
<span id="loadtime_span">0</span>
<span class="mx-2">ms | 欢迎第</span>
<span id="busuanzi_value_site_pv">1</span>
<span class="mx-2">位朋友 |</span>
<a id="stats" href="https://stats.uptimerobot.com/EvJjRilBPL" target="_blank">状态</a>
</p>
<!-- 链接和版本信息 -->
<p>
<a id="prot_span" href="https://www.waitech.cn/d/60">社区规范</a>
<span class="mx-2">|</span>
<a id="rept_span" href="mailto:bbs@waitech.cn">违法和不良信息举报</a>
<span class="mx-2">|</span>
<span id="ver_span">版本 Successor</span>
</p>
<!-- 版权声明 -->
<p id="right_span">
本站由 WAI 科技社 创建并运行。
<a href="https://www.waitech.cn/d/20">
<i class="fas fa-info-circle"></i> 了解 WAI 科技社
</a>
</p>
<!-- 运行时间 -->
<p>
WAI 科技社
<span id="runtime_span">成立于 2017 年 12 月 24 日</span>
</p>
<!-- 版权和备案信息 -->
<p>
<span>©2017-2024 WAI</span>
<span class="mx-2">|</span>
<a href="https://beian.miit.gov.cn/" target="_blank">粤 ICP 备 20025819 号 - 1</a>
</p>
</div>
</div>
<div id="flyfish" class="fly-fish" height="200"></div>
</footer>
<!-- 外部脚本文件 -->
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<script async src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script async src="https://discuss.flarum.org.cn/fish.js"></script>
<script>
// 外链跳转
document.addEventListener('click', event => {
let t = event.target;
if (t.matches('.Post-body a')) {
let url = new URL(t.href);
if (url.origin == document.location.origin) {
t.removeAttribute('target');
t.removeAttribute('rel');
} else {
t.setAttribute('target', '_blank');
}
}
}, false);
// Afrux-NewsWidget 处理
window.onload = function () {
$('.Afrux-NewsWidget-line').each((i, item) => {
let match = item.innerHTML.match('[a-zA-z]+://[^\s]*');
if (match) {
$(item).html(`<a href="${match.input.substring(match.index)}" style="display:flex;align-items:center;">${match.input.substring(0, match.index).trim()} <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>`);
}
});
}
// 加载时间显示
var start_time = new Date();
var loadt = setInterval(function () {
if (document.readyState == "complete") {
showLoadTime();
}
}, 500);
function showLoadTime() {
var end_time = new Date();
document.getElementById('loadtime_span').innerHTML = (end_time.getTime() - start_time.getTime());
clearInterval(loadt);
}
// 网页标题特效
(function () {
var OriginTitle = document.title, titleTime;
document.addEventListener('visibilitychange', function () {
if (document.hidden) {
document.title = '死鬼去哪里了!';
clearTimeout(titleTime);
} else {
document.title = '(つェ⊂)你回来啦!';
titleTime = setTimeout(function () {
document.title = OriginTitle;
}, 2000);
}
});
})();
// 社会主义好特效
var a_idx = 0;
jQuery(document).ready(function ($) {
$("body").click(function (e) {
var a = new Array("富强", "民主", "文明", "和谐", "自由", "平等", "公正", "法治", "爱国", "敬业", "诚信", "友善");
var $i = $("<span/>").text(a[a_idx]);
a_idx = (a_idx + 1) % a.length;
var x = e.pageX, y = e.pageY;
$i.css({ "z-index": 100000000, "top": y - 20, "left": x, "position": "absolute", "font-weight": "bold", "color": "#ff6651" });
$("body").append($i);
$i.animate({ "top": y - 180, "opacity": 0 }, 1500, function () { $i.remove(); });
});
});
</script>
<script>
var now = new Date();
function createtime() {
var grt = new Date("2017-12-24T18:30:00+08:00");//修改建站时间
now.setTime(now.getTime() + 250);
days = (now - grt) / 1000 / 60 / 60 / 24;
dnum = Math.floor(days); hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
hnum = Math.floor(hours); if (String(hnum).length == 1) { hnum = "0" + hnum; } minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum); mnum = Math.floor(minutes);
if (String(mnum).length == 1) { mnum = "0" + mnum; } seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum); snum = Math.round(seconds);
if (String(snum).length == 1) { snum = "0" + snum; } document.getElementById("runtime_span").innerHTML = "已成立 " + dnum + " 天 " + hnum + " 小时 " + mnum + " 分 " + snum + " 秒";
} setInterval("createtime()", 250);
</script>