1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2025-02-12 18:59:54 +08:00
ph-Bookshelf/assets/web/enhanced-rolling-title.js
2023-03-03 21:40:17 +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();