cansin-blogdata 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/autopublish.yml +18 -18
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231001-[/345/276/256/347/254/221].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231002-[/345/253/214/345/274/203].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231003-[/345/226/234/346/254/242].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231004-[/345/221/206].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231005-[/345/244/247/345/223/255].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231006-[/345/256/263/347/276/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231007-[/346/227/240/350/257/255].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231008-[/345/247/224/345/261/210].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231009-[/345/260/264/345/260/254].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231010-[/347/224/237/346/260/224].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231011-[/345/245/270/347/254/221].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231012-[/345/244/247/347/254/221].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231013-[/346/203/212/350/256/266].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231014-[/345/233/247].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231015-[/346/215/202/350/204/270].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231016-[/347/201/265/351/255/202/345/207/272/347/252/215].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231017-[/345/220/220].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231018-[/346/212/240/351/274/273].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231019-[/346/203/212/345/226/234].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231020-[/345/202/262/345/250/207].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231021-[/347/226/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231022-[/345/220/223].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231023-[/351/230/264/351/231/251].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231024-[/347/202/271/350/265/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231025-[doge].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231026-[/346/273/221/347/250/275].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231027-[/347/224/237/347/227/205].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231028-[/345/230/230/345/243/260].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231029-[/345/220/203/347/223/234].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231030-[/345/246/231/345/225/212].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231031-[/347/254/221/345/223/255].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231032-[/346/211/223call].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231033-[/345/226/234/346/236/201/350/200/214/346/263/243].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231034-[/345/201/267/347/254/221].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231035-[/350/260/203/347/232/256].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231036-[/345/221/262/347/211/231].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231037-[/345/217/243/347/275/251].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231038-[/347/226/221/346/203/221].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231039-[/346/215/202/347/234/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231040-[/345/223/246/345/221/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231041-[/346/200/235/350/200/203].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231042-[/345/206/215/350/247/201].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231043-[/347/277/273/347/231/275/347/234/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231044-[OK].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231045-[/345/223/210/346/254/240].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231046-[/345/245/213/346/226/227].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231047-[/345/242/250/351/225/234].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231048-[/351/232/276/350/277/207].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231049-[/346/222/207/345/230/264].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231050-[/346/230/237/346/230/237/347/234/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231051-[/346/212/223/347/213/202].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231052-[/347/254/221].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231053-[/351/274/223/346/216/214].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231054-[/346/255/252/345/230/264].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231055-[/350/276/243/347/234/274/347/235/233].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231056-[/345/221/262/347/211/231-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231057-[OK-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231058-[/346/230/237/346/230/237/347/234/274-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231059-[doge-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231060-[/345/220/203/347/223/234-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231061-[/346/273/221/347/250/275-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231062-[/346/211/223call-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231063-[/350/276/243/347/234/274/347/235/233-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231064-[/345/246/231/345/225/212-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231065-[/346/215/202/350/204/270-/345/234/243/350/257/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231066-[/350/204/261/345/215/225doge].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231067-[/347/273/231/345/277/203/345/277/203].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231068-[/345/230/237/345/230/237].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231069-[/345/227/221/347/223/234/345/255/220].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231070-[/351/205/270/344/272/206].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231071-[/345/206/267].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231072-[/346/213/245/346/212/261].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231073-[/350/267/252/344/272/206].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231074-[/346/200/252/346/210/221/345/222/257].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231075-[/350/227/217/347/213/220].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231076-[/351/253/230/345/205/264].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231077-[/346/260/224/346/204/244].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231078-[/350/200/215/345/270/205].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231079-[/345/223/255/346/263/243].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231080-[/345/223/210/345/223/210].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231081-[/347/213/227/345/255/220].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231082-[/347/276/236/347/276/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231083-[/344/272/262/344/272/262].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231084-[W-/345/223/210/345/223/210].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231085-[/345/207/233/345/206/254-/347/224/237/346/260/224].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231086-[/347/205/214-/351/234/207/346/222/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231087-[/351/234/234/345/217/266-/347/226/221/351/227/256].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231088-[/346/235/245/345/217/244-/346/262/211/346/200/235].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231089-[/346/235/245/345/217/244-/345/221/206/346/273/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231090-[/346/235/245/345/217/244-/347/226/221/351/227/256].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231091-[/346/235/245/345/217/244-/351/234/207/346/222/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231092-[/346/235/245/345/217/244-/346/263/250/346/204/217].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231093-[/345/216/237/347/245/236_/345/223/207].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231094-[/345/216/237/347/245/236_/345/223/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231095-[/345/216/237/347/245/236_/345/227/257].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231096-[/345/216/237/347/245/236_/346/254/270/345/230/277].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231097-[/345/216/237/347/245/236_/345/226/235/350/214/266].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231098-[/345/216/237/347/245/236_/347/224/237/346/260/224].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231099-[/345/235/216/345/205/254/351/252/221/345/206/240/345/211/221_/345/220/203/351/270/241].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231100-[/345/235/216/345/205/254/351/252/221/345/206/240/345/211/221_/351/222/273/347/237/263].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231101-[/345/235/216/345/205/254/351/252/221/345/206/240/345/211/221_/346/227/240/350/257/255].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231102-[/345/223/215/346/214/207].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231103-[/346/224/257/346/214/201].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231104-[/344/277/235/344/275/221].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231105-[/346/212/261/346/213/263].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231106-[/350/203/234/345/210/251].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231107-[/345/212/240/346/262/271].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231108-[/351/273/221/346/264/236].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231109-[/346/234/210/351/245/274].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231110-[/347/210/261/345/277/203].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231111-[/351/224/246/351/262/244].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231112-[/347/246/217/345/210/260/344/272/206].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231113-[/351/270/241/350/205/277].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231114-[/345/271/262/346/235/257].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231115-[/350/247/206/351/242/221/345/215/253/346/230/237].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231116-[/351/233/252/350/212/261].webp +0 -0
- package/Emoticon/B/347/253/231/345/260/217/351/273/204/350/204/270/B/347/253/231117-[/346/260/264/347/250/273].webp +0 -0
- package/README.md +9 -9
- package/css/APlayer.min.css +2 -2
- package/css/index.css +7688 -7688
- package/js/APlayer.min.js +1 -1
- package/js/Meting2.min.js +109 -109
- package/js/main.js +784 -784
- package/js/tw_cn.js +124 -124
- package/js/utils.js +278 -278
- package/json/emoji.json +463 -463
- package/package.json +1 -1
- package/Emotion/QQ/s193.png +0 -0
- /package/{Emotion/Bilibili/b01.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b01.gif"} +0 -0
- /package/{Emotion/Bilibili/b02.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b02.gif"} +0 -0
- /package/{Emotion/Bilibili/b03.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b03.gif"} +0 -0
- /package/{Emotion/Bilibili/b04.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b04.gif"} +0 -0
- /package/{Emotion/Bilibili/b05.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b05.gif"} +0 -0
- /package/{Emotion/Bilibili/b06.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b06.gif"} +0 -0
- /package/{Emotion/Bilibili/b07.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b07.gif"} +0 -0
- /package/{Emotion/Bilibili/b08.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b08.gif"} +0 -0
- /package/{Emotion/Bilibili/b09.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b09.gif"} +0 -0
- /package/{Emotion/Bilibili/b10.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b10.gif"} +0 -0
- /package/{Emotion/Bilibili/b11.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b11.gif"} +0 -0
- /package/{Emotion/Bilibili/b12.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b12.gif"} +0 -0
- /package/{Emotion/Bilibili/b13.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b13.gif"} +0 -0
- /package/{Emotion/Bilibili/b14.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b14.gif"} +0 -0
- /package/{Emotion/Bilibili/b15.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b15.gif"} +0 -0
- /package/{Emotion/Bilibili/b16.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b16.gif"} +0 -0
- /package/{Emotion/Bilibili/b17.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b17.gif"} +0 -0
- /package/{Emotion/Bilibili/b18.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b18.gif"} +0 -0
- /package/{Emotion/Bilibili/b19.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b19.gif"} +0 -0
- /package/{Emotion/Bilibili/b20.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b20.gif"} +0 -0
- /package/{Emotion/Bilibili/b21.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b21.gif"} +0 -0
- /package/{Emotion/Bilibili/b22.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b22.gif"} +0 -0
- /package/{Emotion/Bilibili/b23.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b23.gif"} +0 -0
- /package/{Emotion/Bilibili/b24.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b24.gif"} +0 -0
- /package/{Emotion/Bilibili/b25.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b25.gif"} +0 -0
- /package/{Emotion/Bilibili/b26.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b26.gif"} +0 -0
- /package/{Emotion/Bilibili/b27.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b27.gif"} +0 -0
- /package/{Emotion/Bilibili/b28.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b28.gif"} +0 -0
- /package/{Emotion/Bilibili/b29.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b29.gif"} +0 -0
- /package/{Emotion/Bilibili/b30.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b30.gif"} +0 -0
- /package/{Emotion/Bilibili/b31.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b31.gif"} +0 -0
- /package/{Emotion/Bilibili/b32.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b32.gif"} +0 -0
- /package/{Emotion/Bilibili/b33.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b33.gif"} +0 -0
- /package/{Emotion/Bilibili/b34.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b34.gif"} +0 -0
- /package/{Emotion/Bilibili/b35.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b35.gif"} +0 -0
- /package/{Emotion/Bilibili/b36.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b36.gif"} +0 -0
- /package/{Emotion/Bilibili/b37.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b37.gif"} +0 -0
- /package/{Emotion/Bilibili/b38.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b38.gif"} +0 -0
- /package/{Emotion/Bilibili/b39.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b39.gif"} +0 -0
- /package/{Emotion/Bilibili/b40.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b40.gif"} +0 -0
- /package/{Emotion/Bilibili/b41.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b41.gif"} +0 -0
- /package/{Emotion/Bilibili/b42.gif → Emoticon/B/347/253/231/345/260/217/347/224/265/350/247/206/b42.gif"} +0 -0
- /package/{Emotion/QQ/s14.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-001.gif"} +0 -0
- /package/{Emotion/QQ/s1.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-002.gif"} +0 -0
- /package/{Emotion/QQ/s2.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-003.gif"} +0 -0
- /package/{Emotion/QQ/s3.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-004.gif"} +0 -0
- /package/{Emotion/QQ/s4.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-005.gif"} +0 -0
- /package/{Emotion/QQ/s6.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-006.gif"} +0 -0
- /package/{Emotion/QQ/s7.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-007.gif"} +0 -0
- /package/{Emotion/QQ/s8.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-008.gif"} +0 -0
- /package/{Emotion/QQ/s9.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-009.gif"} +0 -0
- /package/{Emotion/QQ/s10.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-010.gif"} +0 -0
- /package/{Emotion/QQ/s11.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-011.gif"} +0 -0
- /package/{Emotion/QQ/s12.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-012.gif"} +0 -0
- /package/{Emotion/QQ/s13.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-013.gif"} +0 -0
- /package/{Emotion/QQ/s0.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-014.gif"} +0 -0
- /package/{Emotion/QQ/s15.png → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-015.png"} +0 -0
- /package/{Emotion/QQ/s16.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-016.gif"} +0 -0
- /package/{Emotion/QQ/s96.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-017.gif"} +0 -0
- /package/{Emotion/QQ/s18.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-018.gif"} +0 -0
- /package/{Emotion/QQ/s19.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-019.gif"} +0 -0
- /package/{Emotion/QQ/s20.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-020.gif"} +0 -0
- /package/{Emotion/QQ/s21.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-021.gif"} +0 -0
- /package/{Emotion/QQ/s22.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-022.gif"} +0 -0
- /package/{Emotion/QQ/s23.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-023.gif"} +0 -0
- /package/{Emotion/QQ/s24.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-024.gif"} +0 -0
- /package/{Emotion/QQ/s25.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-025.gif"} +0 -0
- /package/{Emotion/QQ/s26.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-026.gif"} +0 -0
- /package/{Emotion/QQ/s27.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-027.gif"} +0 -0
- /package/{Emotion/QQ/s28.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-028.gif"} +0 -0
- /package/{Emotion/QQ/s29.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-029.gif"} +0 -0
- /package/{Emotion/QQ/s30.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-030.gif"} +0 -0
- /package/{Emotion/QQ/s31.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-031.gif"} +0 -0
- /package/{Emotion/QQ/s32.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-032.gif"} +0 -0
- /package/{Emotion/QQ/s33.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-033.gif"} +0 -0
- /package/{Emotion/QQ/s34.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-034.gif"} +0 -0
- /package/{Emotion/QQ/s35.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-035.gif"} +0 -0
- /package/{Emotion/QQ/s38.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-036.gif"} +0 -0
- /package/{Emotion/QQ/s39.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-037.gif"} +0 -0
- /package/{Emotion/QQ/s97.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-038.gif"} +0 -0
- /package/{Emotion/QQ/s98.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-039.gif"} +0 -0
- /package/{Emotion/QQ/s99.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-040.gif"} +0 -0
- /package/{Emotion/QQ/s100.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-041.gif"} +0 -0
- /package/{Emotion/QQ/s101.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-042.gif"} +0 -0
- /package/{Emotion/QQ/s102.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-043.gif"} +0 -0
- /package/{Emotion/QQ/s103.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-044.gif"} +0 -0
- /package/{Emotion/QQ/s104.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-045.gif"} +0 -0
- /package/{Emotion/QQ/s105.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-046.gif"} +0 -0
- /package/{Emotion/QQ/s106.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-047.gif"} +0 -0
- /package/{Emotion/QQ/s107.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-048.gif"} +0 -0
- /package/{Emotion/QQ/s108.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-049.gif"} +0 -0
- /package/{Emotion/QQ/s305.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-050.gif"} +0 -0
- /package/{Emotion/QQ/s109.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-051.gif"} +0 -0
- /package/{Emotion/QQ/s110.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-052.gif"} +0 -0
- /package/{Emotion/QQ/s111.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-053.gif"} +0 -0
- /package/{Emotion/QQ/s172.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-054.gif"} +0 -0
- /package/{Emotion/QQ/s182.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-055.gif"} +0 -0
- /package/{Emotion/QQ/s179.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-056.gif"} +0 -0
- /package/{Emotion/QQ/s173.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-057.gif"} +0 -0
- /package/{Emotion/QQ/s174.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-058.gif"} +0 -0
- /package/{Emotion/QQ/s212.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-059.gif"} +0 -0
- /package/{Emotion/QQ/s175.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-060.gif"} +0 -0
- /package/{Emotion/QQ/s178.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-061.gif"} +0 -0
- /package/{Emotion/QQ/s177.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-062.gif"} +0 -0
- /package/{Emotion/QQ/s180.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-063.gif"} +0 -0
- /package/{Emotion/QQ/s181.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-064.gif"} +0 -0
- /package/{Emotion/QQ/s176.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-065.gif"} +0 -0
- /package/{Emotion/QQ/s183.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-066.gif"} +0 -0
- /package/{Emotion/QQ/s262.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-067.gif"} +0 -0
- /package/{Emotion/QQ/s263.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-068.gif"} +0 -0
- /package/{Emotion/QQ/s264.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-069.gif"} +0 -0
- /package/{Emotion/QQ/s265.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-070.gif"} +0 -0
- /package/{Emotion/QQ/s266.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-071.gif"} +0 -0
- /package/{Emotion/QQ/s267.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-072.gif"} +0 -0
- /package/{Emotion/QQ/s268.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-073.gif"} +0 -0
- /package/{Emotion/QQ/s269.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-074.gif"} +0 -0
- /package/{Emotion/QQ/s270.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-075.gif"} +0 -0
- /package/{Emotion/QQ/s271.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-076.gif"} +0 -0
- /package/{Emotion/QQ/s272.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-077.gif"} +0 -0
- /package/{Emotion/QQ/s277.png → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-078.png"} +0 -0
- /package/{Emotion/QQ/s281.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-079.gif"} +0 -0
- /package/{Emotion/QQ/s282.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-080.gif"} +0 -0
- /package/{Emotion/QQ/s283.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-081.gif"} +0 -0
- /package/{Emotion/QQ/s284.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-082.gif"} +0 -0
- /package/{Emotion/QQ/s285.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-083.gif"} +0 -0
- /package/{Emotion/QQ/s293.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-084.gif"} +0 -0
- /package/{Emotion/QQ/s286.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-085.gif"} +0 -0
- /package/{Emotion/QQ/s287.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-086.gif"} +0 -0
- /package/{Emotion/QQ/s288.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-087.gif"} +0 -0
- /package/{Emotion/QQ/s289.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-088.gif"} +0 -0
- /package/{Emotion/QQ/s294.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-089.gif"} +0 -0
- /package/{Emotion/QQ/s297.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-090.gif"} +0 -0
- /package/{Emotion/QQ/s298.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-091.gif"} +0 -0
- /package/{Emotion/QQ/s299.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-092.gif"} +0 -0
- /package/{Emotion/QQ/s300.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-093.gif"} +0 -0
- /package/{Emotion/QQ/s301.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-094.gif"} +0 -0
- /package/{Emotion/QQ/s322.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-095.gif"} +0 -0
- /package/{Emotion/QQ/s323.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-096.gif"} +0 -0
- /package/{Emotion/QQ/s332.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-097.gif"} +0 -0
- /package/{Emotion/QQ/s303.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-098.gif"} +0 -0
- /package/{Emotion/QQ/s302.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-099.gif"} +0 -0
- /package/{Emotion/QQ/s295.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-100.gif"} +0 -0
- /package/{Emotion/QQ/s49.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-101.gif"} +0 -0
- /package/{Emotion/QQ/s246.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-102.gif"} +0 -0
- /package/{Emotion/QQ/s245.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-103.gif"} +0 -0
- /package/{Emotion/QQ/s247.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-104.gif"} +0 -0
- /package/{Emotion/QQ/s260.png → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-105.png"} +0 -0
- /package/{Emotion/QQ/s261.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-106.gif"} +0 -0
- /package/{Emotion/QQ/s330.png → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-107.png"} +0 -0
- /package/{Emotion/QQ/s5.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-108.gif"} +0 -0
- /package/{Emotion/QQ/s311.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-109.gif"} +0 -0
- /package/{Emotion/QQ/s312.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-110.gif"} +0 -0
- /package/{Emotion/QQ/s314.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-111.gif"} +0 -0
- /package/{Emotion/QQ/s317.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-112.gif"} +0 -0
- /package/{Emotion/QQ/s318.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-113.gif"} +0 -0
- /package/{Emotion/QQ/s319.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-114.gif"} +0 -0
- /package/{Emotion/QQ/s320.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-115.gif"} +0 -0
- /package/{Emotion/QQ/s324.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-116.gif"} +0 -0
- /package/{Emotion/QQ/s325.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-117.gif"} +0 -0
- /package/{Emotion/QQ/s337.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-118.gif"} +0 -0
- /package/{Emotion/QQ/s338.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-119.gif"} +0 -0
- /package/{Emotion/QQ/s339.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-120.gif"} +0 -0
- /package/{Emotion/QQ/s341.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-121.gif"} +0 -0
- /package/{Emotion/QQ/s342.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-122.gif"} +0 -0
- /package/{Emotion/QQ/s343.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-123.gif"} +0 -0
- /package/{Emotion/QQ/s344.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-124.gif"} +0 -0
- /package/{Emotion/QQ/s345.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-125.gif"} +0 -0
- /package/{Emotion/QQ/s346.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-126.gif"} +0 -0
- /package/{Emotion/QQ/s340.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-127.gif"} +0 -0
- /package/{Emotion/QQ/s296.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-128.gif"} +0 -0
- /package/{Emotion/QQ/s313.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-129.gif"} +0 -0
- /package/{Emotion/QQ/s316.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-130.gif"} +0 -0
- /package/{Emotion/QQ/s321.gif → Emoticon/QQ/345/260/217/351/273/204/350/204/270/QQ1-131.gif"} +0 -0
- /package/{Emotion/QQ/s220.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-001.gif"} +0 -0
- /package/{Emotion/QQ/s228.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-002.gif"} +0 -0
- /package/{Emotion/QQ/s234.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-003.gif"} +0 -0
- /package/{Emotion/QQ/s236.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-004.gif"} +0 -0
- /package/{Emotion/QQ/s242.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-005.gif"} +0 -0
- /package/{Emotion/QQ/s279.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-006.gif"} +0 -0
- /package/{Emotion/QQ/s280.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-007.gif"} +0 -0
- /package/{Emotion/QQ/s291.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-008.gif"} +0 -0
- /package/{Emotion/QQ/s308.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-009.gif"} +0 -0
- /package/{Emotion/QQ/s309.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-010.gif"} +0 -0
- /package/{Emotion/QQ/s310.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-011.gif"} +0 -0
- /package/{Emotion/QQ/s290.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-012.gif"} +0 -0
- /package/{Emotion/QQ/s292.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-013.gif"} +0 -0
- /package/{Emotion/QQ/s226.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-014.gif"} +0 -0
- /package/{Emotion/QQ/s215.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-015.gif"} +0 -0
- /package/{Emotion/QQ/s237.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-016.gif"} +0 -0
- /package/{Emotion/QQ/s214.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-017.gif"} +0 -0
- /package/{Emotion/QQ/s235.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-018.gif"} +0 -0
- /package/{Emotion/QQ/s222.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-019.gif"} +0 -0
- /package/{Emotion/QQ/s217.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-020.gif"} +0 -0
- /package/{Emotion/QQ/s221.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-021.gif"} +0 -0
- /package/{Emotion/QQ/s225.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-022.gif"} +0 -0
- /package/{Emotion/QQ/s241.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-023.gif"} +0 -0
- /package/{Emotion/QQ/s227.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-024.gif"} +0 -0
- /package/{Emotion/QQ/s238.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-025.gif"} +0 -0
- /package/{Emotion/QQ/s240.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-026.gif"} +0 -0
- /package/{Emotion/QQ/s229.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-027.gif"} +0 -0
- /package/{Emotion/QQ/s216.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-028.gif"} +0 -0
- /package/{Emotion/QQ/s218.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-029.gif"} +0 -0
- /package/{Emotion/QQ/s233.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-030.gif"} +0 -0
- /package/{Emotion/QQ/s219.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-031.gif"} +0 -0
- /package/{Emotion/QQ/s244.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-032.gif"} +0 -0
- /package/{Emotion/QQ/s232.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-033.gif"} +0 -0
- /package/{Emotion/QQ/s243.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-034.gif"} +0 -0
- /package/{Emotion/QQ/s223.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-035.gif"} +0 -0
- /package/{Emotion/QQ/s231.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-036.gif"} +0 -0
- /package/{Emotion/QQ/s224.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-037.gif"} +0 -0
- /package/{Emotion/QQ/s278.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-038.gif"} +0 -0
- /package/{Emotion/QQ/s239.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-039.gif"} +0 -0
- /package/{Emotion/QQ/s230.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-040.gif"} +0 -0
- /package/{Emotion/QQ/s201.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-041.gif"} +0 -0
- /package/{Emotion/QQ/s203.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-042.gif"} +0 -0
- /package/{Emotion/QQ/s204.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-043.gif"} +0 -0
- /package/{Emotion/QQ/s202.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-044.gif"} +0 -0
- /package/{Emotion/QQ/s200.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-045.gif"} +0 -0
- /package/{Emotion/QQ/s41.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-046.png"} +0 -0
- /package/{Emotion/QQ/s134.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-047.gif"} +0 -0
- /package/{Emotion/QQ/s42.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-048.gif"} +0 -0
- /package/{Emotion/QQ/s43.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-049.gif"} +0 -0
- /package/{Emotion/QQ/s86.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-050.gif"} +0 -0
- /package/{Emotion/QQ/s129.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-051.gif"} +0 -0
- /package/{Emotion/QQ/s85.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-052.png"} +0 -0
- /package/{Emotion/QQ/s125.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-053.gif"} +0 -0
- /package/{Emotion/QQ/s126.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-054.gif"} +0 -0
- /package/{Emotion/QQ/s127.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-055.gif"} +0 -0
- /package/{Emotion/QQ/s128.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-056.gif"} +0 -0
- /package/{Emotion/QQ/s130.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-057.gif"} +0 -0
- /package/{Emotion/QQ/s131.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-058.gif"} +0 -0
- /package/{Emotion/QQ/s132.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-059.gif"} +0 -0
- /package/{Emotion/QQ/s133.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-060.gif"} +0 -0
- /package/{Emotion/QQ/s135.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-061.gif"} +0 -0
- /package/{Emotion/QQ/s194.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-062.gif"} +0 -0
- /package/{Emotion/QQ/s195.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-063.gif"} +0 -0
- /package/{Emotion/QQ/s196.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-064.gif"} +0 -0
- /package/{Emotion/QQ/s197.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-065.gif"} +0 -0
- /package/{Emotion/QQ/s213.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-066.gif"} +0 -0
- /package/{Emotion/QQ/s199.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-067.gif"} +0 -0
- /package/{Emotion/QQ/s198.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-068.gif"} +0 -0
- /package/{Emotion/QQ/s206.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-069.gif"} +0 -0
- /package/{Emotion/QQ/s205.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-070.gif"} +0 -0
- /package/{Emotion/QQ/s207.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-071.gif"} +0 -0
- /package/{Emotion/QQ/s208.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-072.gif"} +0 -0
- /package/{Emotion/QQ/s209.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-073.gif"} +0 -0
- /package/{Emotion/QQ/s210.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-074.gif"} +0 -0
- /package/{Emotion/QQ/s211.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-075.gif"} +0 -0
- /package/{Emotion/QQ/s76.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-076.gif"} +0 -0
- /package/{Emotion/QQ/s124.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-077.png"} +0 -0
- /package/{Emotion/QQ/s118.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-078.gif"} +0 -0
- /package/{Emotion/QQ/s78.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-079.gif"} +0 -0
- /package/{Emotion/QQ/s119.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-080.gif"} +0 -0
- /package/{Emotion/QQ/s79.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-081.gif"} +0 -0
- /package/{Emotion/QQ/s120.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-082.gif"} +0 -0
- /package/{Emotion/QQ/s121.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-083.gif"} +0 -0
- /package/{Emotion/QQ/s77.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-084.gif"} +0 -0
- /package/{Emotion/QQ/s122.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-085.gif"} +0 -0
- /package/{Emotion/QQ/s123.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-086.gif"} +0 -0
- /package/{Emotion/QQ/s326.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-087.gif"} +0 -0
- /package/{Emotion/QQ/s53.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-088.gif"} +0 -0
- /package/{Emotion/QQ/s137.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-089.png"} +0 -0
- /package/{Emotion/QQ/s333.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-090.png"} +0 -0
- /package/{Emotion/QQ/s138.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-091.png"} +0 -0
- /package/{Emotion/QQ/s136.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-092.png"} +0 -0
- /package/{Emotion/QQ/s144.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-093.png"} +0 -0
- /package/{Emotion/QQ/s69.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-094.png"} +0 -0
- /package/{Emotion/QQ/s192.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-095.gif"} +0 -0
- /package/{Emotion/QQ/s145.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-096.png"} +0 -0
- /package/{Emotion/QQ/s273.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-097.png"} +0 -0
- /package/{Emotion/QQ/s185.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-098.gif"} +0 -0
- /package/{Emotion/QQ/s187.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-099.gif"} +0 -0
- /package/{Emotion/QQ/s36.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-100.png"} +0 -0
- /package/{Emotion/QQ/s37.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-101.png"} +0 -0
- /package/{Emotion/QQ/s307.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-102.png"} +0 -0
- /package/{Emotion/QQ/s306.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-103.png"} +0 -0
- /package/{Emotion/QQ/s336.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-104.png"} +0 -0
- /package/{Emotion/QQ/s334.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-105.png"} +0 -0
- /package/{Emotion/QQ/s347.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-106.png"} +0 -0
- /package/{Emotion/QQ/s348.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-107.png"} +0 -0
- /package/{Emotion/QQ/s66.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-108.png"} +0 -0
- /package/{Emotion/QQ/s67.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-109.gif"} +0 -0
- /package/{Emotion/QQ/s63.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-110.png"} +0 -0
- /package/{Emotion/QQ/s64.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-111.png"} +0 -0
- /package/{Emotion/QQ/s146.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-112.png"} +0 -0
- /package/{Emotion/QQ/s116.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-113.gif"} +0 -0
- /package/{Emotion/QQ/s60.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-114.gif"} +0 -0
- /package/{Emotion/QQ/s75.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-115.png"} +0 -0
- /package/{Emotion/QQ/s74.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-116.png"} +0 -0
- /package/{Emotion/QQ/s54.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-117.png"} +0 -0
- /package/{Emotion/QQ/s156.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-118.png"} +0 -0
- /package/{Emotion/QQ/s157.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-119.png"} +0 -0
- /package/{Emotion/QQ/s46.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-120.png"} +0 -0
- /package/{Emotion/QQ/s112.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-121.gif"} +0 -0
- /package/{Emotion/QQ/s56.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-122.gif"} +0 -0
- /package/{Emotion/QQ/s169.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-123.png"} +0 -0
- /package/{Emotion/QQ/s171.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-124.gif"} +0 -0
- /package/{Emotion/QQ/s59.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-125.gif"} +0 -0
- /package/{Emotion/QQ/s147.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-126.png"} +0 -0
- /package/{Emotion/QQ/s89.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-127.png"} +0 -0
- /package/{Emotion/QQ/s61.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-128.png"} +0 -0
- /package/{Emotion/QQ/s113.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-129.gif"} +0 -0
- /package/{Emotion/QQ/s149.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-130.png"} +0 -0
- /package/{Emotion/QQ/s150.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-131.png"} +0 -0
- /package/{Emotion/QQ/s191.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-132.gif"} +0 -0
- /package/{Emotion/QQ/s188.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-133.gif"} +0 -0
- /package/{Emotion/QQ/s186.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-134.gif"} +0 -0
- /package/{Emotion/QQ/s55.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-135.png"} +0 -0
- /package/{Emotion/QQ/s114.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-136.gif"} +0 -0
- /package/{Emotion/QQ/s57.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-137.gif"} +0 -0
- /package/{Emotion/QQ/s115.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-138.gif"} +0 -0
- /package/{Emotion/QQ/s117.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-139.gif"} +0 -0
- /package/{Emotion/QQ/s140.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-140.png"} +0 -0
- /package/{Emotion/QQ/s141.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-141.png"} +0 -0
- /package/{Emotion/QQ/s142.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-142.png"} +0 -0
- /package/{Emotion/QQ/s143.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-143.png"} +0 -0
- /package/{Emotion/QQ/s148.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-144.png"} +0 -0
- /package/{Emotion/QQ/s151.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-145.png"} +0 -0
- /package/{Emotion/QQ/s152.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-146.png"} +0 -0
- /package/{Emotion/QQ/s153.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-147.png"} +0 -0
- /package/{Emotion/QQ/s154.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-148.png"} +0 -0
- /package/{Emotion/QQ/s155.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-149.png"} +0 -0
- /package/{Emotion/QQ/s158.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-150.png"} +0 -0
- /package/{Emotion/QQ/s159.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-151.png"} +0 -0
- /package/{Emotion/QQ/s160.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-152.png"} +0 -0
- /package/{Emotion/QQ/s161.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-153.png"} +0 -0
- /package/{Emotion/QQ/s162.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-154.png"} +0 -0
- /package/{Emotion/QQ/s163.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-155.png"} +0 -0
- /package/{Emotion/QQ/s164.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-156.png"} +0 -0
- /package/{Emotion/QQ/s165.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-157.png"} +0 -0
- /package/{Emotion/QQ/s166.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-158.png"} +0 -0
- /package/{Emotion/QQ/s167.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-159.png"} +0 -0
- /package/{Emotion/QQ/s168.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-160.png"} +0 -0
- /package/{Emotion/QQ/s170.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-161.png"} +0 -0
- /package/{Emotion/QQ/s184.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-162.gif"} +0 -0
- /package/{Emotion/QQ/s189.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-163.gif"} +0 -0
- /package/{Emotion/QQ/s190.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-164.gif"} +0 -0
- /package/{Emotion/QQ/s274.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-165.png"} +0 -0
- /package/{Emotion/QQ/s276.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-166.png"} +0 -0
- /package/{Emotion/QQ/s304.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-167.gif"} +0 -0
- /package/{Emotion/QQ/s315.gif → Emoticon/QQ/346/231/256/351/200/232/QQ2-168.gif"} +0 -0
- /package/{Emotion/QQ/s327.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-169.png"} +0 -0
- /package/{Emotion/QQ/s328.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-170.png"} +0 -0
- /package/{Emotion/QQ/s329.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-171.png"} +0 -0
- /package/{Emotion/QQ/s331.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-172.png"} +0 -0
- /package/{Emotion/QQ/s335.png → Emoticon/QQ/346/231/256/351/200/232/QQ2-173.png"} +0 -0
package/js/main.js
CHANGED
|
@@ -1,784 +1,784 @@
|
|
|
1
|
-
document.addEventListener('DOMContentLoaded', function () {
|
|
2
|
-
let blogNameWidth, menusWidth, searchWidth, $nav
|
|
3
|
-
let mobileSidebarOpen = false
|
|
4
|
-
|
|
5
|
-
const adjustMenu = (init) => {
|
|
6
|
-
if (init) {
|
|
7
|
-
blogNameWidth = document.getElementById('site-name').offsetWidth
|
|
8
|
-
const $menusEle = document.querySelectorAll('#menus .menus_item')
|
|
9
|
-
menusWidth = 0
|
|
10
|
-
$menusEle.length && $menusEle.forEach(i => { menusWidth += i.offsetWidth })
|
|
11
|
-
const $searchEle = document.querySelector('#search-button')
|
|
12
|
-
searchWidth = $searchEle ? $searchEle.offsetWidth : 0
|
|
13
|
-
$nav = document.getElementById('nav')
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
let hideMenuIndex = ''
|
|
17
|
-
if (window.innerWidth <= 768) hideMenuIndex = true
|
|
18
|
-
else hideMenuIndex = blogNameWidth + menusWidth + searchWidth > $nav.offsetWidth - 120
|
|
19
|
-
|
|
20
|
-
if (hideMenuIndex) {
|
|
21
|
-
$nav.classList.add('hide-menu')
|
|
22
|
-
} else {
|
|
23
|
-
$nav.classList.remove('hide-menu')
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// 初始化header
|
|
28
|
-
const initAdjust = () => {
|
|
29
|
-
adjustMenu(true)
|
|
30
|
-
$nav.classList.add('show')
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// sidebar menus
|
|
34
|
-
const sidebarFn = {
|
|
35
|
-
open: () => {
|
|
36
|
-
btf.sidebarPaddingR()
|
|
37
|
-
document.body.style.overflow = 'hidden'
|
|
38
|
-
btf.animateIn(document.getElementById('menu-mask'), 'to_show 0.5s')
|
|
39
|
-
document.getElementById('sidebar-menus').classList.add('open')
|
|
40
|
-
mobileSidebarOpen = true
|
|
41
|
-
},
|
|
42
|
-
close: () => {
|
|
43
|
-
const $body = document.body
|
|
44
|
-
$body.style.overflow = ''
|
|
45
|
-
$body.style.paddingRight = ''
|
|
46
|
-
btf.animateOut(document.getElementById('menu-mask'), 'to_hide 0.5s')
|
|
47
|
-
document.getElementById('sidebar-menus').classList.remove('open')
|
|
48
|
-
mobileSidebarOpen = false
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* 首頁top_img底下的箭頭
|
|
54
|
-
*/
|
|
55
|
-
const scrollDownInIndex = () => {
|
|
56
|
-
const $scrollDownEle = document.getElementById('scroll-down')
|
|
57
|
-
$scrollDownEle && $scrollDownEle.addEventListener('click', function () {
|
|
58
|
-
btf.scrollToDest(document.getElementById('content-inner').offsetTop, 300)
|
|
59
|
-
})
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* 代碼
|
|
64
|
-
* 只適用於Hexo默認的代碼渲染
|
|
65
|
-
*/
|
|
66
|
-
const addHighlightTool = function () {
|
|
67
|
-
const highLight = GLOBAL_CONFIG.highlight
|
|
68
|
-
if (!highLight) return
|
|
69
|
-
|
|
70
|
-
const isHighlightCopy = highLight.highlightCopy
|
|
71
|
-
const isHighlightLang = highLight.highlightLang
|
|
72
|
-
const isHighlightShrink = GLOBAL_CONFIG_SITE.isHighlightShrink
|
|
73
|
-
const highlightHeightLimit = highLight.highlightHeightLimit
|
|
74
|
-
const isShowTool = isHighlightCopy || isHighlightLang || isHighlightShrink !== undefined
|
|
75
|
-
const $figureHighlight = highLight.plugin === 'highlighjs' ? document.querySelectorAll('figure.highlight') : document.querySelectorAll('pre[class*="language-"]')
|
|
76
|
-
|
|
77
|
-
if (!((isShowTool || highlightHeightLimit) && $figureHighlight.length)) return
|
|
78
|
-
|
|
79
|
-
const isPrismjs = highLight.plugin === 'prismjs'
|
|
80
|
-
|
|
81
|
-
let highlightShrinkEle = ''
|
|
82
|
-
let highlightCopyEle = ''
|
|
83
|
-
const highlightShrinkClass = isHighlightShrink === true ? 'closed' : ''
|
|
84
|
-
|
|
85
|
-
if (isHighlightShrink !== undefined) {
|
|
86
|
-
highlightShrinkEle = `<i class="fas fa-angle-down expand ${highlightShrinkClass}"></i>`
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (isHighlightCopy) {
|
|
90
|
-
highlightCopyEle = '<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>'
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
const copy = (text, ctx) => {
|
|
94
|
-
if (document.queryCommandSupported && document.queryCommandSupported('copy')) {
|
|
95
|
-
document.execCommand('copy')
|
|
96
|
-
if (GLOBAL_CONFIG.Snackbar !== undefined) {
|
|
97
|
-
btf.snackbarShow(GLOBAL_CONFIG.copy.success)
|
|
98
|
-
} else {
|
|
99
|
-
const prevEle = ctx.previousElementSibling
|
|
100
|
-
prevEle.innerText = GLOBAL_CONFIG.copy.success
|
|
101
|
-
prevEle.style.opacity = 1
|
|
102
|
-
setTimeout(() => { prevEle.style.opacity = 0 }, 700)
|
|
103
|
-
}
|
|
104
|
-
if(set_notice.checked) tools.showMessage("复制成功!转载请注明来源!","success",2)
|
|
105
|
-
} else {
|
|
106
|
-
if (GLOBAL_CONFIG.Snackbar !== undefined) {
|
|
107
|
-
btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport)
|
|
108
|
-
} else {
|
|
109
|
-
ctx.previousElementSibling.innerText = GLOBAL_CONFIG.copy.noSupport
|
|
110
|
-
}
|
|
111
|
-
if(set_notice.checked) tools.showMessage("Error!复制失败!","error",2)
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// click events
|
|
116
|
-
const highlightCopyFn = (ele) => {
|
|
117
|
-
const $buttonParent = ele.parentNode
|
|
118
|
-
$buttonParent.classList.add('copy-true')
|
|
119
|
-
const selection = window.getSelection()
|
|
120
|
-
const range = document.createRange()
|
|
121
|
-
if (isPrismjs) range.selectNodeContents($buttonParent.querySelectorAll('pre code')[0])
|
|
122
|
-
else range.selectNodeContents($buttonParent.querySelectorAll('table .code pre')[0])
|
|
123
|
-
selection.removeAllRanges()
|
|
124
|
-
selection.addRange(range)
|
|
125
|
-
const text = selection.toString()
|
|
126
|
-
copy(text, ele.lastChild)
|
|
127
|
-
selection.removeAllRanges()
|
|
128
|
-
$buttonParent.classList.remove('copy-true')
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const highlightShrinkFn = (ele) => {
|
|
132
|
-
const $nextEle = [...ele.parentNode.children].slice(1)
|
|
133
|
-
ele.firstChild.classList.toggle('closed')
|
|
134
|
-
if (btf.isHidden($nextEle[$nextEle.length - 1])) {
|
|
135
|
-
$nextEle.forEach(e => { e.style.display = 'block' })
|
|
136
|
-
} else {
|
|
137
|
-
$nextEle.forEach(e => { e.style.display = 'none' })
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const highlightToolsFn = function (e) {
|
|
142
|
-
const $target = e.target.classList
|
|
143
|
-
if ($target.contains('expand')) highlightShrinkFn(this)
|
|
144
|
-
else if ($target.contains('copy-button')) highlightCopyFn(this)
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const expandCode = function () {
|
|
148
|
-
this.classList.toggle('expand-done')
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function createEle (lang, item, service) {
|
|
152
|
-
const fragment = document.createDocumentFragment()
|
|
153
|
-
|
|
154
|
-
if (isShowTool) {
|
|
155
|
-
const hlTools = document.createElement('div')
|
|
156
|
-
hlTools.className = `highlight-tools ${highlightShrinkClass}`
|
|
157
|
-
hlTools.innerHTML = highlightShrinkEle + lang + highlightCopyEle
|
|
158
|
-
hlTools.addEventListener('click', highlightToolsFn)
|
|
159
|
-
fragment.appendChild(hlTools)
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
if (highlightHeightLimit && item.offsetHeight > highlightHeightLimit + 30) {
|
|
163
|
-
const ele = document.createElement('div')
|
|
164
|
-
ele.className = 'code-expand-btn'
|
|
165
|
-
ele.innerHTML = '<i class="fas fa-angle-double-down"></i>'
|
|
166
|
-
ele.addEventListener('click', expandCode)
|
|
167
|
-
fragment.appendChild(ele)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
if (service === 'hl') {
|
|
171
|
-
item.insertBefore(fragment, item.firstChild)
|
|
172
|
-
} else {
|
|
173
|
-
item.parentNode.insertBefore(fragment, item)
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if (isHighlightLang) {
|
|
178
|
-
if (isPrismjs) {
|
|
179
|
-
$figureHighlight.forEach(function (item) {
|
|
180
|
-
const langName = item.getAttribute('data-language') ? item.getAttribute('data-language') : 'Code'
|
|
181
|
-
const highlightLangEle = `<div class="code-lang">${langName}</div>`
|
|
182
|
-
btf.wrap(item, 'figure', { class: 'highlight' })
|
|
183
|
-
createEle(highlightLangEle, item)
|
|
184
|
-
})
|
|
185
|
-
} else {
|
|
186
|
-
$figureHighlight.forEach(function (item) {
|
|
187
|
-
let langName = item.getAttribute('class').split(' ')[1]
|
|
188
|
-
if (langName === 'plain' || langName === undefined) langName = 'Code'
|
|
189
|
-
const highlightLangEle = `<div class="code-lang">${langName}</div>`
|
|
190
|
-
createEle(highlightLangEle, item, 'hl')
|
|
191
|
-
})
|
|
192
|
-
}
|
|
193
|
-
} else {
|
|
194
|
-
if (isPrismjs) {
|
|
195
|
-
$figureHighlight.forEach(function (item) {
|
|
196
|
-
btf.wrap(item, 'figure', { class: 'highlight' })
|
|
197
|
-
createEle('', item)
|
|
198
|
-
})
|
|
199
|
-
} else {
|
|
200
|
-
$figureHighlight.forEach(function (item) {
|
|
201
|
-
createEle('', item, 'hl')
|
|
202
|
-
})
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* PhotoFigcaption
|
|
209
|
-
*/
|
|
210
|
-
function addPhotoFigcaption () {
|
|
211
|
-
document.querySelectorAll('#article-container img').forEach(function (item) {
|
|
212
|
-
const parentEle = item.parentNode
|
|
213
|
-
const altValue = item.title || item.alt
|
|
214
|
-
if (altValue && !parentEle.parentNode.classList.contains('justified-gallery')) {
|
|
215
|
-
const ele = document.createElement('div')
|
|
216
|
-
ele.className = 'img-alt is-center'
|
|
217
|
-
ele.textContent = altValue
|
|
218
|
-
parentEle.insertBefore(ele, item.nextSibling)
|
|
219
|
-
}
|
|
220
|
-
})
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Lightbox
|
|
225
|
-
*/
|
|
226
|
-
const runLightbox = () => {
|
|
227
|
-
btf.loadLightbox(document.querySelectorAll('#article-container img:not(.no-lightbox)'))
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* justified-gallery 圖庫排版
|
|
232
|
-
*/
|
|
233
|
-
const runJustifiedGallery = function (ele) {
|
|
234
|
-
ele.forEach(item => {
|
|
235
|
-
const $imgList = item.querySelectorAll('img')
|
|
236
|
-
|
|
237
|
-
$imgList.forEach(i => {
|
|
238
|
-
const dataLazySrc = i.getAttribute('data-lazy-src')
|
|
239
|
-
if (dataLazySrc) i.src = dataLazySrc
|
|
240
|
-
btf.wrap(i, 'div', { class: 'fj-gallery-item' })
|
|
241
|
-
})
|
|
242
|
-
})
|
|
243
|
-
|
|
244
|
-
if (window.fjGallery) {
|
|
245
|
-
setTimeout(() => { btf.initJustifiedGallery(ele) }, 100)
|
|
246
|
-
return
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
const newEle = document.createElement('link')
|
|
250
|
-
newEle.rel = 'stylesheet'
|
|
251
|
-
newEle.href = GLOBAL_CONFIG.source.justifiedGallery.css
|
|
252
|
-
document.body.appendChild(newEle)
|
|
253
|
-
getScript(`${GLOBAL_CONFIG.source.justifiedGallery.js}`).then(() => { btf.initJustifiedGallery(ele) })
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* 滾動處理
|
|
258
|
-
*/
|
|
259
|
-
const scrollFn = function () {
|
|
260
|
-
const $rightside = document.getElementById('rightside')
|
|
261
|
-
const innerHeight = window.innerHeight + 56
|
|
262
|
-
const scrollHeight = document.body.scrollHeight + 400
|
|
263
|
-
// console.log("document.body.scrollHeight: " + scrollHeight)
|
|
264
|
-
// console.log("window.innerHeight: " + (innerHeight - 56))
|
|
265
|
-
// 當滾動條小于 56 的時候
|
|
266
|
-
if (scrollHeight <= innerHeight) {
|
|
267
|
-
$rightside.style.cssText = 'opacity: 1; transform: translateX(-88px)'
|
|
268
|
-
return
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// find the scroll direction
|
|
272
|
-
function scrollDirection (currentTop) {
|
|
273
|
-
const result = currentTop > initTop // true is down & false is up
|
|
274
|
-
initTop = currentTop
|
|
275
|
-
return result
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
let initTop = 0
|
|
279
|
-
let isChatShow = true
|
|
280
|
-
const $header = document.getElementById('page-header')
|
|
281
|
-
const isChatBtnHide = typeof chatBtnHide === 'function'
|
|
282
|
-
const isChatBtnShow = typeof chatBtnShow === 'function'
|
|
283
|
-
|
|
284
|
-
const scrollTask = btf.throttle(() => {
|
|
285
|
-
const currentTop = window.scrollY || document.documentElement.scrollTop
|
|
286
|
-
const isDown = scrollDirection(currentTop)
|
|
287
|
-
if (currentTop > 56) {
|
|
288
|
-
$header.classList.add('is-top-bar')
|
|
289
|
-
if (isDown) {
|
|
290
|
-
if ($header.classList.contains('nav-visible')) $header.classList.remove('nav-visible')
|
|
291
|
-
if (isChatBtnShow && isChatShow === true) {
|
|
292
|
-
chatBtnHide()
|
|
293
|
-
isChatShow = false
|
|
294
|
-
}
|
|
295
|
-
} else {
|
|
296
|
-
if (!$header.classList.contains('nav-visible')) $header.classList.add('nav-visible')
|
|
297
|
-
if (isChatBtnHide && isChatShow === false) {
|
|
298
|
-
chatBtnShow()
|
|
299
|
-
isChatShow = true
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
$header.classList.add('nav-fixed')
|
|
303
|
-
if (window.getComputedStyle($rightside).getPropertyValue('opacity') === '0') {
|
|
304
|
-
$rightside.style.cssText = 'opacity: 1; transform: translateX(-88px)'
|
|
305
|
-
}
|
|
306
|
-
} else {
|
|
307
|
-
if (currentTop === 0) {
|
|
308
|
-
// $header.classList.remove('nav-fixed', 'nav-visible')
|
|
309
|
-
$header.classList.remove('is-top-bar')
|
|
310
|
-
$header.classList.add('nav-visible')
|
|
311
|
-
}
|
|
312
|
-
$rightside.style.cssText = "opacity: ''; transform: ''"
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
if (scrollHeight <= innerHeight) {
|
|
316
|
-
$rightside.style.cssText = 'opacity: 1; transform: translateX(-88px)'
|
|
317
|
-
}
|
|
318
|
-
}, 200)
|
|
319
|
-
|
|
320
|
-
window.scrollCollect = scrollTask
|
|
321
|
-
window.addEventListener('scroll', scrollCollect)
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* toc,anchor
|
|
326
|
-
*/
|
|
327
|
-
const scrollFnToDo = function () {
|
|
328
|
-
const isToc = GLOBAL_CONFIG_SITE.isToc
|
|
329
|
-
const isAnchor = GLOBAL_CONFIG.isAnchor
|
|
330
|
-
const $article = document.getElementById('article-container')
|
|
331
|
-
|
|
332
|
-
if (!($article && (isToc || isAnchor))) return
|
|
333
|
-
|
|
334
|
-
let $tocLink, $cardToc, scrollPercent, autoScrollToc, isExpand
|
|
335
|
-
|
|
336
|
-
if (isToc) {
|
|
337
|
-
const $cardTocLayout = document.getElementById('card-toc')
|
|
338
|
-
$cardToc = $cardTocLayout.getElementsByClassName('toc-content')[0]
|
|
339
|
-
$tocLink = $cardToc.querySelectorAll('.toc-link')
|
|
340
|
-
const $tocPercentage = $cardTocLayout.querySelector('.toc-percentage')
|
|
341
|
-
isExpand = $cardToc.classList.contains('is-expand')
|
|
342
|
-
|
|
343
|
-
scrollPercent = currentTop => {
|
|
344
|
-
const docHeight = $article.clientHeight
|
|
345
|
-
const winHeight = document.documentElement.clientHeight
|
|
346
|
-
const headerHeight = $article.offsetTop
|
|
347
|
-
const contentMath = (docHeight > winHeight) ? (docHeight - winHeight) : (document.documentElement.scrollHeight - winHeight)
|
|
348
|
-
const scrollPercent = (currentTop - headerHeight) / (contentMath)
|
|
349
|
-
const scrollPercentRounded = Math.round(scrollPercent * 100)
|
|
350
|
-
const percentage = (scrollPercentRounded > 100) ? 100 : (scrollPercentRounded <= 0) ? 0 : scrollPercentRounded
|
|
351
|
-
$tocPercentage.textContent = percentage
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
window.mobileToc = {
|
|
355
|
-
open: () => {
|
|
356
|
-
$cardTocLayout.style.cssText = 'animation: toc-open .3s; opacity: 1; right: 55px'
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
close: () => {
|
|
360
|
-
$cardTocLayout.style.animation = 'toc-close .2s'
|
|
361
|
-
setTimeout(() => {
|
|
362
|
-
$cardTocLayout.style.cssText = "opacity:''; animation: ''; right: ''"
|
|
363
|
-
}, 100)
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// toc元素點擊
|
|
368
|
-
$cardToc.addEventListener('click', e => {
|
|
369
|
-
e.preventDefault()
|
|
370
|
-
const target = e.target.classList
|
|
371
|
-
if (target.contains('toc-content')) return
|
|
372
|
-
const $target = target.contains('toc-link')
|
|
373
|
-
? e.target
|
|
374
|
-
: e.target.parentElement
|
|
375
|
-
btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI($target.getAttribute('href')).replace('#', ''))), 300)
|
|
376
|
-
if (window.innerWidth < 900) {
|
|
377
|
-
window.mobileToc.close()
|
|
378
|
-
}
|
|
379
|
-
})
|
|
380
|
-
|
|
381
|
-
autoScrollToc = item => {
|
|
382
|
-
const activePosition = item.getBoundingClientRect().top
|
|
383
|
-
const sidebarScrollTop = $cardToc.scrollTop
|
|
384
|
-
if (activePosition > (document.documentElement.clientHeight - 100)) {
|
|
385
|
-
$cardToc.scrollTop = sidebarScrollTop + 150
|
|
386
|
-
}
|
|
387
|
-
if (activePosition < 100) {
|
|
388
|
-
$cardToc.scrollTop = sidebarScrollTop - 150
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
// find head position & add active class
|
|
394
|
-
const list = $article.querySelectorAll('h1,h2,h3,h4,h5,h6')
|
|
395
|
-
let detectItem = ''
|
|
396
|
-
const findHeadPosition = function (top) {
|
|
397
|
-
if (top === 0) {
|
|
398
|
-
return false
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
let currentId = ''
|
|
402
|
-
let currentIndex = ''
|
|
403
|
-
|
|
404
|
-
list.forEach(function (ele, index) {
|
|
405
|
-
if (top > btf.getEleTop(ele) - 80) {
|
|
406
|
-
const id = ele.id
|
|
407
|
-
currentId = id ? '#' + encodeURI(id) : ''
|
|
408
|
-
currentIndex = index
|
|
409
|
-
}
|
|
410
|
-
})
|
|
411
|
-
|
|
412
|
-
if (detectItem === currentIndex) return
|
|
413
|
-
|
|
414
|
-
if (isAnchor) btf.updateAnchor(currentId)
|
|
415
|
-
|
|
416
|
-
detectItem = currentIndex
|
|
417
|
-
|
|
418
|
-
if (isToc) {
|
|
419
|
-
$cardToc.querySelectorAll('.active').forEach(i => { i.classList.remove('active') })
|
|
420
|
-
|
|
421
|
-
if (currentId === '') {
|
|
422
|
-
return
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
const currentActive = $tocLink[currentIndex]
|
|
426
|
-
currentActive.classList.add('active')
|
|
427
|
-
|
|
428
|
-
setTimeout(() => {
|
|
429
|
-
autoScrollToc(currentActive)
|
|
430
|
-
}, 0)
|
|
431
|
-
|
|
432
|
-
if (isExpand) return
|
|
433
|
-
let parent = currentActive.parentNode
|
|
434
|
-
|
|
435
|
-
for (; !parent.matches('.toc'); parent = parent.parentNode) {
|
|
436
|
-
if (parent.matches('li')) parent.classList.add('active')
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
// main of scroll
|
|
442
|
-
window.tocScrollFn = function () {
|
|
443
|
-
return btf.throttle(function () {
|
|
444
|
-
const currentTop = window.scrollY || document.documentElement.scrollTop
|
|
445
|
-
isToc && scrollPercent(currentTop)
|
|
446
|
-
findHeadPosition(currentTop)
|
|
447
|
-
}, 100)()
|
|
448
|
-
}
|
|
449
|
-
window.addEventListener('scroll', tocScrollFn)
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* Rightside
|
|
454
|
-
*/
|
|
455
|
-
const rightSideFn = {
|
|
456
|
-
switchReadMode: () => { // read-mode
|
|
457
|
-
const $body = document.body
|
|
458
|
-
$body.classList.add('read-mode')
|
|
459
|
-
const newEle = document.createElement('button')
|
|
460
|
-
newEle.type = 'button'
|
|
461
|
-
newEle.className = 'fas fa-sign-out-alt exit-readmode'
|
|
462
|
-
$body.appendChild(newEle)
|
|
463
|
-
|
|
464
|
-
function clickFn () {
|
|
465
|
-
$body.classList.remove('read-mode')
|
|
466
|
-
newEle.remove()
|
|
467
|
-
newEle.removeEventListener('click', clickFn)
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
newEle.addEventListener('click', clickFn)
|
|
471
|
-
},
|
|
472
|
-
switchDarkMode: () => { // Switch Between Light And Dark Mode
|
|
473
|
-
const nowMode = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light'
|
|
474
|
-
if (nowMode === 'light') {
|
|
475
|
-
activateDarkMode()
|
|
476
|
-
saveToLocal.set('theme', 'dark', 2)
|
|
477
|
-
GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)
|
|
478
|
-
} else {
|
|
479
|
-
activateLightMode()
|
|
480
|
-
saveToLocal.set('theme', 'light', 2)
|
|
481
|
-
GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)
|
|
482
|
-
}
|
|
483
|
-
// handle some cases
|
|
484
|
-
typeof utterancesTheme === 'function' && utterancesTheme()
|
|
485
|
-
typeof changeGiscusTheme === 'function' && changeGiscusTheme()
|
|
486
|
-
typeof FB === 'object' && window.loadFBComment && window.loadFBComment()
|
|
487
|
-
typeof runMermaid === 'function' && window.runMermaid()
|
|
488
|
-
},
|
|
489
|
-
showOrHideBtn: (e) => { // rightside 點擊設置 按鈕 展開
|
|
490
|
-
const rightsideHideClassList = document.getElementById('rightside-config-hide').classList
|
|
491
|
-
rightsideHideClassList.toggle('show')
|
|
492
|
-
if (e.classList.contains('show')) {
|
|
493
|
-
rightsideHideClassList.add('status')
|
|
494
|
-
setTimeout(() => {
|
|
495
|
-
rightsideHideClassList.remove('status')
|
|
496
|
-
}, 300)
|
|
497
|
-
}
|
|
498
|
-
e.classList.toggle('show')
|
|
499
|
-
},
|
|
500
|
-
scrollToTop: () => { // Back to top
|
|
501
|
-
btf.scrollToDest(0, 500)
|
|
502
|
-
},
|
|
503
|
-
hideAsideBtn: () => { // Hide aside
|
|
504
|
-
const $htmlDom = document.documentElement.classList
|
|
505
|
-
$htmlDom.contains('hide-aside')
|
|
506
|
-
? saveToLocal.set('aside-status', 'show', 2)
|
|
507
|
-
: saveToLocal.set('aside-status', 'hide', 2)
|
|
508
|
-
$htmlDom.toggle('hide-aside')
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
runMobileToc: () => {
|
|
512
|
-
if (window.getComputedStyle(document.getElementById('card-toc')).getPropertyValue('opacity') === '0') window.mobileToc.open()
|
|
513
|
-
else window.mobileToc.close()
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
document.getElementById('rightside').addEventListener('click', function (e) {
|
|
518
|
-
const $target = e.target.id ? e.target : e.target.parentNode
|
|
519
|
-
switch ($target.id) {
|
|
520
|
-
case 'go-up':
|
|
521
|
-
rightSideFn.scrollToTop()
|
|
522
|
-
break
|
|
523
|
-
case 'rightside_config':
|
|
524
|
-
rightSideFn.showOrHideBtn($target)
|
|
525
|
-
break
|
|
526
|
-
case 'mobile-toc-button':
|
|
527
|
-
rightSideFn.runMobileToc()
|
|
528
|
-
break
|
|
529
|
-
case 'readmode':
|
|
530
|
-
rightSideFn.switchReadMode()
|
|
531
|
-
break
|
|
532
|
-
case 'darkmode':
|
|
533
|
-
rightSideFn.switchDarkMode()
|
|
534
|
-
break
|
|
535
|
-
case 'hide-aside-btn':
|
|
536
|
-
rightSideFn.hideAsideBtn()
|
|
537
|
-
break
|
|
538
|
-
default:
|
|
539
|
-
break
|
|
540
|
-
}
|
|
541
|
-
})
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* menu
|
|
545
|
-
* 側邊欄sub-menu 展開/收縮
|
|
546
|
-
*/
|
|
547
|
-
const clickFnOfSubMenu = () => {
|
|
548
|
-
document.querySelectorAll('#sidebar-menus .site-page.group').forEach(function (item) {
|
|
549
|
-
item.addEventListener('click', function () {
|
|
550
|
-
this.classList.toggle('hide')
|
|
551
|
-
})
|
|
552
|
-
})
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* 複製時加上版權信息
|
|
557
|
-
*/
|
|
558
|
-
const addCopyright = () => {
|
|
559
|
-
const copyright = GLOBAL_CONFIG.copyright
|
|
560
|
-
document.body.oncopy = (e) => {
|
|
561
|
-
e.preventDefault()
|
|
562
|
-
let textFont; const copyFont = window.getSelection(0).toString()
|
|
563
|
-
if (copyFont.length > copyright.limitCount) {
|
|
564
|
-
textFont = copyFont + '\n' + '\n' + '\n' +
|
|
565
|
-
copyright.languages.author + '\n' +
|
|
566
|
-
copyright.languages.link + window.location.href + '\n' +
|
|
567
|
-
copyright.languages.source + '\n' +
|
|
568
|
-
copyright.languages.info
|
|
569
|
-
} else {
|
|
570
|
-
textFont = copyFont
|
|
571
|
-
}
|
|
572
|
-
if (e.clipboardData) {
|
|
573
|
-
return e.clipboardData.setData('text', textFont)
|
|
574
|
-
} else {
|
|
575
|
-
return window.clipboardData.setData('text', textFont)
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* 網頁運行時間
|
|
582
|
-
*/
|
|
583
|
-
const addRuntime = () => {
|
|
584
|
-
const $runtimeCount = document.getElementById('runtimeshow')
|
|
585
|
-
if ($runtimeCount) {
|
|
586
|
-
const publishDate = $runtimeCount.getAttribute('data-publishDate')
|
|
587
|
-
$runtimeCount.innerText = btf.diffDate(publishDate) + ' ' + GLOBAL_CONFIG.runtime
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* 最後一次更新時間
|
|
593
|
-
*/
|
|
594
|
-
const addLastPushDate = () => {
|
|
595
|
-
const $lastPushDateItem = document.getElementById('last-push-date')
|
|
596
|
-
if ($lastPushDateItem) {
|
|
597
|
-
const lastPushDate = $lastPushDateItem.getAttribute('data-lastPushDate')
|
|
598
|
-
$lastPushDateItem.innerText = btf.diffDate(lastPushDate, true)
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* table overflow
|
|
604
|
-
*/
|
|
605
|
-
const addTableWrap = () => {
|
|
606
|
-
const $table = document.querySelectorAll('#article-container :not(.highlight) > table, #article-container > table')
|
|
607
|
-
if ($table.length) {
|
|
608
|
-
$table.forEach(item => {
|
|
609
|
-
btf.wrap(item, 'div', { class: 'table-wrap' })
|
|
610
|
-
})
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
* tag-hide
|
|
616
|
-
*/
|
|
617
|
-
const clickFnOfTagHide = function () {
|
|
618
|
-
const $hideInline = document.querySelectorAll('#article-container .hide-button')
|
|
619
|
-
if ($hideInline.length) {
|
|
620
|
-
$hideInline.forEach(function (item) {
|
|
621
|
-
item.addEventListener('click', function (e) {
|
|
622
|
-
const $this = this
|
|
623
|
-
$this.classList.add('open')
|
|
624
|
-
const $fjGallery = $this.nextElementSibling.querySelectorAll('.fj-gallery')
|
|
625
|
-
$fjGallery.length && btf.initJustifiedGallery($fjGallery)
|
|
626
|
-
})
|
|
627
|
-
})
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
const tabsFn = {
|
|
632
|
-
clickFnOfTabs: function () {
|
|
633
|
-
document.querySelectorAll('#article-container .tab > button').forEach(function (item) {
|
|
634
|
-
item.addEventListener('click', function (e) {
|
|
635
|
-
const $this = this
|
|
636
|
-
const $tabItem = $this.parentNode
|
|
637
|
-
|
|
638
|
-
if (!$tabItem.classList.contains('active')) {
|
|
639
|
-
const $tabContent = $tabItem.parentNode.nextElementSibling
|
|
640
|
-
const $siblings = btf.siblings($tabItem, '.active')[0]
|
|
641
|
-
$siblings && $siblings.classList.remove('active')
|
|
642
|
-
$tabItem.classList.add('active')
|
|
643
|
-
const tabId = $this.getAttribute('data-href').replace('#', '')
|
|
644
|
-
const childList = [...$tabContent.children]
|
|
645
|
-
childList.forEach(item => {
|
|
646
|
-
if (item.id === tabId) item.classList.add('active')
|
|
647
|
-
else item.classList.remove('active')
|
|
648
|
-
})
|
|
649
|
-
const $isTabJustifiedGallery = $tabContent.querySelectorAll(`#${tabId} .fj-gallery`)
|
|
650
|
-
if ($isTabJustifiedGallery.length > 0) {
|
|
651
|
-
btf.initJustifiedGallery($isTabJustifiedGallery)
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
})
|
|
655
|
-
})
|
|
656
|
-
},
|
|
657
|
-
backToTop: () => {
|
|
658
|
-
document.querySelectorAll('#article-container .tabs .tab-to-top').forEach(function (item) {
|
|
659
|
-
item.addEventListener('click', function () {
|
|
660
|
-
btf.scrollToDest(btf.getEleTop(btf.getParents(this, '.tabs')), 300)
|
|
661
|
-
})
|
|
662
|
-
})
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
const toggleCardCategory = function () {
|
|
667
|
-
const $cardCategory = document.querySelectorAll('#aside-cat-list .card-category-list-item.parent i')
|
|
668
|
-
if ($cardCategory.length) {
|
|
669
|
-
$cardCategory.forEach(function (item) {
|
|
670
|
-
item.addEventListener('click', function (e) {
|
|
671
|
-
e.preventDefault()
|
|
672
|
-
const $this = this
|
|
673
|
-
$this.classList.toggle('expand')
|
|
674
|
-
const $parentEle = $this.parentNode.nextElementSibling
|
|
675
|
-
if (btf.isHidden($parentEle)) {
|
|
676
|
-
$parentEle.style.display = 'block'
|
|
677
|
-
} else {
|
|
678
|
-
$parentEle.style.display = 'none'
|
|
679
|
-
}
|
|
680
|
-
})
|
|
681
|
-
})
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
const switchComments = function () {
|
|
686
|
-
let switchDone = false
|
|
687
|
-
const $switchBtn = document.querySelector('#comment-switch > .switch-btn')
|
|
688
|
-
$switchBtn && $switchBtn.addEventListener('click', function () {
|
|
689
|
-
this.classList.toggle('move')
|
|
690
|
-
document.querySelectorAll('#post-comment > .comment-wrap > div').forEach(function (item) {
|
|
691
|
-
if (btf.isHidden(item)) {
|
|
692
|
-
item.style.cssText = 'display: block;animation: tabshow .5s'
|
|
693
|
-
} else {
|
|
694
|
-
item.style.cssText = "display: none;animation: ''"
|
|
695
|
-
}
|
|
696
|
-
})
|
|
697
|
-
|
|
698
|
-
if (!switchDone && typeof loadOtherComment === 'function') {
|
|
699
|
-
switchDone = true
|
|
700
|
-
loadOtherComment()
|
|
701
|
-
}
|
|
702
|
-
})
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
const addPostOutdateNotice = function () {
|
|
706
|
-
const data = GLOBAL_CONFIG.noticeOutdate
|
|
707
|
-
const diffDay = btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate)
|
|
708
|
-
if (diffDay >= data.limitDay) {
|
|
709
|
-
const ele = document.createElement('div')
|
|
710
|
-
ele.className = 'post-outdate-notice'
|
|
711
|
-
ele.textContent = data.messagePrev + ' ' + diffDay + ' ' + data.messageNext
|
|
712
|
-
const $targetEle = document.getElementById('article-container')
|
|
713
|
-
if (data.position === 'top') {
|
|
714
|
-
$targetEle.insertBefore(ele, $targetEle.firstChild)
|
|
715
|
-
} else {
|
|
716
|
-
$targetEle.appendChild(ele)
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
const lazyloadImg = () => {
|
|
722
|
-
window.lazyLoadInstance = new LazyLoad({
|
|
723
|
-
elements_selector: 'img',
|
|
724
|
-
threshold: 0,
|
|
725
|
-
data_src: 'lazy-src'
|
|
726
|
-
})
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
const relativeDate = function (selector) {
|
|
730
|
-
selector.forEach(item => {
|
|
731
|
-
const $this = item
|
|
732
|
-
const timeVal = $this.getAttribute('datetime')
|
|
733
|
-
$this.innerText = btf.diffDate(timeVal, true)
|
|
734
|
-
$this.style.display = 'inline'
|
|
735
|
-
})
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
const unRefreshFn = function () {
|
|
739
|
-
window.addEventListener('resize', () => {
|
|
740
|
-
adjustMenu(false)
|
|
741
|
-
btf.isHidden(document.getElementById('toggle-menu')) && mobileSidebarOpen && sidebarFn.close()
|
|
742
|
-
})
|
|
743
|
-
|
|
744
|
-
document.getElementById('menu-mask').addEventListener('click', e => { sidebarFn.close() })
|
|
745
|
-
|
|
746
|
-
clickFnOfSubMenu()
|
|
747
|
-
GLOBAL_CONFIG.islazyload && lazyloadImg()
|
|
748
|
-
GLOBAL_CONFIG.copyright !== undefined && addCopyright()
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
window.refreshFn = function () {
|
|
752
|
-
initAdjust()
|
|
753
|
-
|
|
754
|
-
if (GLOBAL_CONFIG_SITE.isPost) {
|
|
755
|
-
GLOBAL_CONFIG.noticeOutdate !== undefined && addPostOutdateNotice()
|
|
756
|
-
GLOBAL_CONFIG.relativeDate.post && relativeDate(document.querySelectorAll('#post-meta time'))
|
|
757
|
-
} else {
|
|
758
|
-
GLOBAL_CONFIG.relativeDate.homepage && relativeDate(document.querySelectorAll('#recent-posts time'))
|
|
759
|
-
GLOBAL_CONFIG.runtime && addRuntime()
|
|
760
|
-
addLastPushDate()
|
|
761
|
-
toggleCardCategory()
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
scrollFnToDo()
|
|
765
|
-
GLOBAL_CONFIG_SITE.isHome && scrollDownInIndex()
|
|
766
|
-
addHighlightTool()
|
|
767
|
-
GLOBAL_CONFIG.isPhotoFigcaption && addPhotoFigcaption()
|
|
768
|
-
scrollFn()
|
|
769
|
-
|
|
770
|
-
const $jgEle = document.querySelectorAll('#article-container .fj-gallery')
|
|
771
|
-
$jgEle.length && runJustifiedGallery($jgEle)
|
|
772
|
-
|
|
773
|
-
runLightbox()
|
|
774
|
-
addTableWrap()
|
|
775
|
-
clickFnOfTagHide()
|
|
776
|
-
tabsFn.clickFnOfTabs()
|
|
777
|
-
tabsFn.backToTop()
|
|
778
|
-
switchComments()
|
|
779
|
-
document.getElementById('toggle-menu').addEventListener('click', () => { sidebarFn.open() })
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
refreshFn()
|
|
783
|
-
unRefreshFn()
|
|
784
|
-
})
|
|
1
|
+
document.addEventListener('DOMContentLoaded', function () {
|
|
2
|
+
let blogNameWidth, menusWidth, searchWidth, $nav
|
|
3
|
+
let mobileSidebarOpen = false
|
|
4
|
+
|
|
5
|
+
const adjustMenu = (init) => {
|
|
6
|
+
if (init) {
|
|
7
|
+
blogNameWidth = document.getElementById('site-name').offsetWidth
|
|
8
|
+
const $menusEle = document.querySelectorAll('#menus .menus_item')
|
|
9
|
+
menusWidth = 0
|
|
10
|
+
$menusEle.length && $menusEle.forEach(i => { menusWidth += i.offsetWidth })
|
|
11
|
+
const $searchEle = document.querySelector('#search-button')
|
|
12
|
+
searchWidth = $searchEle ? $searchEle.offsetWidth : 0
|
|
13
|
+
$nav = document.getElementById('nav')
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let hideMenuIndex = ''
|
|
17
|
+
if (window.innerWidth <= 768) hideMenuIndex = true
|
|
18
|
+
else hideMenuIndex = blogNameWidth + menusWidth + searchWidth > $nav.offsetWidth - 120
|
|
19
|
+
|
|
20
|
+
if (hideMenuIndex) {
|
|
21
|
+
$nav.classList.add('hide-menu')
|
|
22
|
+
} else {
|
|
23
|
+
$nav.classList.remove('hide-menu')
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 初始化header
|
|
28
|
+
const initAdjust = () => {
|
|
29
|
+
adjustMenu(true)
|
|
30
|
+
$nav.classList.add('show')
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// sidebar menus
|
|
34
|
+
const sidebarFn = {
|
|
35
|
+
open: () => {
|
|
36
|
+
btf.sidebarPaddingR()
|
|
37
|
+
document.body.style.overflow = 'hidden'
|
|
38
|
+
btf.animateIn(document.getElementById('menu-mask'), 'to_show 0.5s')
|
|
39
|
+
document.getElementById('sidebar-menus').classList.add('open')
|
|
40
|
+
mobileSidebarOpen = true
|
|
41
|
+
},
|
|
42
|
+
close: () => {
|
|
43
|
+
const $body = document.body
|
|
44
|
+
$body.style.overflow = ''
|
|
45
|
+
$body.style.paddingRight = ''
|
|
46
|
+
btf.animateOut(document.getElementById('menu-mask'), 'to_hide 0.5s')
|
|
47
|
+
document.getElementById('sidebar-menus').classList.remove('open')
|
|
48
|
+
mobileSidebarOpen = false
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 首頁top_img底下的箭頭
|
|
54
|
+
*/
|
|
55
|
+
const scrollDownInIndex = () => {
|
|
56
|
+
const $scrollDownEle = document.getElementById('scroll-down')
|
|
57
|
+
$scrollDownEle && $scrollDownEle.addEventListener('click', function () {
|
|
58
|
+
btf.scrollToDest(document.getElementById('content-inner').offsetTop, 300)
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 代碼
|
|
64
|
+
* 只適用於Hexo默認的代碼渲染
|
|
65
|
+
*/
|
|
66
|
+
const addHighlightTool = function () {
|
|
67
|
+
const highLight = GLOBAL_CONFIG.highlight
|
|
68
|
+
if (!highLight) return
|
|
69
|
+
|
|
70
|
+
const isHighlightCopy = highLight.highlightCopy
|
|
71
|
+
const isHighlightLang = highLight.highlightLang
|
|
72
|
+
const isHighlightShrink = GLOBAL_CONFIG_SITE.isHighlightShrink
|
|
73
|
+
const highlightHeightLimit = highLight.highlightHeightLimit
|
|
74
|
+
const isShowTool = isHighlightCopy || isHighlightLang || isHighlightShrink !== undefined
|
|
75
|
+
const $figureHighlight = highLight.plugin === 'highlighjs' ? document.querySelectorAll('figure.highlight') : document.querySelectorAll('pre[class*="language-"]')
|
|
76
|
+
|
|
77
|
+
if (!((isShowTool || highlightHeightLimit) && $figureHighlight.length)) return
|
|
78
|
+
|
|
79
|
+
const isPrismjs = highLight.plugin === 'prismjs'
|
|
80
|
+
|
|
81
|
+
let highlightShrinkEle = ''
|
|
82
|
+
let highlightCopyEle = ''
|
|
83
|
+
const highlightShrinkClass = isHighlightShrink === true ? 'closed' : ''
|
|
84
|
+
|
|
85
|
+
if (isHighlightShrink !== undefined) {
|
|
86
|
+
highlightShrinkEle = `<i class="fas fa-angle-down expand ${highlightShrinkClass}"></i>`
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (isHighlightCopy) {
|
|
90
|
+
highlightCopyEle = '<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>'
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const copy = (text, ctx) => {
|
|
94
|
+
if (document.queryCommandSupported && document.queryCommandSupported('copy')) {
|
|
95
|
+
document.execCommand('copy')
|
|
96
|
+
if (GLOBAL_CONFIG.Snackbar !== undefined) {
|
|
97
|
+
btf.snackbarShow(GLOBAL_CONFIG.copy.success)
|
|
98
|
+
} else {
|
|
99
|
+
const prevEle = ctx.previousElementSibling
|
|
100
|
+
prevEle.innerText = GLOBAL_CONFIG.copy.success
|
|
101
|
+
prevEle.style.opacity = 1
|
|
102
|
+
setTimeout(() => { prevEle.style.opacity = 0 }, 700)
|
|
103
|
+
}
|
|
104
|
+
if(set_notice.checked) tools.showMessage("复制成功!转载请注明来源!","success",2)
|
|
105
|
+
} else {
|
|
106
|
+
if (GLOBAL_CONFIG.Snackbar !== undefined) {
|
|
107
|
+
btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport)
|
|
108
|
+
} else {
|
|
109
|
+
ctx.previousElementSibling.innerText = GLOBAL_CONFIG.copy.noSupport
|
|
110
|
+
}
|
|
111
|
+
if(set_notice.checked) tools.showMessage("Error!复制失败!","error",2)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// click events
|
|
116
|
+
const highlightCopyFn = (ele) => {
|
|
117
|
+
const $buttonParent = ele.parentNode
|
|
118
|
+
$buttonParent.classList.add('copy-true')
|
|
119
|
+
const selection = window.getSelection()
|
|
120
|
+
const range = document.createRange()
|
|
121
|
+
if (isPrismjs) range.selectNodeContents($buttonParent.querySelectorAll('pre code')[0])
|
|
122
|
+
else range.selectNodeContents($buttonParent.querySelectorAll('table .code pre')[0])
|
|
123
|
+
selection.removeAllRanges()
|
|
124
|
+
selection.addRange(range)
|
|
125
|
+
const text = selection.toString()
|
|
126
|
+
copy(text, ele.lastChild)
|
|
127
|
+
selection.removeAllRanges()
|
|
128
|
+
$buttonParent.classList.remove('copy-true')
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const highlightShrinkFn = (ele) => {
|
|
132
|
+
const $nextEle = [...ele.parentNode.children].slice(1)
|
|
133
|
+
ele.firstChild.classList.toggle('closed')
|
|
134
|
+
if (btf.isHidden($nextEle[$nextEle.length - 1])) {
|
|
135
|
+
$nextEle.forEach(e => { e.style.display = 'block' })
|
|
136
|
+
} else {
|
|
137
|
+
$nextEle.forEach(e => { e.style.display = 'none' })
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const highlightToolsFn = function (e) {
|
|
142
|
+
const $target = e.target.classList
|
|
143
|
+
if ($target.contains('expand')) highlightShrinkFn(this)
|
|
144
|
+
else if ($target.contains('copy-button')) highlightCopyFn(this)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const expandCode = function () {
|
|
148
|
+
this.classList.toggle('expand-done')
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function createEle (lang, item, service) {
|
|
152
|
+
const fragment = document.createDocumentFragment()
|
|
153
|
+
|
|
154
|
+
if (isShowTool) {
|
|
155
|
+
const hlTools = document.createElement('div')
|
|
156
|
+
hlTools.className = `highlight-tools ${highlightShrinkClass}`
|
|
157
|
+
hlTools.innerHTML = highlightShrinkEle + lang + highlightCopyEle
|
|
158
|
+
hlTools.addEventListener('click', highlightToolsFn)
|
|
159
|
+
fragment.appendChild(hlTools)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (highlightHeightLimit && item.offsetHeight > highlightHeightLimit + 30) {
|
|
163
|
+
const ele = document.createElement('div')
|
|
164
|
+
ele.className = 'code-expand-btn'
|
|
165
|
+
ele.innerHTML = '<i class="fas fa-angle-double-down"></i>'
|
|
166
|
+
ele.addEventListener('click', expandCode)
|
|
167
|
+
fragment.appendChild(ele)
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (service === 'hl') {
|
|
171
|
+
item.insertBefore(fragment, item.firstChild)
|
|
172
|
+
} else {
|
|
173
|
+
item.parentNode.insertBefore(fragment, item)
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (isHighlightLang) {
|
|
178
|
+
if (isPrismjs) {
|
|
179
|
+
$figureHighlight.forEach(function (item) {
|
|
180
|
+
const langName = item.getAttribute('data-language') ? item.getAttribute('data-language') : 'Code'
|
|
181
|
+
const highlightLangEle = `<div class="code-lang">${langName}</div>`
|
|
182
|
+
btf.wrap(item, 'figure', { class: 'highlight' })
|
|
183
|
+
createEle(highlightLangEle, item)
|
|
184
|
+
})
|
|
185
|
+
} else {
|
|
186
|
+
$figureHighlight.forEach(function (item) {
|
|
187
|
+
let langName = item.getAttribute('class').split(' ')[1]
|
|
188
|
+
if (langName === 'plain' || langName === undefined) langName = 'Code'
|
|
189
|
+
const highlightLangEle = `<div class="code-lang">${langName}</div>`
|
|
190
|
+
createEle(highlightLangEle, item, 'hl')
|
|
191
|
+
})
|
|
192
|
+
}
|
|
193
|
+
} else {
|
|
194
|
+
if (isPrismjs) {
|
|
195
|
+
$figureHighlight.forEach(function (item) {
|
|
196
|
+
btf.wrap(item, 'figure', { class: 'highlight' })
|
|
197
|
+
createEle('', item)
|
|
198
|
+
})
|
|
199
|
+
} else {
|
|
200
|
+
$figureHighlight.forEach(function (item) {
|
|
201
|
+
createEle('', item, 'hl')
|
|
202
|
+
})
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* PhotoFigcaption
|
|
209
|
+
*/
|
|
210
|
+
function addPhotoFigcaption () {
|
|
211
|
+
document.querySelectorAll('#article-container img').forEach(function (item) {
|
|
212
|
+
const parentEle = item.parentNode
|
|
213
|
+
const altValue = item.title || item.alt
|
|
214
|
+
if (altValue && !parentEle.parentNode.classList.contains('justified-gallery')) {
|
|
215
|
+
const ele = document.createElement('div')
|
|
216
|
+
ele.className = 'img-alt is-center'
|
|
217
|
+
ele.textContent = altValue
|
|
218
|
+
parentEle.insertBefore(ele, item.nextSibling)
|
|
219
|
+
}
|
|
220
|
+
})
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Lightbox
|
|
225
|
+
*/
|
|
226
|
+
const runLightbox = () => {
|
|
227
|
+
btf.loadLightbox(document.querySelectorAll('#article-container img:not(.no-lightbox)'))
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* justified-gallery 圖庫排版
|
|
232
|
+
*/
|
|
233
|
+
const runJustifiedGallery = function (ele) {
|
|
234
|
+
ele.forEach(item => {
|
|
235
|
+
const $imgList = item.querySelectorAll('img')
|
|
236
|
+
|
|
237
|
+
$imgList.forEach(i => {
|
|
238
|
+
const dataLazySrc = i.getAttribute('data-lazy-src')
|
|
239
|
+
if (dataLazySrc) i.src = dataLazySrc
|
|
240
|
+
btf.wrap(i, 'div', { class: 'fj-gallery-item' })
|
|
241
|
+
})
|
|
242
|
+
})
|
|
243
|
+
|
|
244
|
+
if (window.fjGallery) {
|
|
245
|
+
setTimeout(() => { btf.initJustifiedGallery(ele) }, 100)
|
|
246
|
+
return
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
const newEle = document.createElement('link')
|
|
250
|
+
newEle.rel = 'stylesheet'
|
|
251
|
+
newEle.href = GLOBAL_CONFIG.source.justifiedGallery.css
|
|
252
|
+
document.body.appendChild(newEle)
|
|
253
|
+
getScript(`${GLOBAL_CONFIG.source.justifiedGallery.js}`).then(() => { btf.initJustifiedGallery(ele) })
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* 滾動處理
|
|
258
|
+
*/
|
|
259
|
+
const scrollFn = function () {
|
|
260
|
+
const $rightside = document.getElementById('rightside')
|
|
261
|
+
const innerHeight = window.innerHeight + 56
|
|
262
|
+
const scrollHeight = document.body.scrollHeight + 400
|
|
263
|
+
// console.log("document.body.scrollHeight: " + scrollHeight)
|
|
264
|
+
// console.log("window.innerHeight: " + (innerHeight - 56))
|
|
265
|
+
// 當滾動條小于 56 的時候
|
|
266
|
+
if (scrollHeight <= innerHeight) {
|
|
267
|
+
$rightside.style.cssText = 'opacity: 1; transform: translateX(-88px)'
|
|
268
|
+
return
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// find the scroll direction
|
|
272
|
+
function scrollDirection (currentTop) {
|
|
273
|
+
const result = currentTop > initTop // true is down & false is up
|
|
274
|
+
initTop = currentTop
|
|
275
|
+
return result
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
let initTop = 0
|
|
279
|
+
let isChatShow = true
|
|
280
|
+
const $header = document.getElementById('page-header')
|
|
281
|
+
const isChatBtnHide = typeof chatBtnHide === 'function'
|
|
282
|
+
const isChatBtnShow = typeof chatBtnShow === 'function'
|
|
283
|
+
|
|
284
|
+
const scrollTask = btf.throttle(() => {
|
|
285
|
+
const currentTop = window.scrollY || document.documentElement.scrollTop
|
|
286
|
+
const isDown = scrollDirection(currentTop)
|
|
287
|
+
if (currentTop > 56) {
|
|
288
|
+
$header.classList.add('is-top-bar')
|
|
289
|
+
if (isDown) {
|
|
290
|
+
if ($header.classList.contains('nav-visible')) $header.classList.remove('nav-visible')
|
|
291
|
+
if (isChatBtnShow && isChatShow === true) {
|
|
292
|
+
chatBtnHide()
|
|
293
|
+
isChatShow = false
|
|
294
|
+
}
|
|
295
|
+
} else {
|
|
296
|
+
if (!$header.classList.contains('nav-visible')) $header.classList.add('nav-visible')
|
|
297
|
+
if (isChatBtnHide && isChatShow === false) {
|
|
298
|
+
chatBtnShow()
|
|
299
|
+
isChatShow = true
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
$header.classList.add('nav-fixed')
|
|
303
|
+
if (window.getComputedStyle($rightside).getPropertyValue('opacity') === '0') {
|
|
304
|
+
$rightside.style.cssText = 'opacity: 1; transform: translateX(-88px)'
|
|
305
|
+
}
|
|
306
|
+
} else {
|
|
307
|
+
if (currentTop === 0) {
|
|
308
|
+
// $header.classList.remove('nav-fixed', 'nav-visible')
|
|
309
|
+
$header.classList.remove('is-top-bar')
|
|
310
|
+
$header.classList.add('nav-visible')
|
|
311
|
+
}
|
|
312
|
+
$rightside.style.cssText = "opacity: ''; transform: ''"
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (scrollHeight <= innerHeight) {
|
|
316
|
+
$rightside.style.cssText = 'opacity: 1; transform: translateX(-88px)'
|
|
317
|
+
}
|
|
318
|
+
}, 200)
|
|
319
|
+
|
|
320
|
+
window.scrollCollect = scrollTask
|
|
321
|
+
window.addEventListener('scroll', scrollCollect)
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* toc,anchor
|
|
326
|
+
*/
|
|
327
|
+
const scrollFnToDo = function () {
|
|
328
|
+
const isToc = GLOBAL_CONFIG_SITE.isToc
|
|
329
|
+
const isAnchor = GLOBAL_CONFIG.isAnchor
|
|
330
|
+
const $article = document.getElementById('article-container')
|
|
331
|
+
|
|
332
|
+
if (!($article && (isToc || isAnchor))) return
|
|
333
|
+
|
|
334
|
+
let $tocLink, $cardToc, scrollPercent, autoScrollToc, isExpand
|
|
335
|
+
|
|
336
|
+
if (isToc) {
|
|
337
|
+
const $cardTocLayout = document.getElementById('card-toc')
|
|
338
|
+
$cardToc = $cardTocLayout.getElementsByClassName('toc-content')[0]
|
|
339
|
+
$tocLink = $cardToc.querySelectorAll('.toc-link')
|
|
340
|
+
const $tocPercentage = $cardTocLayout.querySelector('.toc-percentage')
|
|
341
|
+
isExpand = $cardToc.classList.contains('is-expand')
|
|
342
|
+
|
|
343
|
+
scrollPercent = currentTop => {
|
|
344
|
+
const docHeight = $article.clientHeight
|
|
345
|
+
const winHeight = document.documentElement.clientHeight
|
|
346
|
+
const headerHeight = $article.offsetTop
|
|
347
|
+
const contentMath = (docHeight > winHeight) ? (docHeight - winHeight) : (document.documentElement.scrollHeight - winHeight)
|
|
348
|
+
const scrollPercent = (currentTop - headerHeight) / (contentMath)
|
|
349
|
+
const scrollPercentRounded = Math.round(scrollPercent * 100)
|
|
350
|
+
const percentage = (scrollPercentRounded > 100) ? 100 : (scrollPercentRounded <= 0) ? 0 : scrollPercentRounded
|
|
351
|
+
$tocPercentage.textContent = percentage
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
window.mobileToc = {
|
|
355
|
+
open: () => {
|
|
356
|
+
$cardTocLayout.style.cssText = 'animation: toc-open .3s; opacity: 1; right: 55px'
|
|
357
|
+
},
|
|
358
|
+
|
|
359
|
+
close: () => {
|
|
360
|
+
$cardTocLayout.style.animation = 'toc-close .2s'
|
|
361
|
+
setTimeout(() => {
|
|
362
|
+
$cardTocLayout.style.cssText = "opacity:''; animation: ''; right: ''"
|
|
363
|
+
}, 100)
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// toc元素點擊
|
|
368
|
+
$cardToc.addEventListener('click', e => {
|
|
369
|
+
e.preventDefault()
|
|
370
|
+
const target = e.target.classList
|
|
371
|
+
if (target.contains('toc-content')) return
|
|
372
|
+
const $target = target.contains('toc-link')
|
|
373
|
+
? e.target
|
|
374
|
+
: e.target.parentElement
|
|
375
|
+
btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI($target.getAttribute('href')).replace('#', ''))), 300)
|
|
376
|
+
if (window.innerWidth < 900) {
|
|
377
|
+
window.mobileToc.close()
|
|
378
|
+
}
|
|
379
|
+
})
|
|
380
|
+
|
|
381
|
+
autoScrollToc = item => {
|
|
382
|
+
const activePosition = item.getBoundingClientRect().top
|
|
383
|
+
const sidebarScrollTop = $cardToc.scrollTop
|
|
384
|
+
if (activePosition > (document.documentElement.clientHeight - 100)) {
|
|
385
|
+
$cardToc.scrollTop = sidebarScrollTop + 150
|
|
386
|
+
}
|
|
387
|
+
if (activePosition < 100) {
|
|
388
|
+
$cardToc.scrollTop = sidebarScrollTop - 150
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// find head position & add active class
|
|
394
|
+
const list = $article.querySelectorAll('h1,h2,h3,h4,h5,h6')
|
|
395
|
+
let detectItem = ''
|
|
396
|
+
const findHeadPosition = function (top) {
|
|
397
|
+
if (top === 0) {
|
|
398
|
+
return false
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
let currentId = ''
|
|
402
|
+
let currentIndex = ''
|
|
403
|
+
|
|
404
|
+
list.forEach(function (ele, index) {
|
|
405
|
+
if (top > btf.getEleTop(ele) - 80) {
|
|
406
|
+
const id = ele.id
|
|
407
|
+
currentId = id ? '#' + encodeURI(id) : ''
|
|
408
|
+
currentIndex = index
|
|
409
|
+
}
|
|
410
|
+
})
|
|
411
|
+
|
|
412
|
+
if (detectItem === currentIndex) return
|
|
413
|
+
|
|
414
|
+
if (isAnchor) btf.updateAnchor(currentId)
|
|
415
|
+
|
|
416
|
+
detectItem = currentIndex
|
|
417
|
+
|
|
418
|
+
if (isToc) {
|
|
419
|
+
$cardToc.querySelectorAll('.active').forEach(i => { i.classList.remove('active') })
|
|
420
|
+
|
|
421
|
+
if (currentId === '') {
|
|
422
|
+
return
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
const currentActive = $tocLink[currentIndex]
|
|
426
|
+
currentActive.classList.add('active')
|
|
427
|
+
|
|
428
|
+
setTimeout(() => {
|
|
429
|
+
autoScrollToc(currentActive)
|
|
430
|
+
}, 0)
|
|
431
|
+
|
|
432
|
+
if (isExpand) return
|
|
433
|
+
let parent = currentActive.parentNode
|
|
434
|
+
|
|
435
|
+
for (; !parent.matches('.toc'); parent = parent.parentNode) {
|
|
436
|
+
if (parent.matches('li')) parent.classList.add('active')
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
// main of scroll
|
|
442
|
+
window.tocScrollFn = function () {
|
|
443
|
+
return btf.throttle(function () {
|
|
444
|
+
const currentTop = window.scrollY || document.documentElement.scrollTop
|
|
445
|
+
isToc && scrollPercent(currentTop)
|
|
446
|
+
findHeadPosition(currentTop)
|
|
447
|
+
}, 100)()
|
|
448
|
+
}
|
|
449
|
+
window.addEventListener('scroll', tocScrollFn)
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Rightside
|
|
454
|
+
*/
|
|
455
|
+
const rightSideFn = {
|
|
456
|
+
switchReadMode: () => { // read-mode
|
|
457
|
+
const $body = document.body
|
|
458
|
+
$body.classList.add('read-mode')
|
|
459
|
+
const newEle = document.createElement('button')
|
|
460
|
+
newEle.type = 'button'
|
|
461
|
+
newEle.className = 'fas fa-sign-out-alt exit-readmode'
|
|
462
|
+
$body.appendChild(newEle)
|
|
463
|
+
|
|
464
|
+
function clickFn () {
|
|
465
|
+
$body.classList.remove('read-mode')
|
|
466
|
+
newEle.remove()
|
|
467
|
+
newEle.removeEventListener('click', clickFn)
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
newEle.addEventListener('click', clickFn)
|
|
471
|
+
},
|
|
472
|
+
switchDarkMode: () => { // Switch Between Light And Dark Mode
|
|
473
|
+
const nowMode = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light'
|
|
474
|
+
if (nowMode === 'light') {
|
|
475
|
+
activateDarkMode()
|
|
476
|
+
saveToLocal.set('theme', 'dark', 2)
|
|
477
|
+
GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)
|
|
478
|
+
} else {
|
|
479
|
+
activateLightMode()
|
|
480
|
+
saveToLocal.set('theme', 'light', 2)
|
|
481
|
+
GLOBAL_CONFIG.Snackbar !== undefined && btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)
|
|
482
|
+
}
|
|
483
|
+
// handle some cases
|
|
484
|
+
typeof utterancesTheme === 'function' && utterancesTheme()
|
|
485
|
+
typeof changeGiscusTheme === 'function' && changeGiscusTheme()
|
|
486
|
+
typeof FB === 'object' && window.loadFBComment && window.loadFBComment()
|
|
487
|
+
typeof runMermaid === 'function' && window.runMermaid()
|
|
488
|
+
},
|
|
489
|
+
showOrHideBtn: (e) => { // rightside 點擊設置 按鈕 展開
|
|
490
|
+
const rightsideHideClassList = document.getElementById('rightside-config-hide').classList
|
|
491
|
+
rightsideHideClassList.toggle('show')
|
|
492
|
+
if (e.classList.contains('show')) {
|
|
493
|
+
rightsideHideClassList.add('status')
|
|
494
|
+
setTimeout(() => {
|
|
495
|
+
rightsideHideClassList.remove('status')
|
|
496
|
+
}, 300)
|
|
497
|
+
}
|
|
498
|
+
e.classList.toggle('show')
|
|
499
|
+
},
|
|
500
|
+
scrollToTop: () => { // Back to top
|
|
501
|
+
btf.scrollToDest(0, 500)
|
|
502
|
+
},
|
|
503
|
+
hideAsideBtn: () => { // Hide aside
|
|
504
|
+
const $htmlDom = document.documentElement.classList
|
|
505
|
+
$htmlDom.contains('hide-aside')
|
|
506
|
+
? saveToLocal.set('aside-status', 'show', 2)
|
|
507
|
+
: saveToLocal.set('aside-status', 'hide', 2)
|
|
508
|
+
$htmlDom.toggle('hide-aside')
|
|
509
|
+
},
|
|
510
|
+
|
|
511
|
+
runMobileToc: () => {
|
|
512
|
+
if (window.getComputedStyle(document.getElementById('card-toc')).getPropertyValue('opacity') === '0') window.mobileToc.open()
|
|
513
|
+
else window.mobileToc.close()
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
document.getElementById('rightside').addEventListener('click', function (e) {
|
|
518
|
+
const $target = e.target.id ? e.target : e.target.parentNode
|
|
519
|
+
switch ($target.id) {
|
|
520
|
+
case 'go-up':
|
|
521
|
+
rightSideFn.scrollToTop()
|
|
522
|
+
break
|
|
523
|
+
case 'rightside_config':
|
|
524
|
+
rightSideFn.showOrHideBtn($target)
|
|
525
|
+
break
|
|
526
|
+
case 'mobile-toc-button':
|
|
527
|
+
rightSideFn.runMobileToc()
|
|
528
|
+
break
|
|
529
|
+
case 'readmode':
|
|
530
|
+
rightSideFn.switchReadMode()
|
|
531
|
+
break
|
|
532
|
+
case 'darkmode':
|
|
533
|
+
rightSideFn.switchDarkMode()
|
|
534
|
+
break
|
|
535
|
+
case 'hide-aside-btn':
|
|
536
|
+
rightSideFn.hideAsideBtn()
|
|
537
|
+
break
|
|
538
|
+
default:
|
|
539
|
+
break
|
|
540
|
+
}
|
|
541
|
+
})
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* menu
|
|
545
|
+
* 側邊欄sub-menu 展開/收縮
|
|
546
|
+
*/
|
|
547
|
+
const clickFnOfSubMenu = () => {
|
|
548
|
+
document.querySelectorAll('#sidebar-menus .site-page.group').forEach(function (item) {
|
|
549
|
+
item.addEventListener('click', function () {
|
|
550
|
+
this.classList.toggle('hide')
|
|
551
|
+
})
|
|
552
|
+
})
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* 複製時加上版權信息
|
|
557
|
+
*/
|
|
558
|
+
const addCopyright = () => {
|
|
559
|
+
const copyright = GLOBAL_CONFIG.copyright
|
|
560
|
+
document.body.oncopy = (e) => {
|
|
561
|
+
e.preventDefault()
|
|
562
|
+
let textFont; const copyFont = window.getSelection(0).toString()
|
|
563
|
+
if (copyFont.length > copyright.limitCount) {
|
|
564
|
+
textFont = copyFont + '\n' + '\n' + '\n' +
|
|
565
|
+
copyright.languages.author + '\n' +
|
|
566
|
+
copyright.languages.link + window.location.href + '\n' +
|
|
567
|
+
copyright.languages.source + '\n' +
|
|
568
|
+
copyright.languages.info
|
|
569
|
+
} else {
|
|
570
|
+
textFont = copyFont
|
|
571
|
+
}
|
|
572
|
+
if (e.clipboardData) {
|
|
573
|
+
return e.clipboardData.setData('text', textFont)
|
|
574
|
+
} else {
|
|
575
|
+
return window.clipboardData.setData('text', textFont)
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* 網頁運行時間
|
|
582
|
+
*/
|
|
583
|
+
const addRuntime = () => {
|
|
584
|
+
const $runtimeCount = document.getElementById('runtimeshow')
|
|
585
|
+
if ($runtimeCount) {
|
|
586
|
+
const publishDate = $runtimeCount.getAttribute('data-publishDate')
|
|
587
|
+
$runtimeCount.innerText = btf.diffDate(publishDate) + ' ' + GLOBAL_CONFIG.runtime
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* 最後一次更新時間
|
|
593
|
+
*/
|
|
594
|
+
const addLastPushDate = () => {
|
|
595
|
+
const $lastPushDateItem = document.getElementById('last-push-date')
|
|
596
|
+
if ($lastPushDateItem) {
|
|
597
|
+
const lastPushDate = $lastPushDateItem.getAttribute('data-lastPushDate')
|
|
598
|
+
$lastPushDateItem.innerText = btf.diffDate(lastPushDate, true)
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* table overflow
|
|
604
|
+
*/
|
|
605
|
+
const addTableWrap = () => {
|
|
606
|
+
const $table = document.querySelectorAll('#article-container :not(.highlight) > table, #article-container > table')
|
|
607
|
+
if ($table.length) {
|
|
608
|
+
$table.forEach(item => {
|
|
609
|
+
btf.wrap(item, 'div', { class: 'table-wrap' })
|
|
610
|
+
})
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* tag-hide
|
|
616
|
+
*/
|
|
617
|
+
const clickFnOfTagHide = function () {
|
|
618
|
+
const $hideInline = document.querySelectorAll('#article-container .hide-button')
|
|
619
|
+
if ($hideInline.length) {
|
|
620
|
+
$hideInline.forEach(function (item) {
|
|
621
|
+
item.addEventListener('click', function (e) {
|
|
622
|
+
const $this = this
|
|
623
|
+
$this.classList.add('open')
|
|
624
|
+
const $fjGallery = $this.nextElementSibling.querySelectorAll('.fj-gallery')
|
|
625
|
+
$fjGallery.length && btf.initJustifiedGallery($fjGallery)
|
|
626
|
+
})
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
const tabsFn = {
|
|
632
|
+
clickFnOfTabs: function () {
|
|
633
|
+
document.querySelectorAll('#article-container .tab > button').forEach(function (item) {
|
|
634
|
+
item.addEventListener('click', function (e) {
|
|
635
|
+
const $this = this
|
|
636
|
+
const $tabItem = $this.parentNode
|
|
637
|
+
|
|
638
|
+
if (!$tabItem.classList.contains('active')) {
|
|
639
|
+
const $tabContent = $tabItem.parentNode.nextElementSibling
|
|
640
|
+
const $siblings = btf.siblings($tabItem, '.active')[0]
|
|
641
|
+
$siblings && $siblings.classList.remove('active')
|
|
642
|
+
$tabItem.classList.add('active')
|
|
643
|
+
const tabId = $this.getAttribute('data-href').replace('#', '')
|
|
644
|
+
const childList = [...$tabContent.children]
|
|
645
|
+
childList.forEach(item => {
|
|
646
|
+
if (item.id === tabId) item.classList.add('active')
|
|
647
|
+
else item.classList.remove('active')
|
|
648
|
+
})
|
|
649
|
+
const $isTabJustifiedGallery = $tabContent.querySelectorAll(`#${tabId} .fj-gallery`)
|
|
650
|
+
if ($isTabJustifiedGallery.length > 0) {
|
|
651
|
+
btf.initJustifiedGallery($isTabJustifiedGallery)
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
})
|
|
655
|
+
})
|
|
656
|
+
},
|
|
657
|
+
backToTop: () => {
|
|
658
|
+
document.querySelectorAll('#article-container .tabs .tab-to-top').forEach(function (item) {
|
|
659
|
+
item.addEventListener('click', function () {
|
|
660
|
+
btf.scrollToDest(btf.getEleTop(btf.getParents(this, '.tabs')), 300)
|
|
661
|
+
})
|
|
662
|
+
})
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
const toggleCardCategory = function () {
|
|
667
|
+
const $cardCategory = document.querySelectorAll('#aside-cat-list .card-category-list-item.parent i')
|
|
668
|
+
if ($cardCategory.length) {
|
|
669
|
+
$cardCategory.forEach(function (item) {
|
|
670
|
+
item.addEventListener('click', function (e) {
|
|
671
|
+
e.preventDefault()
|
|
672
|
+
const $this = this
|
|
673
|
+
$this.classList.toggle('expand')
|
|
674
|
+
const $parentEle = $this.parentNode.nextElementSibling
|
|
675
|
+
if (btf.isHidden($parentEle)) {
|
|
676
|
+
$parentEle.style.display = 'block'
|
|
677
|
+
} else {
|
|
678
|
+
$parentEle.style.display = 'none'
|
|
679
|
+
}
|
|
680
|
+
})
|
|
681
|
+
})
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
const switchComments = function () {
|
|
686
|
+
let switchDone = false
|
|
687
|
+
const $switchBtn = document.querySelector('#comment-switch > .switch-btn')
|
|
688
|
+
$switchBtn && $switchBtn.addEventListener('click', function () {
|
|
689
|
+
this.classList.toggle('move')
|
|
690
|
+
document.querySelectorAll('#post-comment > .comment-wrap > div').forEach(function (item) {
|
|
691
|
+
if (btf.isHidden(item)) {
|
|
692
|
+
item.style.cssText = 'display: block;animation: tabshow .5s'
|
|
693
|
+
} else {
|
|
694
|
+
item.style.cssText = "display: none;animation: ''"
|
|
695
|
+
}
|
|
696
|
+
})
|
|
697
|
+
|
|
698
|
+
if (!switchDone && typeof loadOtherComment === 'function') {
|
|
699
|
+
switchDone = true
|
|
700
|
+
loadOtherComment()
|
|
701
|
+
}
|
|
702
|
+
})
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
const addPostOutdateNotice = function () {
|
|
706
|
+
const data = GLOBAL_CONFIG.noticeOutdate
|
|
707
|
+
const diffDay = btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate)
|
|
708
|
+
if (diffDay >= data.limitDay) {
|
|
709
|
+
const ele = document.createElement('div')
|
|
710
|
+
ele.className = 'post-outdate-notice'
|
|
711
|
+
ele.textContent = data.messagePrev + ' ' + diffDay + ' ' + data.messageNext
|
|
712
|
+
const $targetEle = document.getElementById('article-container')
|
|
713
|
+
if (data.position === 'top') {
|
|
714
|
+
$targetEle.insertBefore(ele, $targetEle.firstChild)
|
|
715
|
+
} else {
|
|
716
|
+
$targetEle.appendChild(ele)
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
const lazyloadImg = () => {
|
|
722
|
+
window.lazyLoadInstance = new LazyLoad({
|
|
723
|
+
elements_selector: 'img',
|
|
724
|
+
threshold: 0,
|
|
725
|
+
data_src: 'lazy-src'
|
|
726
|
+
})
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
const relativeDate = function (selector) {
|
|
730
|
+
selector.forEach(item => {
|
|
731
|
+
const $this = item
|
|
732
|
+
const timeVal = $this.getAttribute('datetime')
|
|
733
|
+
$this.innerText = btf.diffDate(timeVal, true)
|
|
734
|
+
$this.style.display = 'inline'
|
|
735
|
+
})
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
const unRefreshFn = function () {
|
|
739
|
+
window.addEventListener('resize', () => {
|
|
740
|
+
adjustMenu(false)
|
|
741
|
+
btf.isHidden(document.getElementById('toggle-menu')) && mobileSidebarOpen && sidebarFn.close()
|
|
742
|
+
})
|
|
743
|
+
|
|
744
|
+
document.getElementById('menu-mask').addEventListener('click', e => { sidebarFn.close() })
|
|
745
|
+
|
|
746
|
+
clickFnOfSubMenu()
|
|
747
|
+
GLOBAL_CONFIG.islazyload && lazyloadImg()
|
|
748
|
+
GLOBAL_CONFIG.copyright !== undefined && addCopyright()
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
window.refreshFn = function () {
|
|
752
|
+
initAdjust()
|
|
753
|
+
|
|
754
|
+
if (GLOBAL_CONFIG_SITE.isPost) {
|
|
755
|
+
GLOBAL_CONFIG.noticeOutdate !== undefined && addPostOutdateNotice()
|
|
756
|
+
GLOBAL_CONFIG.relativeDate.post && relativeDate(document.querySelectorAll('#post-meta time'))
|
|
757
|
+
} else {
|
|
758
|
+
GLOBAL_CONFIG.relativeDate.homepage && relativeDate(document.querySelectorAll('#recent-posts time'))
|
|
759
|
+
GLOBAL_CONFIG.runtime && addRuntime()
|
|
760
|
+
addLastPushDate()
|
|
761
|
+
toggleCardCategory()
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
scrollFnToDo()
|
|
765
|
+
GLOBAL_CONFIG_SITE.isHome && scrollDownInIndex()
|
|
766
|
+
addHighlightTool()
|
|
767
|
+
GLOBAL_CONFIG.isPhotoFigcaption && addPhotoFigcaption()
|
|
768
|
+
scrollFn()
|
|
769
|
+
|
|
770
|
+
const $jgEle = document.querySelectorAll('#article-container .fj-gallery')
|
|
771
|
+
$jgEle.length && runJustifiedGallery($jgEle)
|
|
772
|
+
|
|
773
|
+
runLightbox()
|
|
774
|
+
addTableWrap()
|
|
775
|
+
clickFnOfTagHide()
|
|
776
|
+
tabsFn.clickFnOfTabs()
|
|
777
|
+
tabsFn.backToTop()
|
|
778
|
+
switchComments()
|
|
779
|
+
document.getElementById('toggle-menu').addEventListener('click', () => { sidebarFn.open() })
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
refreshFn()
|
|
783
|
+
unRefreshFn()
|
|
784
|
+
})
|