-
距离春节还有0 天
未创建日记页面,请在后台创建日记页面
若已创建,请在主题“设置-首页”中填写必要选项
若已创建,请在主题“设置-首页”中填写必要选项
2024年外卖
分类:
生活
简介:沙县小吃(巷畔店)拌混沌 小份这个一如既往的好吃!煮馄饨面这个不咋好吃,可能是单纯的煮馄饨太亏钱了,给改成了这个,当时没注意点了一份,十分后悔jpg茶救星球•蔬果茶(万达金街店)马蹄甘蔗奶茶去冰/标准糖选的没喝过的新品试试看的,好吃又好喝,不错的!鄰里泰绿手打柠檬茶(揭阳店)话梅凤梨冰柠茶600毫升,少冰不满杯,正常糖喝不出个所以然,感觉就是柠檬茶,没尝出别的东西来热饮.麦片茉莉奶茶500毫升,正常糖,温热不错的,和之前喝的麦片奶茶差不多,这个茉莉也不错,没有很重的茉莉味道!茶百道(同心路店)抹茶奶布丁 大杯(常规)大杯(常规)/热/7分糖(推荐)这个也还不错,不过我很少喝抹茶这类,所以也喝不出来,只能说口感和味道都不讨厌吧
锻炼肌肉
简介:直腿抬高http://xhslink.com/hf3JVx膝盖与运动https://m.weibo.cn/status/4974787035925520
从零开始修typecho
简介:想试着做一个满足自己需求的主题(大概是复制粘贴吧!)可以研究一下的东西Typecho语法大全/Typech常用函数/Typecho调用方法功能总之先装了个文章目录哈……我给放到边栏(可能变成PC限定?)里去了,有技术再看看怎么进化吧Typecho教程:免插件为主题加入文章目录功能加了个倒计时给自己博客底部加上倒计时增加标签(嫌标签太多,还是独立出来吧)和文章归档页面Typecho技巧:自定义独立页面模板实现归档、分类、标签在页脚加个运行时间Typecho显示网站运行时间的方法总结加了个时间轴Typecho 博客文章/页面内添加时间轴记录想加个独立页面展示单独分类下的文章,结果失败了……这个以后再看看好了,先用链接好了增加了个返回顶部Typecho 返回顶部BacktoTop的几种方法加了个编辑功能,这样就不用一直登陆到后台修改了Typecho通过判断用户登陆状态,给文章加编辑按钮二级菜单看起来有点复杂,先不折腾,但是先码一下教程typecho输出导航(二级)和独立页面代码直达评论区,因为有的文章写得太长了,所以需要一个直接冲到评论区的功能,于是从index.php那扒了一个,好像可以用欸?不小心放进了编辑的PHP里,又没有退出登录查看,到大晚上才发现,失误失误!加了个短代码看看怎么样失败了,好像要给短代码一个独立的类别,等有时间再折腾首页要不要显示摘要内容,或直接显示全文文章目录functions.phpfunction createCatalog($obj) {
global $catalog;
global $catalog_count;
$catalog = array();
$catalog_count = 0;
$obj = preg_replace_callback('/<h([1 6])(.*?)>(.*?)<\/h\1>/i', function($obj) {
global $catalog;
global $catalog_count;
$catalog_count ++;
$catalog[] = array('text' => trim(strip_tags($obj[3])), 'depth' => $obj[1], 'count' => $catalog_count);
return '<h'.$obj[1].$obj[2].'><a name="cl '.$catalog_count.'"></a>'.$obj[3].'</h'.$obj[1].'>';
}, $obj);
return $obj;
}
function getCatalog() {
global $catalog;
$index = '';
if ($catalog) {
$index = '<ul>'."\n";
$prev_depth = '';
$to_depth = 0;
foreach($catalog as $catalog_item) {
$catalog_depth = $catalog_item['depth'];
if ($prev_depth) {
if ($catalog_depth == $prev_depth) {
$index .= '</li>'."\n";
} elseif ($catalog_depth > $prev_depth) {
$to_depth++;
$index .= '<ul>'."\n";
} else {
$to_depth2 = ($to_depth > ($prev_depth $catalog_depth)) ? ($prev_depth $catalog_depth) : $to_depth;
if ($to_depth2) {
for ($i=0; $i<$to_depth2; $i++) {
$index .= '</li>'."\n".'</ul>'."\n";
$to_depth ;
}
}
$index .= '</li>';
}
}
$index .= '<li><a href="#cl '.$catalog_item['count'].'">'.$catalog_item['text'].'</a>';
$prev_depth = $catalog_item['depth'];
}
for ($i=0; $i<=$to_depth; $i++) {
$index .= '</li>'."\n".'</ul>'."\n";
}
$index = '<div id="toc container">'."\n".'<div id="toc">'."\n".'<strong>文章目录</strong>'."\n".$index.'</div>'."\n".'</div>'."\n";
}
echo $index;
}把上面的代码放到主题文件functions.php内,然后在functions.php内搜索关键词function themeInit,如果有themeInit这个函数,则在themeInit这个函数内添加下面的代码有themeInit函数if ($archive >is('single')) {
$archive >content = createCatalog($archive >content);
}无themeInit函数function themeInit($archive) {
if ($archive >is('single')) {
$archive >content = createCatalog($archive >content);
}
}调用代码<?php getCatalog(); ?>倒计时代码<Script Language="JavaScript">
var timedate= new Date("May 2,2010");
var times= "唐涛的生日";
var now = new Date();
var date = timedate.getTime() now.getTime();
var time = Math.floor(date / (1000 * 60 * 60 * 24));
if (time >= 0)
document.write( "现在离"+times+"还有: "+time +"天")
</Script>文章归档页面<?php
/**
* 文章存档
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this >need('header.php'); ?>
<div class="col md 12 text center">
<div class="page header">
<h2 class="page title"><?php $this >title() ?></h2>
<hr>
</div>
</div>
<div class="col md 12">
<article class="page wrapper" itemscope itemtype="http://schema.org/BlogPosting">
<div class="post content" itemprop="articleBody">
<?php
$stat = Typecho_Widget::widget('Widget_Stat');
Typecho_Widget::widget('Widget_Contents_Post_Recent', 'pageSize='.$stat >publishedPostsNum) >to($archives);
$year=0; $mon=0; $i=0; $j=0;
$output = '<div class="archives">';
while($archives >next()){
$year_tmp = date('Y',$archives >created);
$mon_tmp = date('m',$archives >created);
$y=$year; $m=$mon;
if ($year > $year_tmp || $mon > $mon_tmp) {
$output .= '</ul></div>';
}
if ($year != $year_tmp || $mon != $mon_tmp) {
$year = $year_tmp;
$mon = $mon_tmp;
$output .= '<div class="archives item"><h4>'.date('Y年m月',$archives >created).'</h4><hr><ul class="archives_list">'; //输出年份
}
$output .= '<li>'.date('d日',$archives >created).' <a href="'.$archives >permalink .'">'. $archives >title .'</a></li>'; //输出文章
}
$output .= '</ul></div></div>';
echo $output;
?>
</div>
</article>
</div><! end #main >
<?php $this >need('footer.php'); ?>运行时间代码functions.php// 设置时区
date_default_timezone_set('Asia/Shanghai');
/**
* 秒转时间,格式 年 月 日 时 分 秒
*
*/
function getBuildTime() {
// 在下面按格式输入本站创建的时间
$site_create_time = strtotime('2019 12 20 20:00:00');
$time = time() $site_create_time;
if (is_numeric($time)) {
$value = array(
"years" => 0, "days" => 0, "hours" => 0,
"minutes" => 0, "seconds" => 0,
);
if ($time >= 31556926) {
$value["years"] = floor($time / 31556926);
$time = ($time % 31556926);
}
if ($time >= 86400) {
$value["days"] = floor($time / 86400);
$time = ($time % 86400);
}
if ($time >= 3600) {
$value["hours"] = floor($time / 3600);
$time = ($time % 3600);
}
if ($time >= 60) {
$value["minutes"] = floor($time / 60);
$time = ($time % 60);
}
$value["seconds"] = floor($time);
echo '<span class="btime">'.$value['years'].
'年'.$value['days'].
'天'.$value['hours'].
'小时'.$value['minutes'].
'分</span>';
} else {
echo '';
}
}调用代码<?php getBuildTime(); ?>时间轴代码style.css/* 站点动态时间轴 */
#teamnewslist ol{list style:none;margin left: 36px;padding left: 14px;border left: 2px solid
#eee;font size: 18px;color: #666;}
#teamnewslist b{font size: 12px;font weight: normal;color: #999;display: block;position: relative;margin bottom:5px;}
#teamnewslist b::after{position: absolute;top: 6px;left: 22px;content: '';width: 14px;height: 14px;border radius: 50%;background color: #fff;border: 2px solid #ccc;box shadow: 2px 2px 0 rgba(255,255,255,1), 2px 2px 0 rgba(255,255,255,1)}
#teamnewslist li{list style:none;margin: 0 0 20px 0;line height: 100%;}
#teamnewslist li:hover{color: #555;}
#teamnewslist li:hover b::after{border color: #C01E22;}
#teamnewslist li:hover b{color: #C01E22;}调用代码!!!
<h4>
<span style="font size: 20px; color: #99ccff;">
<a style="color: #99ccff;text decoration: none;">2019年</a>
</span>
</h4>
<div id="teamnewslist">
<ol>
<li><b>2019年10月</b>遭受大规模攻击,导致进入小黑屋三天。收录被K</li>
<li><b>2019年7月</b>修复DUX模板大部分BUG</li>
<li><b>2019年06月</b>完成jinjun.top的域名备案</li>
<li><b>2019年03月</b>腾讯云服务器过期,启用jinjun.top域名</li>
<li><b>2019年01月</b>完成对jinjun.top域名的收购</li>
</ol>
</div>
!!!编辑页面/编辑文章编辑页面代码<?php if($this >user >hasLogin()):?>
<a href="<?php $this >options >adminUrl(); ?>write page.php?cid=<?php echo $this >cid;?>">编辑</a>
<?php endif;?>编辑文章代码<?php if($this >user >hasLogin()):?>
<a href="<?php $this >options >adminUrl(); ?>write post.php?cid=<?php echo $this >cid;?>">编辑</a>
<?php endif;?>直达评论区代码<li itemprop="interactionCount">
<a itemprop="discussionUrl" href="<?php $this >permalink() ?>#comments">
<?php $this >commentsNum('评论', '1 条评论', '%d 条评论'); ?></a>
</li>显示摘要内容<?php $this >excerpt(); ?>显示全文内容<?php $this >content(); ?>抄了post.php的……不然图片也太大了<div class="post content" itemprop="articleBody">
<?php $this >content(); ?>
</div>
2024年3月29日
Friday.
焦点
近期文章
Mac mini M2
简介:在某鱼收了个M2,终于到手啦!查了一下确实是12月7日激活的,卖家已经给我还原了,刚到手就是一顿激活和下载一些常用的软件再看看要怎么用它吧,虽然只有8+256GB,但是可以外接硬盘嗷,机械硬盘有的是,得趁着便宜购入点SSD了
拔智齿
简介: 餐食第一天粿条、生鱼粥第二天春菜排骨生鱼粥第三天生蚝、米饭、鸡腿第四天生蚝、米饭、小的蚬子肉第五天吃剩的小的蚬子肉、黑鱼第六天吃剩的黑鱼、鸡肉亲戚过节给的终于把这两个破智齿拔掉了!!!年初疼过一次吧,后来想着说不疼就不管结果中间又疼了几次,想着说天冷了再拔掉这个月又疼,就想着找个时间拔了!正好最近降温,今天又是绝好的天气,就去拔了左边的上下智齿都拔了,¥1200应该是难度不大,我看医生哐哐两下就好了,直到缝针的时候才意识到拔完了右边的下智齿去年拔了,那时候还用了¥2000而且时长比今天的要长些……剩下个右边的上智齿,它不生事就不管它!反正是最后才钻出来的牙齿,应该不会那么快嗷?晚上点了份生鱼粥来吃,还不错嗷!听说开刀要吃生鱼粥,伤口才会好得快(不知道哪里来的说法)吃了消炎药和止血药,肚子饿得贼快,我7点才吃完饭啊,现在才10点!!!!!难怪刚刚7点多突然困成傻逼,原来是在消化呀
锻炼肌肉
简介:直腿抬高http://xhslink.com/hf3JVx膝盖与运动https://m.weibo.cn/status/4974787035925520
从零开始修typecho
简介:想试着做一个满足自己需求的主题(大概是复制粘贴吧!)可以研究一下的东西Typecho语法大全/Typech常用函数/Typecho调用方法功能总之先装了个文章目录哈……我给放到边栏(可能变成PC限定?)里去了,有技术再看看怎么进化吧Typecho教程:免插件为主题加入文章目录功能加了个倒计时给自己博客底部加上倒计时增加标签(嫌标签太多,还是独立出来吧)和文章归档页面Typecho技巧:自定义独立页面模板实现归档、分类、标签在页脚加个运行时间Typecho显示网站运行时间的方法总结加了个时间轴Typecho 博客文章/页面内添加时间轴记录想加个独立页面展示单独分类下的文章,结果失败了……这个以后再看看好了,先用链接好了增加了个返回顶部Typecho 返回顶部BacktoTop的几种方法加了个编辑功能,这样就不用一直登陆到后台修改了Typecho通过判断用户登陆状态,给文章加编辑按钮二级菜单看起来有点复杂,先不折腾,但是先码一下教程typecho输出导航(二级)和独立页面代码直达评论区,因为有的文章写得太长了,所以需要一个直接冲到评论区的功能,于是从index.php那扒了一个,好像可以用欸?不小心放进了编辑的PHP里,又没有退出登录查看,到大晚上才发现,失误失误!加了个短代码看看怎么样失败了,好像要给短代码一个独立的类别,等有时间再折腾首页要不要显示摘要内容,或直接显示全文文章目录functions.phpfunction createCatalog($obj) {
global $catalog;
global $catalog_count;
$catalog = array();
$catalog_count = 0;
$obj = preg_replace_callback('/<h([1 6])(.*?)>(.*?)<\/h\1>/i', function($obj) {
global $catalog;
global $catalog_count;
$catalog_count ++;
$catalog[] = array('text' => trim(strip_tags($obj[3])), 'depth' => $obj[1], 'count' => $catalog_count);
return '<h'.$obj[1].$obj[2].'><a name="cl '.$catalog_count.'"></a>'.$obj[3].'</h'.$obj[1].'>';
}, $obj);
return $obj;
}
function getCatalog() {
global $catalog;
$index = '';
if ($catalog) {
$index = '<ul>'."\n";
$prev_depth = '';
$to_depth = 0;
foreach($catalog as $catalog_item) {
$catalog_depth = $catalog_item['depth'];
if ($prev_depth) {
if ($catalog_depth == $prev_depth) {
$index .= '</li>'."\n";
} elseif ($catalog_depth > $prev_depth) {
$to_depth++;
$index .= '<ul>'."\n";
} else {
$to_depth2 = ($to_depth > ($prev_depth $catalog_depth)) ? ($prev_depth $catalog_depth) : $to_depth;
if ($to_depth2) {
for ($i=0; $i<$to_depth2; $i++) {
$index .= '</li>'."\n".'</ul>'."\n";
$to_depth ;
}
}
$index .= '</li>';
}
}
$index .= '<li><a href="#cl '.$catalog_item['count'].'">'.$catalog_item['text'].'</a>';
$prev_depth = $catalog_item['depth'];
}
for ($i=0; $i<=$to_depth; $i++) {
$index .= '</li>'."\n".'</ul>'."\n";
}
$index = '<div id="toc container">'."\n".'<div id="toc">'."\n".'<strong>文章目录</strong>'."\n".$index.'</div>'."\n".'</div>'."\n";
}
echo $index;
}把上面的代码放到主题文件functions.php内,然后在functions.php内搜索关键词function themeInit,如果有themeInit这个函数,则在themeInit这个函数内添加下面的代码有themeInit函数if ($archive >is('single')) {
$archive >content = createCatalog($archive >content);
}无themeInit函数function themeInit($archive) {
if ($archive >is('single')) {
$archive >content = createCatalog($archive >content);
}
}调用代码<?php getCatalog(); ?>倒计时代码<Script Language="JavaScript">
var timedate= new Date("May 2,2010");
var times= "唐涛的生日";
var now = new Date();
var date = timedate.getTime() now.getTime();
var time = Math.floor(date / (1000 * 60 * 60 * 24));
if (time >= 0)
document.write( "现在离"+times+"还有: "+time +"天")
</Script>文章归档页面<?php
/**
* 文章存档
*
* @package custom
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this >need('header.php'); ?>
<div class="col md 12 text center">
<div class="page header">
<h2 class="page title"><?php $this >title() ?></h2>
<hr>
</div>
</div>
<div class="col md 12">
<article class="page wrapper" itemscope itemtype="http://schema.org/BlogPosting">
<div class="post content" itemprop="articleBody">
<?php
$stat = Typecho_Widget::widget('Widget_Stat');
Typecho_Widget::widget('Widget_Contents_Post_Recent', 'pageSize='.$stat >publishedPostsNum) >to($archives);
$year=0; $mon=0; $i=0; $j=0;
$output = '<div class="archives">';
while($archives >next()){
$year_tmp = date('Y',$archives >created);
$mon_tmp = date('m',$archives >created);
$y=$year; $m=$mon;
if ($year > $year_tmp || $mon > $mon_tmp) {
$output .= '</ul></div>';
}
if ($year != $year_tmp || $mon != $mon_tmp) {
$year = $year_tmp;
$mon = $mon_tmp;
$output .= '<div class="archives item"><h4>'.date('Y年m月',$archives >created).'</h4><hr><ul class="archives_list">'; //输出年份
}
$output .= '<li>'.date('d日',$archives >created).' <a href="'.$archives >permalink .'">'. $archives >title .'</a></li>'; //输出文章
}
$output .= '</ul></div></div>';
echo $output;
?>
</div>
</article>
</div><! end #main >
<?php $this >need('footer.php'); ?>运行时间代码functions.php// 设置时区
date_default_timezone_set('Asia/Shanghai');
/**
* 秒转时间,格式 年 月 日 时 分 秒
*
*/
function getBuildTime() {
// 在下面按格式输入本站创建的时间
$site_create_time = strtotime('2019 12 20 20:00:00');
$time = time() $site_create_time;
if (is_numeric($time)) {
$value = array(
"years" => 0, "days" => 0, "hours" => 0,
"minutes" => 0, "seconds" => 0,
);
if ($time >= 31556926) {
$value["years"] = floor($time / 31556926);
$time = ($time % 31556926);
}
if ($time >= 86400) {
$value["days"] = floor($time / 86400);
$time = ($time % 86400);
}
if ($time >= 3600) {
$value["hours"] = floor($time / 3600);
$time = ($time % 3600);
}
if ($time >= 60) {
$value["minutes"] = floor($time / 60);
$time = ($time % 60);
}
$value["seconds"] = floor($time);
echo '<span class="btime">'.$value['years'].
'年'.$value['days'].
'天'.$value['hours'].
'小时'.$value['minutes'].
'分</span>';
} else {
echo '';
}
}调用代码<?php getBuildTime(); ?>时间轴代码style.css/* 站点动态时间轴 */
#teamnewslist ol{list style:none;margin left: 36px;padding left: 14px;border left: 2px solid
#eee;font size: 18px;color: #666;}
#teamnewslist b{font size: 12px;font weight: normal;color: #999;display: block;position: relative;margin bottom:5px;}
#teamnewslist b::after{position: absolute;top: 6px;left: 22px;content: '';width: 14px;height: 14px;border radius: 50%;background color: #fff;border: 2px solid #ccc;box shadow: 2px 2px 0 rgba(255,255,255,1), 2px 2px 0 rgba(255,255,255,1)}
#teamnewslist li{list style:none;margin: 0 0 20px 0;line height: 100%;}
#teamnewslist li:hover{color: #555;}
#teamnewslist li:hover b::after{border color: #C01E22;}
#teamnewslist li:hover b{color: #C01E22;}调用代码!!!
<h4>
<span style="font size: 20px; color: #99ccff;">
<a style="color: #99ccff;text decoration: none;">2019年</a>
</span>
</h4>
<div id="teamnewslist">
<ol>
<li><b>2019年10月</b>遭受大规模攻击,导致进入小黑屋三天。收录被K</li>
<li><b>2019年7月</b>修复DUX模板大部分BUG</li>
<li><b>2019年06月</b>完成jinjun.top的域名备案</li>
<li><b>2019年03月</b>腾讯云服务器过期,启用jinjun.top域名</li>
<li><b>2019年01月</b>完成对jinjun.top域名的收购</li>
</ol>
</div>
!!!编辑页面/编辑文章编辑页面代码<?php if($this >user >hasLogin()):?>
<a href="<?php $this >options >adminUrl(); ?>write page.php?cid=<?php echo $this >cid;?>">编辑</a>
<?php endif;?>编辑文章代码<?php if($this >user >hasLogin()):?>
<a href="<?php $this >options >adminUrl(); ?>write post.php?cid=<?php echo $this >cid;?>">编辑</a>
<?php endif;?>直达评论区代码<li itemprop="interactionCount">
<a itemprop="discussionUrl" href="<?php $this >permalink() ?>#comments">
<?php $this >commentsNum('评论', '1 条评论', '%d 条评论'); ?></a>
</li>显示摘要内容<?php $this >excerpt(); ?>显示全文内容<?php $this >content(); ?>抄了post.php的……不然图片也太大了<div class="post content" itemprop="articleBody">
<?php $this >content(); ?>
</div>