mirror of
https://github.com/suk-ws/ph-Bookshelf.git
synced 2024-12-05 09:26:52 +08:00
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
|
/******************************************************************************
|
|||
|
##############################################################################
|
|||
|
##### #####
|
|||
|
##### 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();
|