Skip to content

visduo/typecho-playback-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

前言

Typecho 主题配套的文章放映插件。

playback

更新记录 | 更新计划 | 插件下载 | Github 开源

请仔细阅读使用说明和注意事项,如果有任何问题或者建议,可以留言与我交流反馈。

适配指南

三方主题适配该插件,需要:

  1. 提前导入 jQuery。
  2. 自行找位置提供放映按钮,比如在网页右下角添加悬浮按钮、文章内容区添加悬浮按钮等。
  3. 将放映按钮的 id 属性设置为 enterPlayback(固定值)。
  4. 文章内容的容器(即需要放映的原始内容容器),class 属性中需要添加 post-content。
  5. 样式可自行优化,如有样式冲突需要覆盖样式请使用 !important。

示例:

<button class="vertical-btn playback-minitool" id="enterPlayback">
    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-collection-play" viewBox="0 0 16 16">
        <path d="M2 3a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 0-1h-11A.5.5 0 0 0 2 3m2-2a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 0-1h-7A.5.5 0 0 0 4 1m2.765 5.576A.5.5 0 0 0 6 7v5a.5.5 0 0 0 .765.424l4-2.5a.5.5 0 0 0 0-.848z"/>
        <path d="M1.5 14.5A1.5 1.5 0 0 1 0 13V6a1.5 1.5 0 0 1 1.5-1.5h13A1.5 1.5 0 0 1 16 6v7a1.5 1.5 0 0 1-1.5 1.5zm13-1a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5h-13A.5.5 0 0 0 1 6v7a.5.5 0 0 0 .5.5z"/>
    </svg>
</button>

Tips

二创、移植,劳烦动动手点个 Star,燕过留声,人过留名。

若这个项目帮到你,不妨留下一颗 Star 支持下~

About

Typecho 文章放映插件

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors