mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
Normalized attribute name in HTML
Add prefix `data-` for following attributes: - `topbar-visible` - `mode` - `label-text` - `title-succeed`
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
const ScrollHelper = (function () {
|
||||
const $body = $("body");
|
||||
const ATTR_TOPBAR_VISIBLE = "topbar-visible";
|
||||
const ATTR_TOPBAR_VISIBLE = "data-topbar-visible";
|
||||
const topbarHeight = $("#topbar-wrapper").outerHeight();
|
||||
|
||||
let scrollUpCount = 0; // the number of times the scroll up was triggered by ToC or anchor
|
||||
|
||||
Reference in New Issue
Block a user