1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2024-12-05 09:26:52 +08:00
ph-Bookshelf/assets/enhanced-rolling-title.js
Eyre_S 4b5a33278f
添加标题permalink链接和指向闪烁功能,添加滚动网页标题插件
- 添加插件 rolling-title 可以使网页标题有滚动向左的效果
  - 默认关闭,使用 enhanced.web.web-title.rolling-title = true 打开
- PHP Markdown 添加 Heading_Permalink 插件
  - 支持了自动为标题生成同名定位标
  - 添加了一个 ⁕ 悬浮的 permalink 按钮
  - 添加了插件 heading-permalink-highlights 使标题被定位时 permalink 按钮会产生闪烁效果
2023-01-27 19:10:05 +08:00

29 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/******************************************************************************
##############################################################################
##### #####
##### Web JavaScripts of ph-Bookshelf #####
##### enhanced extension #####
##### for [ling-title rol] #####
##### #####
##### @author: Sukazyo Workshop #####
##### @version 1.0 #####
##### #####
##############################################################################
******************************************************************************/
const rollingTitle_rollingSpeed = 450;
function rollingTitle_titleRollChar () {
let title = document.title;
const start = title[0];
title = title.substring(1);
title += start;
document.title = title;
setTimeout(rollingTitle_titleRollChar, rollingTitle_rollingSpeed);
}
rollingTitle_titleRollChar();