qxzhan / Twikoo邮件通知模板
0 curtidas
0 bifurcações
2 arquivos
Última atividade 1 month ago
Twikoo模板html文件
| 1 | <div> |
| 2 | <div id="content" style="margin-top: 20px;margin-bottom: 20px"> |
| 3 | <div style="background: #ddefff;width: 95%;max-width: 800px;margin: auto auto;border-radius: 12px;border: #49b1f5 1px solid;overflow: hidden;-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.4);box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.4); "> |
| 4 | <header style="overflow: hidden"><img src="https://pic1.imgdb.cn/item/69590419da3df73ea1bd0323.webp" style="width: 100%; z-index: 666"></header> |
| 5 | <div style="padding: 5px 20px"> |
| 6 | <div class="dear" style="border-radius: 30px;position: relative;color: white;float: left;z-index: 999;background: #347aa9;padding: 5px 30px;margin: -20px auto 0;box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);">亲爱的${PARENT_NICK}:</div><br> |
| 7 | <center> |
| 8 | <h3>你收到了来自 <a style="text-decoration: none; color: #9c515b">${NICK}</a> 的回复</h3> |
| 9 | </center> |
| 10 | <hr style="width:200px;border:0;border-bottom:1px solid #e5e5e5;margin:12px auto;"><br> <p>您在<a href="${POST_URL}" style="text-decoration: none;color: #49b1f5" target="_blank"> ${SITE_NAME} </a>上发表的评论:</p> |
qxzhan / 腾讯EO Pages随机图API
0 curtidas
0 bifurcações
1 arquivos
Última atividade 5 months ago
| 1 | // 缓存图片数据,减少重复请求 |
| 2 | let cachedPictures = null; |
| 3 | let cacheTimestamp = 0; |
| 4 | const CACHE_TTL = 43200000; // 缓存12小时(12×60×60×1000毫秒) |
| 5 | |
| 6 | export async function onRequest(context) { |
| 7 | const { request } = context; |
| 8 | |
| 9 | try { |
| 10 | // 使用缓存数据(如果有效) |
qxzhan / Joe再续前缘魔改铺垫(二)
0 curtidas
0 bifurcações
1 arquivos
Última atividade 5 months ago
友链状态检测 flink_count.json 适配
| 1 | <?php |
| 2 | require_once dirname(__FILE__) . '/../config.inc.php'; |
| 3 | $db = \Typecho\Db::get(); |
| 4 | try { |
| 5 | $query = $db->select('title', 'url', 'logo', 'description') |
| 6 | ->from('table.friends') |
| 7 | ->where('status = ?', 1); |
| 8 | $rows = $db->fetchAll($query); |
| 9 | $link_list = []; |
| 10 | foreach ($rows as $row) { |
qxzhan / Joe再续前缘魔改铺垫(一)
0 curtidas
0 bifurcações
1 arquivos
Última atividade 5 months ago
朋友圈精简版 friend.json 适配
| 1 | <?php |
| 2 | require_once dirname(__FILE__) . '/../config.inc.php'; |
| 3 | $db = \Typecho\Db::get(); |
| 4 | try { |
| 5 | $query = $db->select('title', 'url', 'logo') |
| 6 | ->from('table.friends') |
| 7 | ->where('status = ?', 1); |
| 8 | $rows = $db->fetchAll($query); |
| 9 | $friends = []; |
| 10 | foreach ($rows as $row) { |
Próximo
Anterior