之前改了太多php文件,写的主题没法分离出来
这次重新写一个主题,不改typecho本身的代码,最终效果就和本站一样
放到github上了 https://github.com/AmineTsai/TypechoCym
有问题可以提,有时间就改。我不是学前端的,如果要究极无敌炫酷的特效我是肯定没有能力实现的
之前改了太多php文件,写的主题没法分离出来
这次重新写一个主题,不改typecho本身的代码,最终效果就和本站一样
放到github上了 https://github.com/AmineTsai/TypechoCym
有问题可以提,有时间就改。我不是学前端的,如果要究极无敌炫酷的特效我是肯定没有能力实现的
之前用cloudflare加速github图床,结果速度更慢了,博客的图片半天加载不出来。然后就想着用typecho自带的附件功能上传图片,结果硬盘占用很大,迁移起来也要带着图片一起,很不方便。想了想我这是香港服务器啊,访问github肯定很快,所以又把图片放到github图床上,用服务器进行反向代理实现加速。既不占用空间,速度又快,岂不美哉
https://img.cym.cm/20210302164303.jpg
今天早上手机收到了更新推送,更新之后发现 账号与同步 里没有联系人同步了
在网上找到解决方法,原因是大部分国产手机自带的都是阉割了的Google服务, Google Contacts Sync 被阉割了,所以不能同步
去网上下载手机对应的版本,自己安装就行了
maven { url 'https://jitpack.io' }
改成
maven { url 'https://www.jitpack.io' }
真的坑,这www
github地址:https://github.com/acmesh-official/acme.sh/wiki/说明
我用的nginx,所以用nginx来讲
curl https://get.acme.sh | sh
一行代码解决
acme.sh --issue -d 你的域名 --nginx
如果有多个域名,就添加多个 -d,如
acme.sh --issue -d 你的域名1 -d 你的域名2 --nginx
具体效果就和本站一样
添加以下代码到网站中
<html>
<head>
..
<!-- 需要jQuery才能使用 -->
<script src="https://cdn.staticfile.org/jquery/3.5.1/jquery.js"></script>
<!-- 还要添加样式 -->
<style>
..
/* 返回顶部 */
@media (max-width: 1000px) {
#back-to-top {
display: none !important;
}
}
#back-to-top {
cursor: pointer;
position: fixed;
right: 80px;
top: -800px;
z-index: 1;
width: 70px;
height: 800px;
background: url(img/top.png);
transition: all .8s ease-in-out;
opacity: 1;
}
</style>
</head>
<body>
..
<!-- 返回顶部 -->
<div id="back-to-top"></div>
<script>
$(function() {
$(window).scroll(function(){
if ($(window).scrollTop() > 500) {
$('#back-to-top').css('top', '-100px')
} else {
$('#back-to-top').css('top', '-800px')
}
})
$('#back-to-top').click(function() {
$('body,html').animate({
scrollTop: 0
}, 600)
})
})
</script>
</body>
</html>
最后添加一张图片到css对应的路径即可../img/top.png
/**
* 监听键盘开关
*/
private void setKeyboardListener() {
final View rootView = getWindow().getDecorView().findViewById(android.R.id.content);
rootView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
boolean mKeyboardUp = isKeyboardShown(rootView);
if (mKeyboardUp) {
// 键盘弹出
} else {
// 键盘收起
}
}
});
}
/**
* 当前键盘是否显示
*
* @param rootView rootView
* @return bool
*/
private boolean isKeyboardShown(View rootView) {
final int softKeyboardHeight = 100;
Rect r = new Rect();
rootView.getWindowVisibleDisplayFrame(r);
DisplayMetrics dm = rootView.getResources().getDisplayMetrics();
int heightDiff = rootView.getBottom() - r.bottom;
return heightDiff > softKeyboardHeight * dm.density;
}
在需要的地方,如onCreate里调用setKeyboardListener即可
电脑连接家宅内外,风水流动最盛。处理器芯片从硅属土,应置于震位正东,震为雷电,利驱动电源。机箱偏东南,东南为巽卦属风,利散热。网线流量大,易受邪,当选农历三月丙卯日出产水晶头镇之,盖因丙丁为火,能克金(铜芯)歌诀曰:震为主兮巽为客,三线交接丙丁封,风雷相济驱主板,宽带无线阴阳生。