首页
网站统计
关于梦云
小姐姐在线跳舞
更多
友情链接
留言/反馈
直播
Search
1
梦云建站充值额度api使用教程
199 阅读
2
为typecho joe主题添加一个随机笑话页面
192 阅读
3
zyyo个人主页独立后台版
59 阅读
4
Typecho 首款支持黑暗模式的简洁后台美化插件!Typecho免费插件
45 阅读
5
Brave勇敢爱(魔改版)Typecho主题 - 恋爱历程记录主题
41 阅读
技术分享
原创程序
梦云建站
源码分享
个人主页源码
Typecho主题
网站源码
Typecho插件
WordPress主题
日常分享
登录
/
注册
找到
2
篇与
Typecho插件
相关的结果
2024-11-03
Typecho文章AI摘要插件 AISummary
插件后台设置说明 插件的json模式的json变量名就是当你输入返回格式是json的时候提取文字的那个变量 例如访问https://api.qster.top/API/v1/chat/?type=json&msg= 返回格式是{ "code": 400, "problem": "", "answer": "请给出一个问题" } 那么answer这个是我们需要的内容 你就可以把返回的变量里有文字的这个变量名填上去就可以了 使用教程 首先下载插件到usr/plugins/目录进行解压(文件名必须是 AISummary 不然会报错) 然后在后台启用AISummary插件 接着把AI.php上传到主题的任意一个位置当然你要知道路径 等会要用(Joe再续前缘版可以上传到usr/themes/Joe/module/目录) Joe再续前缘专用AI.php - <div class="title-theme">AI摘要</div> <div class="joe_header__slideout-menu panel-b"> <?php if ($this->fields->content) :?> <div class="ai-summary-block"> <p>AI 摘要:<span class="typing-effect"><?php echo $this->fields->content;?></span></p> </div> <?php endif;?> <style> .ai-summary-block { background-color: #f5f5f5; padding: 15px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 20px; } .typing-effect { white-space: nowrap; overflow: hidden; animation: typing 2s steps(40) forwards; } @keyframes typing { from { width: 0; } to { width: 100%; } } .joe_header__slideout-menu.panel-b { overflow-y: scroll; } h2 { text-align: center; } h3 { color: black; font-size: smaller; text-align: center; } </style> <script> document.addEventListener('DOMContentLoaded', function () { const typingElements = document.querySelectorAll('.typing-effect'); typingElements.forEach(element => { element.classList.remove('typing-effect'); const text = element.textContent; element.textContent = ''; let i = 0; const typingInterval = setInterval(() => { if (i < text.length) { element.textContent += text[i]; i++; } else { clearInterval(typingInterval); } }, 50); }); }); </script> </div> <br> 通用AI.php代码 - <div class="title-theme">AI摘要</div> <div class="joe_header__slideout-menu panel-b"> <?php if ($this->fields->content) :?> <div class="ai-summary-block"> <p>AI 摘要:<span class="typing-effect"><?php echo $this->fields->content;?></span></p> </div> <?php endif;?> <style> .title-theme { position: relative; padding-left: 1.2em; font-size: 15px; color: var(--main-color); } .title-theme small { font-size: 80%; opacity: .7 } .title-theme:before { position: absolute; content: ''; width: 4px; background: var(--theme); top: 10%; left: 2px; bottom: 10%; border-radius: 5px; box-shadow: 1px 1px 3px -1px var(--theme) } .ai-summary-block { background-color: #f5f5f5; padding: 15px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 20px; } .typing-effect { white-space: nowrap; overflow: hidden; animation: typing 2s steps(40) forwards; } @keyframes typing { from { width: 0; } to { width: 100%; } } .joe_header__slideout-menu.panel-b { overflow-y: scroll; } h2 { text-align: center; } h3 { color: black; font-size: smaller; text-align: center; } </style> <script> document.addEventListener('DOMContentLoaded', function () { const typingElements = document.querySelectorAll('.typing-effect'); typingElements.forEach(element => { element.classList.remove('typing-effect'); const text = element.textContent; element.textContent = ''; let i = 0; const typingInterval = setInterval(() => { if (i < text.length) { element.textContent += text[i]; i++; } else { clearInterval(typingInterval); } }, 50); }); }); </script> </div> <br> 然后在主题的post.php里面合适的位置添加以下代码 <?php $this->need('module/AI.php'); ?>Joe再续前缘版本可以添加在post.php的第120行下面第121行 隐藏内容,请前往内页查看详情
Typecho插件
# Typecho插件
# ai自动简介
梦云
1年前
0
11
0
2024-11-03
typecho采集插件Piano_gather
typecho根目录 - usr(文件夹) - plugins (文件夹) 上传此插件至上方目录文件夹下即可! S41103-00464189_com.android.browser(1).png图片 隐藏内容,请前往内页查看详情
付费阅读
¥
3.88
Typecho插件
# 插件
# Typecho插件
# Piano_gather
梦云
1年前
0
30
0